Template:ColorStyle

From Nox Wiki
Jump to navigation Jump to search
Template documentation (for the above template, sometimes hidden or invisible)

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.)

Usage

{{ColorStyle|raceid|bgcolor=|fgcolor=}}

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


Visit Template:ColorStyle/doc to edit this text! (How does this work?)