Template:CFB schedule/doc
![]() | This is a documentation subpage for Template:CFB schedule. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 27,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: |
Usage
Named parameter syntax
<syntaxhighlight lang="wikitext">
Opponent | Site | Result |
---|---|---|
</syntaxhighlight>
Compact syntax
<syntaxhighlight lang="wikitext" style="overflow:auto">
Date | Time | Opponent | Rank | Site | TV | Result | Attendance | Source | ||
---|---|---|---|---|---|---|---|---|---|---|
Date1 | Time1 | atvs1 Opponent1 | Rank1 |
| TV1 | Result1 | Attendance1 | Source1 | ||
Date2 | Time2 | atvs2 Opponent2 | Rank2 |
| TV2 | Result2 | Attendance2 | Source2 | ||
|
</syntaxhighlight>
The coloring of each row is automatically determined from the <syntaxhighlight lang="text" class="" style="" inline="1">Result</syntaxhighlight>. The value used for the <syntaxhighlight lang="text" class="" style="" inline="1">Result</syntaxhighlight> should be of the form <syntaxhighlight lang="text" class="" style="" inline="1">R scoreA-scoreB</syntaxhighlight> where <syntaxhighlight lang="text" class="" style="" inline="1">R</syntaxhighlight> is <syntaxhighlight lang="text" class="" style="" inline="1">W</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">L</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">T</syntaxhighlight>, or <syntaxhighlight lang="text" class="" style="" inline="1">V</syntaxhighlight> for won, lost, tied, or vacated, respectively. The values used for <syntaxhighlight lang="text" class="" style="" inline="1">scoreA</syntaxhighlight> and <syntaxhighlight lang="text" class="" style="" inline="1">scoreB</syntaxhighlight> should be non-negative integers. The scores may be delimited with a hyphen, spaced hyphen, dash, spaced dash, or any non-numeric character.
Parameters
Parameter | Sample values | Description |
---|---|---|
Heading parameters | ||
<syntaxhighlight lang="text" class="" style="" inline="1">time</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight> | Toggles the inclusion of the time column (default is <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight>) |
<syntaxhighlight lang="text" class="" style="" inline="1">atvs</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight> | Toggles the inclusion of the at/vs column (default is <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight>) |
<syntaxhighlight lang="text" class="" style="" inline="1">rank</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight> | Toggles the inclusion of the rank column (default is <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight>) |
<syntaxhighlight lang="text" class="" style="" inline="1">tv</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight> | Toggles the inclusion of the TV column (default is <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight>) |
<syntaxhighlight lang="text" class="" style="" inline="1">attend</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight> | Toggles the inclusion of the attendance column (default is <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight>) |
<syntaxhighlight lang="text" class="" style="" inline="1">source</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight> | Toggles the inclusion of the source column (default is <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight>) |
<syntaxhighlight lang="text" class="" style="" inline="1">caption</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">2020 IUPUI Jaguars season results</syntaxhighlight> | Required table caption. See MOS:TABLECAPTION |
Footnote parameters | ||
<syntaxhighlight lang="text" class="" style="" inline="1">other-event</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">footnote text</syntaxhighlight> | Free form input for custom footnote text |
<syntaxhighlight lang="text" class="" style="" inline="1">opprank</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight> | The rank footnote is added if this is set to <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> (or if <syntaxhighlight lang="text" class="" style="" inline="1">rank</syntaxhighlight> is not set to <syntaxhighlight lang="text" class="" style="" inline="1">n</syntaxhighlight>) |
<syntaxhighlight lang="text" class="" style="" inline="1">rankyear</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">2018</syntaxhighlight> | The year for the poll used for the rankings (default is blank; see footnotes section for more details) |
<syntaxhighlight lang="text" class="" style="" inline="1">rankdivision</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">NAIA</syntaxhighlight> | The division for the poll used for the rankings (default is the highest division for the corresponding <syntaxhighlight lang="text" class="" style="" inline="1">rankyear</syntaxhighlight>, or blank if there is no <syntaxhighlight lang="text" class="" style="" inline="1">rankyear</syntaxhighlight>; see footnotes section for more details) |
<syntaxhighlight lang="text" class="" style="" inline="1">poll</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">AP</syntaxhighlight> | Name of the poll used for the rankings (default value is <syntaxhighlight lang="text" class="" style="" inline="1">Coaches'</syntaxhighlight>; see footnotes section for more details) |
<syntaxhighlight lang="text" class="" style="" inline="1">timezone</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">Eastern</syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1">Central</syntaxhighlight>, ... | If set to any non-blank value, a footnote is added indicating the timezone for all the times. |
<syntaxhighlight lang="text" class="" style="" inline="1">seasonsource</syntaxhighlight> | <syntaxhighlight lang="text" class="" style="" inline="1">source reference text</syntaxhighlight> | A reference for the results in the table |
Overtime
To denote that the game ended after overtime with the named parameter syntax, use |overtime=OT
, |overtime=2OT
, ... For the compact syntax, add <syntaxhighlight lang="text" class="" style="" inline="1"><OT></syntaxhighlight>, <syntaxhighlight lang="text" class="" style="" inline="1"><2OT></syntaxhighlight> after the score.
Footnotes
To add a non-conference game footnote, use <syntaxhighlight lang="text" class="" style="" inline="1"><ncg></syntaxhighlight> after the name of the opponent. To add a homecoming game footnote, use <syntaxhighlight lang="text" class="" style="" inline="1"><hc></syntaxhighlight> after the name of the opponent.
If |opprank=
and/or |rank=
are set to <syntaxhighlight lang="text" class="" style="" inline="1">y</syntaxhighlight> then the rankings footnote is included. The logic for specifying the poll is as follows:
- Does <syntaxhighlight lang="text" class="" style="" inline="1">poll</syntaxhighlight> contain a wikilink?
- If yes, use the value in <syntaxhighlight lang="text" class="" style="" inline="1">poll</syntaxhighlight>, ignoring the other parameters
- If not, is the year specified in <syntaxhighlight lang="text" class="" style="" inline="1">rankyear</syntaxhighlight>?
- If yes, the linked text is <syntaxhighlight lang="text" class="" style="" inline="1">[[rankyear rankdivision football rankings#poll Poll|poll Poll]]</syntaxhighlight> where <syntaxhighlight lang="text" class="" style="" inline="1">poll</syntaxhighlight> has a default value of <syntaxhighlight lang="text" class="" style="" inline="1">Coaches'</syntaxhighlight> and <syntaxhighlight lang="text" class="" style="" inline="1">rankdivision</syntaxhighlight> has a default value of <syntaxhighlight lang="text" class="" style="" inline="1">NCAA Division I FBS</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">NCAA Division I-A</syntaxhighlight> ... depending on the year.
- If not, is the division specified in <syntaxhighlight lang="text" class="" style="" inline="1">rankdivision</syntaxhighlight>?
- If yes, then the linked text is <syntaxhighlight lang="text" class="" style="" inline="1">[[rankdivision poll Poll|poll Poll]]</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">rankdivision [[poll Poll]]</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">rankdivision poll Poll</syntaxhighlight> depending on if the links exist.
- If not, then the linked text is <syntaxhighlight lang="text" class="" style="" inline="1">[[poll Poll]]</syntaxhighlight> or <syntaxhighlight lang="text" class="" style="" inline="1">poll Poll</syntaxhighlight>, depending on if the link exists.
Examples
Example 1
<syntaxhighlight lang="wikitext" style="overflow:auto">
Date | Time | Opponent | Rank | Site | TV | Result | Attendance | ||
---|---|---|---|---|---|---|---|---|---|
September 2 | 7:00 p.m. | vs. No. 3 Florida State | No. 1 | ABC | W 24–7 | 76,330 | |||
September 9 | 2:30 p.m. | Fresno State* | No. 1 | ESPN2 | W 41–10 | 101,127 | |||
October 14 | 6:15 p.m. | Arkansas![]() | No. 1 |
| ESPN | W 41–9 | 101,821 | ||
November 25 | 2:30 p.m. | at No. 6 Auburn | No. 1 | CBS | L 14–26 | 87,451 | |||
|
</syntaxhighlight>
Date | Time | Opponent | Rank | Site | TV | Result | Attendance | ||
---|---|---|---|---|---|---|---|---|---|
September 2 | 7:00 p.m. | vs. No. 3 Florida State | No. 1 | ABC | W 24–7 | 76,330 | |||
September 9 | 2:30 p.m. | Fresno State* | No. 1 | ESPN2 | W 41–10 | 101,127 | |||
October 14 | 6:15 p.m. | Arkansas![]() | No. 1 |
| ESPN | W 41–9 | 101,821 | ||
November 25 | 2:30 p.m. | at No. 6 Auburn | No. 1 | CBS | L 14–26 | 87,451 | |||
|
<syntaxhighlight lang="wikitext" style="overflow:auto">
Date | Time | Opponent | Rank | Site | TV | Result | Attendance |
---|---|---|---|---|---|---|---|
September 2 | 7:00 p.m. | vs. No. 3 Florida State* | No. 1 | ABC | W 24–7 | 76,330 | |
September 9 | 2:30 p.m. | Fresno State* | No. 1 | ESPN2 | W 41–10 | 101,127 | |
October 14 | 6:15 p.m. | Arkansas![]() | No. 1 |
| ESPN | W 41–9 | 101,821 |
November 25 | 2:30 p.m. | at No. 6 Auburn | No. 1 | CBS | L 14–26 | 87,451 | |
|
</syntaxhighlight>
Date | Time | Opponent | Rank | Site | TV | Result | Attendance |
---|---|---|---|---|---|---|---|
September 2 | 7:00 p.m. | vs. No. 3 Florida State* | No. 1 | ABC | W 24–7 | 76,330 | |
September 9 | 2:30 p.m. | Fresno State* | No. 1 | ESPN2 | W 41–10 | 101,127 | |
October 14 | 6:15 p.m. | Arkansas![]() | No. 1 |
| ESPN | W 41–9 | 101,821 |
November 25 | 2:30 p.m. | at No. 6 Auburn | No. 1 | CBS | L 14–26 | 87,451 | |
|
Example 2
<syntaxhighlight lang="wikitext" style="overflow:auto">
Date | Time | Opponent | Site | TV | Result | Attendance | ||
---|---|---|---|---|---|---|---|---|
October 9, 2004 | 4:30 pm | No. 9 Purdue |
| ESPN | L 13–20 | 108,183 | ||
October 8, 2005 | 8:00 pm | No. 6 Ohio State |
| ABC | W 17–10 | 109,839 | ||
|
</syntaxhighlight>
Date | Time | Opponent | Site | TV | Result | Attendance | ||
---|---|---|---|---|---|---|---|---|
October 9, 2004 | 4:30 pm | No. 9 Purdue |
| ESPN | L 13–20 | 108,183 | ||
October 8, 2005 | 8:00 pm | No. 6 Ohio State |
| ABC | W 17–10 | 109,839 | ||
|
<syntaxhighlight lang="wikitext" style="overflow:auto">
Date | Time | Opponent | Site | TV | Result | Attendance |
---|---|---|---|---|---|---|
October 9, 2004 | 4:30 pm | No. 9 Purdue |
| ESPN | L 13–20 | 108,183 |
October 8, 2005 | 8:00 pm | No. 6 Ohio State |
| ABC | W 17–10 | 109,839 |
|
</syntaxhighlight>
Date | Time | Opponent | Site | TV | Result | Attendance |
---|---|---|---|---|---|---|
October 9, 2004 | 4:30 pm | No. 9 Purdue |
| ESPN | L 13–20 | 108,183 |
October 8, 2005 | 8:00 pm | No. 6 Ohio State |
| ABC | W 17–10 | 109,839 |
|
Example 3
<syntaxhighlight lang="wikitext" style="overflow:auto">
Date | Opponent | Site | Result | Attendance | Source |
---|---|---|---|---|---|
November 14 | Cornell |
| W 6–0 | 2,000 | [1] |
November 26 | vs. Yale |
| L 0–19 | 40,000 | [2] |
- ^ "Princeton Beats Cornell: A Very Close and Exciting Game Between the Two Elevens". The New York Times. November 15, 1891. p. 3 – via Newspapers.com.
- ^ "Yale Still Triumphant: Princeton Beaten on Manhattan Field by a Score of 19 to 0". The Sun (New York). November 27, 1891. pp. 1–2 – via Newspapers.com.
</syntaxhighlight>
Date | Opponent | Site | Result | Attendance | Source |
---|---|---|---|---|---|
November 14 | Cornell |
| W 6–0 | 2,000 | [1] |
November 26 | vs. Yale |
| L 0–19 | 40,000 | [2] |
- ^ "Princeton Beats Cornell: A Very Close and Exciting Game Between the Two Elevens". The New York Times. November 15, 1891. p. 3 – via Newspapers.com.
- ^ "Yale Still Triumphant: Princeton Beaten on Manhattan Field by a Score of 19 to 0". The Sun (New York). November 27, 1891. pp. 1–2 – via Newspapers.com.
<syntaxhighlight lang="wikitext" style="overflow:auto">
Date | Opponent | Site | Result | Attendance | Source |
---|---|---|---|---|---|
November 14 | Cornell |
| W 6–0 | 2,000 | [1] |
November 26 | vs. Yale (rivalry) |
| L 0–19 | 40,000 | [2] |
- ^ "Princeton Beats Cornell: A Very Close and Exciting Game Between the Two Elevens". The New York Times. November 15, 1891. p. 3 – via Newspapers.com.
- ^ "Yale Still Triumphant: Princeton Beaten on Manhattan Field by a Score of 19 to 0". The Sun (New York). November 27, 1891. pp. 1–2 – via Newspapers.com.
</syntaxhighlight>
Date | Opponent | Site | Result | Attendance | Source |
---|---|---|---|---|---|
November 14 | Cornell |
| W 6–0 | 2,000 | [1] |
November 26 | vs. Yale (rivalry) |
| L 0–19 | 40,000 | [2] |
- ^ "Princeton Beats Cornell: A Very Close and Exciting Game Between the Two Elevens". The New York Times. November 15, 1891. p. 3 – via Newspapers.com.
- ^ "Yale Still Triumphant: Princeton Beaten on Manhattan Field by a Score of 19 to 0". The Sun (New York). November 27, 1891. pp. 1–2 – via Newspapers.com.
Tracking categories