Jump to content

Module:Gridiron color/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 15:55, 9 June 2018 (document). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Implements:

Usage

Debugging

Displays entire row from Module:Gridiron color/data for team passed in template call or using |team= (if omitted from invoke, module will take value from the template call):

{{#invoke:Gridiron color|test|team=team name (optional)}}

["Buffalo Bills"] = {{ "#00338D", #FFFFFF", #C60C30", #C60C30", #FFFFFF"}}

Return team color

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

  1. Primary color
  2. Secondary color
  3. Tertiary color
  4. Alternative primary color
  5. Alternative secondary color

Set |raw=true to display raw hex values. Team name passed in template call or specified using |team=:

{{#invoke:Gridiron color|color|column=#|raw=true (optional)|team=team name (optional)}}

background: #00338D

Return team style

Returns complete CSS style for given team. A border will be displayed using the tertiary color if |border= 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 passed in template call or specified using |team=:

{{#invoke:Gridiron color|style|border=# or yes (optional)|team=team name (optional)}}

background-color: #00338D !important; color: #FFFFFF !important; box-shadow: inset 2px 2px 0 #C60C30, inset -2px -2px 0 #C60C30;