Difference between revisions of "Template:CollegePrimaryHeader"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(will make a LUA version at some point (requested at Category_talk:Lists_of_college_football_statistical_leaders_by_team))
 
imported>Frietjes
(now in lua)
Line 1: Line 1:
<includeonly>|-
+
{{#invoke:college color|tablehead1}}<noinclude>{{Documentation}}</noinclude>
{{#if:{{{1|}}}|
 
!! style="{{#invoke:College color|header1|{{{team|}}}|border=0}}" {{!}} {{{1}}}
 
}}{{#if:{{{2|}}}|
 
!! style="{{#invoke:College color|header1|{{{team|}}}|border=0}}" {{!}} {{{2}}}
 
}}{{#if:{{{3|}}}|
 
!! style="{{#invoke:College color|header1|{{{team|}}}|border=0}}" {{!}} {{{3}}}
 
}}{{#if:{{{4|}}}|
 
!! style="{{#invoke:College color|header1|{{{team|}}}|border=0}}" {{!}} {{{4}}}
 
}}{{#if:{{{5|}}}|
 
!! style="{{#invoke:College color|header1|{{{team|}}}|border=0}}" {{!}} {{{5}}}
 
}}{{#if:{{{6|}}}|
 
!! style="{{#invoke:College color|header1|{{{team|}}}|border=0}}" {{!}} {{{6}}}
 
}}
 
|-</includeonly><noinclude>{{documentation|content=
 
This template may be used to generate colored table headings in an article about a college team.
 
== Usage ==
 
<pre>
 
{| class="wikitable"
 
{{CollegePrimaryHeader|team=<team name>|heading1|heading2|...|heading6}}
 
|-
 
| data1a || data1b || data1c || data1d || data1e || data1f
 
|}
 
</pre>
 
== See also ==
 
* {{tl|CollegeSecondaryHeader}}
 
* {{tl|CollegePrimaryStyle}}
 
 
 
[[Category:American college sports color templates]]
 
 
 
}}</noinclude>
 

Revision as of 20:09, 29 August 2016

|- |-

Template documentation[view] [edit] [history] [purge]

This template may be used to generate colored table headings in an article about a college team. The school's primary color is automatically used as the background color within the header row.

Usage

{| class="wikitable"
{{CollegePrimaryHeader|team=<team name>|heading1|heading2|...|heading6}}
|-
| data1a || data1b || data1c || data1d || data1e || data1f
|}

Examples

Example 1

Note: "team=Alabama Crimson Tide"

{| class="wikitable"
{{CollegePrimaryHeader|team=Alabama Crimson Tide|Year|Player|Position|All-American Selector(s)}}
|-
| 1915 || William T. Van de Graaff || Tackle || WC-2; PD-1
|-
| 1925 || Allison Hubert || Quarterback || NB-2
|-
| 1926 || FredPickhard || Tackle || BE-2
|} 

Will render using the correct value for Alabama's primary color of crimson:

Year Player Position All-American Selector(s)
1915 William T. Van de Graaff Tackle WC-2; PD-1
1925 Allison Hubert Quarterback NB-2
1926 FredPickhard Tackle BE-2

Example 2

Note: "team=UCLA Bruins"

{| class="wikitable"
{{CollegePrimaryHeader|team=UCLA Bruins|Player|Career|...|Induction}}
|-
| [[Bill Walton]] 
| 1971–1974
| ...
| 1993
|-
| [[Kareem Abdul-Jabbar]] 
| 1966–1969
| ...
| 1995
|-
| [[Reggie Miller]] 
| 1983–1987
| ... 
| 2012
|} 

Will render using the correct value for UCLA's primary color of blue:

Player Career ... Induction
Bill Walton 1971–1974 ... 1993
Kareem Abdul-Jabbar 1966–1969 ... 1995
Reggie Miller 1983–1987 ... 2012

See also