Module:Gridiron color/doc
This is the documentation page for Module:Gridiron color
Template:Module rating Template:High use
Template:Lua Implements:
- {{Gridiron primary color}}
- {{Gridiron primary color raw}}
- {{Gridiron primary style}}
- {{Gridiron secondary color}}
- {{Gridiron secondary color raw}}
- {{Gridiron tertiary color raw}}
- {{Gridiron alt primary color}}
- {{Gridiron alt primary style}}
- {{Gridiron alt secondary color}}
Uses color data from Module:Gridiron color/data.
Usage
Debugging
Displays entire row from Module:Gridiron color/data for team and year passed in template call or using Template:Para and Template:Para (if omitted from invoke, module will take values from the template call):
{{#invoke:Gridiron color|test|teamTemplate:=team name (optional)|yearTemplate:=#### (optional)}}
Script error: No such module "Gridiron color/sandbox".
Return team color
Returns either raw color value or prefixed color value. Template:Para uses the following values:
- Primary color
- Secondary color
- Tertiary color
- Alternative primary color
- Alternative secondary color
Set Template:Para to display raw hex values. Team name and year passed in template call or specified using Template:Para and Template:Para:
{{#invoke:Gridiron color|color|columnTemplate:=#|rawTemplate:=true (optional)|teamTemplate:=team name (optional)|yearTemplate:=#### (optional)}}
Script error: No such module "Gridiron color/sandbox".
Return team style
Returns complete CSS style for given team. A border will be displayed using the tertiary color if Template:Para 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 Template:Para and Template:Para:
{{#invoke:Gridiron color|style|borderTemplate:=# or yes (optional)|teamTemplate:=team name (optional)|yearTemplate:=#### (optional)}}
Script error: No such module "Gridiron color/sandbox".