Difference between revisions of "Module:Gridiron color/doc"
blackwiki>Ahecht (secondary moved) |
blackwiki>Ahecht (alpha→beta) |
||
| Line 1: | Line 1: | ||
| − | {{Module rating| | + | {{Module rating|beta}} |
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
{{lua|Module:Gridiron color/data}} | {{lua|Module:Gridiron color/data}} | ||
Revision as of 01:23, 22 June 2018
| 40x40px | This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
| 30px | This module depends on the following other modules: |
Implements:
- {{Gridiron primary color/sandbox}}
- {{Gridiron primary color raw/sandbox}}
- {{Gridiron primary style/sandbox}}
- {{Gridiron secondary color/sandbox}}
- {{Gridiron secondary color raw/sandbox}}
- {{Gridiron tertiary color raw/sandbox}}
- {{Gridiron alt primary color/sandbox}}
- {{Gridiron alt primary style/sandbox}}
- {{Gridiron alt secondary color/sandbox}}
Usage
Debugging
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", #00338D", #FFFFFF"}}
Return team color
Returns either raw color value or prefixed color value. |column= uses the following values:
- Primary color
- Secondary color
- Tertiary color
- Alternative primary color
- Alternative 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
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: #00274D; color: #FFFFFF; -moz-box-shadow: inset 2px 2px 0 #C60C30, inset -2px -2px 0 #C60C30; -webkit-box-shadow: inset 2px 2px 0 #C60C30, inset -2px -2px 0 #C60C30; box-shadow: inset 2px 2px 0 #C60C30, inset -2px -2px 0 #C60C30;