Template:TimeFormat
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)
{{TimeFormat | 0.5 }}
gives 30 seconds{{TimeFormat | 30 }}
gives 30 minutes{{TimeFormat | 0.4 | box}}
gives 24 Seconds{{TimeFormat | 75 | box}}
gives 1 Hour & 15 Minutes{{TimeFormat | 180 | box}}
gives 3 Hours{{TimeFormat | 1439 | box}}
gives 23 Hours & 59 Minutes{{TimeFormat | 1440 | box}}
gives 1 Day{{TimeFormat | 1452 }}
gives 1 day and 12 minutes{{TimeFormat | 1543 }}
gives 1 day, 1 hour and 43 minutes{{TimeFormat | 1543 | noRT=True}}
gives 1 day, 1 hour and 43 minutes
{{TimeFormat | 30 | short}}
gives 30 minutes{{TimeFormat | 75 | short}}
gives 1h 15m{{TimeFormat | 180 | short}}
gives 3 hours{{TimeFormat | 1439 | short}}
gives 23h 59m{{TimeFormat | 1440 | short}}
gives 1 day{{TimeFormat | 1452 | short}}
gives 1d 12m{{TimeFormat | 1543 | short}}
gives 1d 1h 43m{{TimeFormat | 1543 | short | noRT=True}}
gives 1d 1h 43m
Formats the Minutes entered depending on the parameter for a sentence (using "and"), the Dragon Infobox (using "&") or as short format (h m s). To skip the popup text set the noRT parameter.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Minutes | 1 | Enter the amount of time to format here (in Minutes)
| Number | required |
Formatting type | 2 | Defines how the output format should look like. Allowed values are [empty], "box" and "short".
| String | optional |
No Popup Text | noRT | If not empty the popup text ("Only the first 2 are displayed in game") is omitted.
| Boolean | optional |