Difference between revisions of "Template:CollegeSecondaryHeader/doc"
Jump to navigation
Jump to search
imported>Frietjes (←Created page with '{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> {{l...') |
imported>UW Dawgs (stub cfb and a cbk examples) |
||
Line 2: | Line 2: | ||
<!-- 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:College color}} | {{lua|Module:College color}} | ||
− | This template may be used to generate colored table headings in an article about a college team. | + | This template may be used to generate colored table headings in an article about a college team. It will ''attempt'' to use the school's '''secondary color''' is as the background color within the header row, but may revert to the primary color in some circumstances to achieve contrast. |
+ | |||
+ | This template is helpful when needing to draw contrast with surrounding content which uses [[Template:CollegeSecondaryHeader]], or to similarly minimize the table and its contents. | ||
+ | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
Line 11: | Line 14: | ||
|} | |} | ||
</pre> | </pre> | ||
+ | == Examples == | ||
+ | === Example 1 === | ||
+ | Note: "team=Alabama Crimson Tide" | ||
+ | <pre> | ||
+ | {| class="wikitable" | ||
+ | {{CollegeSecondaryHeader|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 | ||
+ | |} | ||
+ | </pre> | ||
+ | Will ''revert'' to render with Alabama's primary color, rather than Alabama's secondary color which doesn't support enough contrast to display the header text: | ||
+ | {| class="wikitable" | ||
+ | {{CollegeSecondaryHeader|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 | ||
+ | |} | ||
+ | === Example 2 === | ||
+ | Note: "team=UCLA Bruins" | ||
+ | <pre> | ||
+ | {| class="wikitable" | ||
+ | {{CollegeSecondaryHeader|team=UCLA Bruins|Player|Career|...|Induction}} | ||
+ | |- | ||
+ | | [[Bill Walton]] | ||
+ | | 1971–1974 | ||
+ | | ... | ||
+ | | 1993 | ||
+ | |- | ||
+ | | [[Kareem Abdul-Jabbar]] | ||
+ | | 1966–1969 | ||
+ | | ... | ||
+ | | 1995 | ||
+ | |- | ||
+ | | [[Reggie Miller]] | ||
+ | | 1983–1987 | ||
+ | | ... | ||
+ | | 2012 | ||
+ | |} | ||
+ | </pre> | ||
+ | Will render using the correct value for UCLA's secondary color of gold: | ||
+ | {| class="wikitable" | ||
+ | {{CollegeSecondaryHeader|team=UCLA Bruins|Player|Career|...|Induction}} | ||
+ | |- | ||
+ | | [[Bill Walton]] | ||
+ | | 1971–1974 | ||
+ | | ... | ||
+ | | 1993 | ||
+ | |- | ||
+ | | [[Kareem Abdul-Jabbar]] | ||
+ | | 1966–1969 | ||
+ | | ... | ||
+ | | 1995 | ||
+ | |- | ||
+ | | [[Reggie Miller]] | ||
+ | | 1983–1987 | ||
+ | | ... | ||
+ | | 2012 | ||
+ | |} | ||
== See also == | == See also == | ||
* {{tl|CollegePrimaryHeader}} | * {{tl|CollegePrimaryHeader}} |
Revision as of 23:26, 29 August 2016
![]() | This is a documentation subpage for Template:CollegeSecondaryHeader. It contains usage information, categories and other content that is not part of the original template page. |
![]() | This template uses Lua: |
This template may be used to generate colored table headings in an article about a college team. It will attempt to use the school's secondary color is as the background color within the header row, but may revert to the primary color in some circumstances to achieve contrast.
This template is helpful when needing to draw contrast with surrounding content which uses Template:CollegeSecondaryHeader, or to similarly minimize the table and its contents.
Usage
{| class="wikitable" {{CollegeSecondaryHeader|team=<team name>|heading1|heading2|...|heading6}} |- | data1a || data1b || data1c || data1d || data1e || data1f |}
Examples
Example 1
Note: "team=Alabama Crimson Tide"
{| class="wikitable" {{CollegeSecondaryHeader|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 revert to render with Alabama's primary color, rather than Alabama's secondary color which doesn't support enough contrast to display the header text:
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" {{CollegeSecondaryHeader|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 secondary color of gold:
Player | Career | ... | Induction |
---|---|---|---|
Bill Walton | 1971–1974 | ... | 1993 |
Kareem Abdul-Jabbar | 1966–1969 | ... | 1995 |
Reggie Miller | 1983–1987 | ... | 2012 |
See also