Template:CollegePrimaryHeader
Appearance
|- |-
This template is used on approximately 7,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template uses Lua: |
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
|}
Column spans
To allow the X
th heading to span more than one column, use |colXspan=N
where N
is the number of columns to span.
Unsortable class
To make the X
th column unsortable, use |classX=unsortable
.
Borders
To enable colored cell borders, use |border=1
or |border=2
.
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 |