MyWikiBiz, Author Your Legacy — Saturday September 06, 2025
Jump to navigationJump to search
2,551 bytes added
, 21:54, 15 July 2021
{{Module rating|beta}}
{{high use|30000}}
<includeonly>{{accessibility dispute|reason=insufficient [[Wikipedia:Manual of Style/Accessibility#Color|color contrast]] for some teams|talk=Accessibility problems|date=December 2009}}</includeonly>
{{lua|Module:Gridiron color/data|Module:Yesno|Module:Color contrast}}
Implements:
* {{tl|Gridiron primary color}}
* {{tl|Gridiron primary color raw}}
* {{tl|Gridiron primary style}}
* {{tl|Gridiron secondary color}}
* {{tl|Gridiron secondary color raw}}
* {{tl|Gridiron tertiary color raw}}
* {{tl|Gridiron alt primary color}}
* {{tl|Gridiron alt primary style}}
* {{tl|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 {{para|team}} and {{para|year}} (if omitted from invoke, module will take values from the template call):
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|test|team{{=}}''team name (optional)''|year{{=}}''#### (optional)''}}</code>
{{#invoke:{{BASEPAGENAME}}/sandbox|test|team=Buffalo Bills|year=2002}}
===Return team color===
Returns either raw color value or prefixed color value. {{para|column}} uses the following values:
# Primary color
# Secondary color
# Tertiary color
# Alternative primary color
# Alternative secondary color
Set {{para|raw|true}} to display raw hex values. Team name and year passed in template call or specified using {{para|team}} and {{para|year}}:
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|color|column{{=}}''#''|raw{{=}}''true (optional)''|team{{=}}''team name (optional)''|year{{=}}''#### (optional)''}}</code>
{{#invoke:{{BASEPAGENAME}}/sandbox|color|column=1|team=Buffalo Bills|year=2002}}
===Return team style===
Returns complete CSS style for given team. A border will be displayed using the tertiary color if {{para|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 {{para|team}} and {{para|year}}:
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|style|border{{=}}''# or yes (optional)''|team{{=}}''team name (optional)''|year{{=}}''#### (optional)''}}</code>
{{#invoke:{{BASEPAGENAME}}/sandbox|style|team=Buffalo Bills|border=2|year=2002}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>