Template:ColorRace

From MegaGlest
Revision as of 01:44, 16 December 2009 by Trappin (talk) (Created page with '<includeonly>{{#if:{{{3|}}}|{{{3}}}|{{#switch:{{lc:{{{1}}}}}|terran=#C0C0C0|human=#C0C0C0|protoss=#FEC423|zerg=#00C000|infested terran=#3264C8|{{{2}}}}}}}</in…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This template is used by other templates to automatically pick colors based on the race selected.

Usage

{{ColorRace|raceid|defaultcolor|overridecolor}}

The parameters are not preceded by parameter names. Substitute values for the parameter names directly.

Required Fields

  • raceid
    • The following indicates the values and their associated colors.
Color Value(s)
#00C000
  • zerg
#3264C8
  • infested terran
#C0C0C0
  • human
  • terran
#FEC423
  • protoss
  • defaultcolor
    • The color used if raceid does not match any of the default values.
    • If using hex triplet (eg. #000000) the # must be replaced with &#35;.

Optional Fields

  • overridecolor
    • If set this color will always be used.
    • If using hex triplet (eg. #000000) the # must be replaced with &#35;.