Template:ColorRace/doc

From Nox Wiki
Jump to navigation Jump to search

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

If using ColorRace and ColorRace/foreground to choose background and foreground colors for elements, consider using the helper template Template:ColorStyle instead.

When adding a new raceid color to ColorRace, add a suitable foreground color for that raceid to Template:ColorRace/foreground as well.

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.
raceid Color
human #CC9966
necromancer #336699
ogre #66cc33
creature #8f8f8f
demon #840000
undead #8f8f8f

Optional Fields

  • defaultcolor
    • The color used if raceid does not match any of the default.
    • This is a CSS color property.
  • overridecolor
    • If set this color will always be used.
    • This is a CSS color property.