Template:Slider2
From Dragon Mania Legends (DML) Wiki
No results
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)
{{slider2}}
autopopulates the Main Page section titled Events and gives:
See Also
{{Slider-CargoRow}}
, the output row formatting template used to pass values to the{{Event}}
template.{{Slider-DPL3}}
, the DPL3 version of this template.{{EventBox}}
, the template from which the{{{image|}}}
parameter is accepted.
Notes
- When the ( ? ) icon appears, it means that no icon is currently specified for the event type in
{{Event}}
. - To override the event icon, set a value for the
image
parameter in the page's{{EventBox}}
like:|image=Some name icon
. - When a new event type is added, see Workflow for items that may need modification for the slider2.
Arena Season Calculation |
---|
The first Arena season was June 10th 2021, but started late, it should occur on Mondays. This calculates using June 7th 2021 (Monday, as if its first occurrence was on its "proper" Monday just prior, same as the second iteration started on July 5th 2021, which was a Monday). The event reoccurred every 4 weeks thereafter, at the same time/date and thus is calculated as such using Parser Functions.
Query statement: {{Event|Arena Season {{#expr:ceil (({{#time:xNU|now|UTC}} - {{#time:xNU|7 June 2021|UTC}}) / 2419200)}}| | {{#time:j F Y|7 June 2021 + {{#expr:(ceil(({{#time:xNU|now|UTC}} - {{#time:xNU|7 June 2021|UTC}}) / 2419200 )) * 4}}Weeks}} |image=Extraordinary Materials - Any | link=Dragon_League}} |} Outcome: |
Generates an automated list of currently running events for use on the Main Page. Currently this template accepts no parameters, rather it passes parameter values to its surrogate formatting template, which calculates and converts values into the format that the {Event} template needs to format each entry. These combined styles are then applied to every event listing generated by this template.
Parameter | Description | Type | Status | |||
---|---|---|---|---|---|---|
No parameters specified |