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

 Actions

Template

Difference between revisions of "ColorCodes"

From Dragon Mania Legends (DML) Wiki

m (Make primal color less hard on the eyes (fluorescent colors are banned as text backgrounds lol))
m
Line 14: Line 14:
 
---->|Light=B5AD84<!--
 
---->|Light=B5AD84<!--
 
---->|Legendary=681FA3<!--
 
---->|Legendary=681FA3<!--
---->|Primal=1e7564<!--
+
---->|Primal=237b6a<!--
 
---->|Divine=17010C<!--
 
---->|Divine=17010C<!--
 
---->|Ancient=92013D<!--
 
---->|Ancient=92013D<!--
Line 62: Line 62:
 
---->|Light=E3DEBE<!--
 
---->|Light=E3DEBE<!--
 
---->|Legendary=B24FD3<!--
 
---->|Legendary=B24FD3<!--
---->|Primal=76d6c7<!--
+
---->|Primal=4dcfbe<!--
 
---->|Divine=4D052A<!--
 
---->|Divine=4D052A<!--
 
---->|Ancient=C91B69<!--
 
---->|Ancient=C91B69<!--

Revision as of 05:24, 22 January 2022


This template returns the color code for the given type. 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 template colors. 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
Pagerequired
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}} }}