Please remember to make use of the DML Wiki Manual of Style and Code of Conduct during your stay.

 Actions

Template

Template:TableofEventsPerYear

From Dragon Mania Legends (DML) Wiki

Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this template's documentation. (About template documentation)

Example(s)

  • {{TableofEventsPerYear|22|count=5}} gives:
There were 332 events in 2022. Tap column header arrows to sort.
Event Name Event Date Event Type Prize Dragon(s) Event
Type Notes
Farming Fanatic (edit) 30 December 2022     Food Gathering Memorial Dragon Icon.png Memorial Dragon
Tyrant Ticket (Grey) Icon.png Tyrant (Element) Icon.png 
Golden Opportunity (edit) 30 December 2022     Gold Spending Posh Dragon Icon.png Posh Dragon
Tyrant Ticket (Grey) Icon.png Tyrant (Element) Icon.png VIP Event Icon.png 
Bottomless Dungeon (edit) 26 December 2022     Bottomless Dungeon Holly Dragon Icon.png Holly Dragon
Laohu Dragon Icon.png Laohu Dragon
Tyrant Chest (edit) 26 December 2022     Chest Opening Earth Spirit Dragon Icon.png Earth Spirit Dragon
Laser Hammer Dragon Icon.png Laser Hammer Dragon
Tundra Dragon Icon.png Tundra Dragon
Talisman (Tyrant Light) Icon.png Dragon Pieces Icon.png Tyrant (Element) Icon.png 
Dragon Grid (edit) 26 December 2022     Dragon Grid Armored Phasm Dragon Icon.png Armored Phasm Dragon
Aureum Lumen Dragon Icon.png Aureum Lumen Dragon
Daemonia Dragon Icon.png Daemonia Dragon
Prisma Dragon Icon.png Prisma Dragon
Tyrant Ticket (Grey) Icon.png Tyrant (Element) Icon.png 
More...
  • {{TableofEventsPerYear|23}} creates a table of events for 2023.
  • {{TableofEventsPerYear|23|count=3|collapsible=y|collapsed=y}} creates a table of events for 2023 that are both collapsible and collapsed.

Important Notes

For the Prize Dragon(s) column, to use with {{PAGENAME}} its parent column should be stored using #titleparts of ParserFunctions, which removes needless HTML encoding:

  • |eventdragonslist = {{#titleparts:{{EventsTableDragonList|{{PAGENAME}}}}}}.

If a column is stored as List (,) of Wikitext string, querying the __full result (the entire comma-separated string, and not each virtual list field individually) is likely easiest, or easiest when multiple criteria are needed. This allows LIKE or IN to be used instead of HOLDS.

  • columnName LIKE "%name,% (including the comma at the end to avoid getting similar results)
  • columnName IN ("value,", "value2,", "value3,")

Also, for some reason, if a field generates an HTML space, it must be stripped for empty results:

  • IF(eventdragonslist__full != " ", eventdragonslist__full, "")=eventdragonslist
  • If querying single params, when stored as List (,) of Wikitext string, use HOLDS to search the individual results.

See Also

Creates a Cargo table of all events pages (Category:Events) for the year specified, and populates the prize dragons column based on dragons linked to from each Event page. Results are limited to the count set, or the default max of 500.

Template parameters

ParameterDescriptionTypeStatus
year (YY)1

Last 2 digits of the year the event appeared.

Default
23
Example
19
Numberoptional
(Override) countcount limit

no description

Default
500
Example
200
Numberoptional
(Override) offsetoffset

Setting a number offsets results by that, useful if results need to be paginated, displays the next x number of results.

Default
0
Example
250
Stringoptional
collapsiblecollapsible

If any value is set, makes the table collapsible

Example
y
Stringoptional
collapsedcollapsed

If any value is set, makes a collapsible table collapsed by default.

Example
y
Stringoptional


This Wiki is created by players for other players and is not maintained by, or affiliated with, the game maker (Gameloft).
Cookies help us deliver our services. By using our services, you agree to our use of cookies.