This template generates CSS background-color and color properties for a style attribute. This template should be used in cases where an element is colored based on an associated race or polity (using Template:ColorRace for background colors, and Template:ColorRace/foreground for foreground colors.)



The raceid is a placeholder value, not a parameter name. Substitute values for the placeholder directly.

When used, ColorStyle must be encapsulated within a HTML style attribute. For example:

<div style="{{ColorStyle}}"/>

Optional Fields

Community content is available under CC-BY-SA unless otherwise noted.