Jump to content

Module:Gridiron color/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Usage: I made a slight wiki-code formatting change to this section.
removing gridiron raw templates as they seem to have been unused for years
 
Line 6: Line 6:


* {{tl|Gridiron primary color}}
* {{tl|Gridiron primary color}}
* {{tl|Gridiron primary color raw}}
* {{tl|Gridiron primary style}}
* {{tl|Gridiron primary style}}
* {{tl|Gridiron alt primary style}}
* {{tl|Gridiron alt primary style}}
* {{tl|Gridiron secondary color}}
* {{tl|Gridiron secondary color}}
* {{tl|Gridiron secondary color raw}}
* {{tl|Gridiron tertiary color raw}}
* {{tl|Gridiron alt primary color}}
* {{tl|Gridiron alt primary color}}
* {{tl|Gridiron alt primary color raw}}
* {{tl|Gridiron alt secondary color}}
* {{tl|Gridiron alt secondary color}}
* {{tl|Gridiron alt secondary color raw}}


Uses color data from [[Module:Gridiron color/data]].
Uses color data from [[Module:Gridiron color/data]].

Latest revision as of 17:31, 10 December 2024

Implements:

Uses color data from Module:Gridiron color/data.

Usage

[edit]

Debugging

[edit]

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

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

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

Return team color

[edit]

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

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

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

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

background: #00274D

Return team style

[edit]

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 and year passed in template call or specified using |team= and |year=:

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

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