Template:HatchingTime
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)
{{HatchingTime|Fire|Metal|type=Common}}
: 510
8 hours and 30 minutes
- Boiling Dragon (breeding time override):
{{HatchingTime|Fire|Water|type=Common| breedTime=90}}
: 150
2 hours and 30 minutes
- (actually the Boiling Dragon also has a hatching override of 2 hours).
- Whereas without the correct time
{{HatchingTime|Fire|Water|type=Common}}
it would give : 390
- Ignis Faber Dragon (Tyrants only use Base and Type)
{{HatchingTime|Tyrant|Legendary|Fire|type=Tyrant}}
: 6920
4 days, 19 hours and 20 minutes
- which gives the same as
{{HatchingTime|Tyrant|Foo|Bar|type=Tyrant}}
: 6920
Calculates the hatching time in minutes based on the breedingTime (or the calculated BreedingTime for the elements (1-3) and type stated as type parameter by making use of the BreedingTime template). The {{valElem}} template gets called with the elements and the type to get the values for "Hatching". This Template is used by the DragonBox template, to calculate the Hatching times (non-vip and vip).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Element 1 | 1 | The Base Element of the Dragon
| String | required |
Element 2 | 2 | Second Element of the Dragon (if any)
| String | optional |
Element 3 | 3 | Third Element of the Dragon (if any)
| String | optional |
Type | 4 type | The type of the Dragon
| String | optional |
Vip? | vip | If this parameter is set, the result is multiplied by 0.8.
| Boolean | optional |
Breeding time preset | breedTime | If not specified, the template uses the elements and type to calculate the Breeding time, otherwise this value is used as base.
| Number | optional |