EventDurationFromName: Difference between revisions
From Dragon Mania Legends (DML) Wiki
CrystalClear (talk | contribs) (Update to be 6 Days 16 Hours) |
m (Missing a -) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{EventTypeFromName | {{{1}}} }} <!-- | <includeonly>{{#switch:{{EventTypeFromName | {{{1}}} }} <!-- | ||
-->|Relay|Movie Marathon|Dragon Grid|Bottomless Dungeon=7 Days<!-- | -->|Relay|Movie Marathon|Dragon Grid|Bottomless Dungeon=7 Days<!-- | ||
-->|Stone | -->|Stone Gathering|Stone Spending=6 Days 16 Hours<!-- | ||
-->|Breeding Blitz=2 Days<!-- | -->|Breeding Blitz=2 Days<!-- | ||
---->|Arcade={{#ifeq:{{{1}}}|Dragon Runner|7 Days|4 Days}}<!-- | ---->|Arcade={{#ifeq:{{{1}}}|Dragon Runner|7 Days|4 Days}}<!-- | ||
Line 12: | Line 12: | ||
<!-- Add categories to the /doc subpage --> | <!-- Add categories to the /doc subpage --> | ||
{{review|update=7.8|notes=If Stone Spending (and gathering if such is added) stays at 6 Days 16 Hours instead of 7, this template is fine otherwise adjust accordingly.}} | {{review|update=7.8|notes=If Stone Spending (and gathering if such is added) stays at 6 Days 16 Hours instead of 7, this template is fine otherwise adjust accordingly.}} | ||
<!- |Stone Spending=6 Days 16 Hours --> | <!-- |Stone Spending=6 Days 16 Hours --> | ||
</noinclude> | </noinclude> |
Revision as of 08:26, 1 March 2024
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) |
Examples
{{EventDurationFromName|Golden Gatherer}}
gives 3 Days{{EventDurationFromName|Solo}}
gives 10 Days{{EventDurationFromName|Castle}}
gives default{{EventDurationFromName|Movie Marathon}}
gives 7 Days{{EventDurationFromName|Dragon Runner}}
gives 7 Days{{EventDurationFromName|Arcade}}
(for Dragon's Delight) gives 4 Days{{EventDurationFromName|Stone Spending}}
gives 6 Days 16 Hours
Returns standard event durations, based on event name. Uses the {EventTypeFromName} template to get event type from name, feeds the event type to a switch statement that then has a standard duration set for each event type.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Event Name | 1 | Name of the event as it appears in Game
| String | required |