Please remember to make use of the Manual of Style and Code of Conduct during your stay.

 Actions

Template

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type1

The type of Element/Rarity/Event to fetch the color code for.

Example
Plant, Epic, Collection
Stringrequired
dark?2

If this parameter is set, the darker colors for the type is returned.

Default
false
Example
true
Booleanoptional

Examples

{{ColorCodes|Fire}} CE4421
{{ColorCodes|Fire|true}} 9E2810
{{EvColor|{{ColorCodes|Fire}} }}    
{{EvColor|{{ColorCodes|Primal}} }}    
{{EvColor|{{ColorCodes|Epic|dark}} }}    
{{EvColor|{{ColorCodes|Treasure Hunt}} }}