ColorCodes
From Dragon Mania Legends (DML) Wiki
This template contains ALL colors used in this wiki that are mapped to Elements/Events/Rarities/whatever. It returns the color code for the provided Parameter, without any leading "#". E.g. "959595" for "Metal" or "5F9EA0" for "Arcade". Can be used in combination with the {evColor} template and gets used itself by the {EventBox/BackgroundColor} and many other color templates. To get the Border color, the second parameter must be set.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Type | 1 | The type of Element/Rarity/Event to fetch the color code for.
| String | required |
dark? | 2 | If this parameter is set, the darker colors for the type is returned.
| Boolean | optional |
Examples
{{ColorCodes|Fire}}
CE4421
{{ColorCodes|Fire|true}}
9E2810
{{EvColor|{{ColorCodes|Fire}} }}
{{EvColor|{{ColorCodes|Primal}} }}
{{EvColor|{{ColorCodes|Epic|dark}} }}
{{EvColor|{{ColorCodes|Treasure Hunt}} }}