Template:Slider
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)
{{slider}}
autopopulates the Main Page section titled Events and gives:
See Also
{{EventBox.sliderdpltablerow}}
, the row formatting template that feeds parameter values from this template to{{Event}}
.{{Event}}
, the template accepting{{EventBox.sliderdpltablerow}}
values, it creates and formats a single result, that this template then reapplies to all results in the list created.{{EventBox}}
, the template from which the{{{image|}}}
parameter is accepted.- Workflow, the workflow for updating slider-related templates when a new event type is added.
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 slider.
Other Docs
-------------------------------------------------------------------------- ---- we can use {{subst:#time:j F Y}} for start if the events starts today ---- and {{subst:#time:j F Y|now+4 Days}} to calculate the end date ---- OR: we enter start and end manually as usual (e.g. 30 Apr 2022) -------------------------------------------------------------------------- <!-- For Fast copy/paste (can swap date, like 31 August 2022, for date calculation) --- - standard Frenzy Days / Whale-Mart / Otto's Lotto / Hoard --- {{event|Gold Frenzy| | {{subst:#time:j F Y|now+1 Day}} | image=Gold Icon | link=Frenzy_Days}} --- {{event|Food Frenzy| | {{subst:#time:j F Y|now+1 Day}} | image=Food Icon | link=Frenzy_Days}} --- {{event|Enchanted Frenzy| | {{subst:#time:j F Y|now+1 Day}} | image=Enchanted Trinkets Icon | link=Frenzy_Days}} --- {{event|Sale Whale| | {{subst:#time:j F Y|now+5 Days}} | image=Sale Whale Icon| link=Whale-Mart#Sale_Whale}} --- {{Event|Whale-Mart| | {{subst:#time:j F Y|now+2 Days}} | image=Whale-Mart Icon | link=Whale-Mart}} --- {{event|Otto's Lotto Week| | {{subst:#time:j F Y|now+7 Days}} | image=Hot Air Balloon | width=45 | link=Otto's_Lotto#Otto's_Lotto_Week}} --- {{event|Dragon's Hoard| | {{subst:#time:j F Y|now+4 Days}} | image=Ruins Reward Chest - Epic | link=Dragon's Hoard}} - special event with a non-standard image and link (no start date needed if there is a link provided) --- {{event|Piggy Bank | | {{subst:#time:j F Y|now+7 Days}} | link=Piggy Bank}} --- {{event|Sigil Campaign| | {{subst:#time:j F Y|now+28 Days}} | image=Sigil Contest Event |link=Sigil Campaign}} --- {{event|Movie Marathon | | {{subst:#time:j F Y|now+7 Days}} | link=Movie Marathon}} --- {{event|Guaranteed Treasure| |{{subst:#time:j F Y|now+7 Days}}|Milestone Rewards|image=Ruin_XP_Icon| link=Ruins#Guaranteed_Treasure}} - standard ending time -- --- {{event|Treasure Days|30 Apr 2022|1 June 2022| Calendar}} --- {{event|Golden Opportunity|21 January 2022|{{subst:#time:j F Y|now+3 Days}}|vip=VIP}} --- {{event|Gem Extravaganza|3 March 2022|{{subst:#time:j F Y|now+4 Days}}| Gem Spending|vip=VIP}} --- {{event|Divine Chest|{{subst:#time:j F Y}} | {{subst:#time:j F Y|now+14 Days}} | Chest Opening | image=Divine Chest (The Final Time Rift Part II)|link=The_Final_Time_Rift#Divine_Chest_Part_II}} --- {{event|Chronos Rising|7 September 2020|{{subst:#time:j F Y|now+14 Days}}|Collection|image=Divine_Collection_Event}} --- {{event|Cake Craze|14 December 2020|{{subst:#time:j F Y|now+7 Days}}|Cake Craze}} --- {{event|Treasure Hunt|16 March 2022|{{subst:#time:j F Y|now+21 Days}}|Treasure Hunt}} --- {{Event|Sigil Campaign| | 31 August 2022 | image=Sigil Contest Event |link=Sigil Campaign}} - special event with a non-standard image and link (no start date needed if there is a link provided) - standard ending time clan event (9:00:00) --- {{event|Sugar Rush|15 April 2019|{{subst:#time:j F Y|now+4 Days}}}} --- {{event|Clan Siege|10 January 2022|{{subst:#time:j F Y|now+4 Days}}}} --- {{event|The Great Dragon Race |17 January 2022|{{subst:#time:j F Y|now+4 Days}}}} - dragonmaster pass (11:00) --- {{event|Dragonmaster Pass |20 July 2022| 1 January 2022 }} - special ending time set (standard would be 7:00:00) --- {{event|Breeding Blitz |27 June 2022| 28 October 2022 8:00:00}} --- {{event|Farming Fanatic |17 June 2022| 13 October 2022 15:00:00}} - special event with a non-standard name --- {{event|Divine Party -- Rooftop|23 August 2021|{{subst:#time:j F Y|now+7 Days}}|Castle}} --- {{event|Seaweed Warrior|28 September 2020|{{subst:#time:j F Y|now+7 Days}}|Solo}} - special event with a non-standard name and image --- {{event|Ho'mala Rising|6 July 2020| {{subst:#time:j F Y|now+28 Days}}|Collection|image=Ancient_Collection_Event_Icon}} --- {{event|Lysk Rising|9 November 2020| {{subst:#time:j F Y|now+35 Days}}|Collection|image=Ancient_Event_Icon}} |
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 in the formatting template
Round up (ceiling): Arena Season 39
Calculated ending time: 3 June 2024 Intended Result:
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 |