Module:Gridiron color/doc explained

Implements:

Uses color data from .

Usage

Debugging

Displays entire row from for team and year passed in template call or using and (if omitted from invoke, module will take values from the template call):

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|test|team{{=}}''team name (optional)''|year{{=}}''#### (optional)''}}

Return team color

Returns either raw color value or prefixed color value. uses the following values:

  1. Primary color (background)
  2. Secondary color (text)
  3. Tertiary color (border)
  4. Alternative primary color
  5. Alternative secondary color

Set to display raw hex values. Team name and year passed in template call or specified using and :

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|color|column{{=}}''#''|raw{{=}}''true (optional)''|team{{=}}''team name (optional)''|year{{=}}''#### (optional)''}}

Return team style

Returns complete CSS style for given team. A border will be displayed using the tertiary color if is set to "true" (in which case the border will be 2px wide) or to a positive integer value (in which case the width will be the value specified in pixels). Team name and year passed in template call or specified using and :

<nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|style|border{{=}}''# or yes (optional)''|team{{=}}''team name (optional)''|year{{=}}''#### (optional)''}}