Template:Infobox game score/doc
![]() | This is a documentation subpage for Template:Infobox game score. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template is used on approximately 3,600 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 helper template is used by several infobox templates to format the score for a game.
Usage
1 | 2 | 3 | 4 | OT | 2OT | SO | Total | |
---|---|---|---|---|---|---|---|---|
{{{teama}}} | {{{teama_1period}}} | {{{teama_2period}}} | {{{teama_3period}}} | {{{teama_4period}}} | {{{teama_OTperiod}}} | {{{teama_OT2period}}} | {{{teama_SO}}} | {{{teama_total}}} |
{{{teamb}}} | {{{teamb_1period}}} | {{{teamb_2period}}} | {{{teamb_3period}}} | {{{teamb_4period}}} | {{{teamb_OTperiod}}} | {{{teamb_OT2period}}} | {{{teamb_SO}}} | {{{teamb_total}}} |
<syntaxhighlight lang="wikitext">
1 | Total | |
---|---|---|
0 | 0 | |
0 | 0 |
</syntaxhighlight>
Matches with three periods
1 | 2 | 3 | Total | |
---|---|---|---|---|
Visitor | 1 | 2 | 3 | 6 |
Home | 4 | 5 | 6 | 15 |
<syntaxhighlight lang="wikitext">
1 | Total | |
---|---|---|
0 | 0 | |
0 | 0 |
</syntaxhighlight>
Matches with four periods
1 | 2 | 3 | 4 | Total | |
---|---|---|---|---|---|
Visitor | 1 | 2 | 3 | 4 | 10 |
Home | 5 | 6 | 7 | 8 | 26 |
<syntaxhighlight lang="wikitext">
1 | Total | |
---|---|---|
0 | 0 | |
0 | 0 |
</syntaxhighlight>
Overtime
1 | 2 | 3 | 4 | OT | 2OT | 3OT | 4OT | 5OT | 6OT | 7OT | Total | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
Visitor | 1 | 2 | 3 | 4 | 1 | 2 | 3 | 4 | 5 | 6 | 1 | 32 |
Home | 4 | 3 | 2 | 1 | 1 | 2 | 3 | 4 | 5 | 6 | 2 | 33 |
For matches with an overtime period, use <syntaxhighlight lang="wikitext"> | teama_OTperiod = | teamb_OTperiod = </syntaxhighlight> For a second overtime period, use <syntaxhighlight lang="wikitext"> | teama_OT2period = | teamb_OT2period = </syntaxhighlight> ... For a seventh overtime period, use <syntaxhighlight lang="wikitext"> | teama_OT7period = | teamb_OT7period = </syntaxhighlight>
Shoot out
1 | 2 | 3 | OT | SO | Total | |
---|---|---|---|---|---|---|
Visitor | 1 | 2 | 3 | 1 | 0/2 | 7 |
Home | 3 | 2 | 1 | 1 | 2/3 | 8 |
For matches with a shoot out period (not automatically included in the score), use <syntaxhighlight lang="wikitext"> | teama_SO = | teamb_SO = </syntaxhighlight> and <syntaxhighlight lang="wikitext"> | teama_total = | teamb_total = </syntaxhighlight>
Period labels
1st half | 2nd half | Total | |
---|---|---|---|
Visitor | 50 | 30 | 80 |
Home | 29 | 52 | 81 |
The labels for each period can be changed using |label_Xperiod=
for the X period. For example, for the first period, use
<syntaxhighlight lang="wikitext">
| label_1period =
</syntaxhighlight>
Total score
1 | 2 | Total | |
---|---|---|---|
Visitor | 1 | 2 | Halted due |
Home | 4 | 5 | to weather |
By default, the total score is computed by summing the score from each period. To override this feature, use <syntaxhighlight lang="wikitext"> | teama_total = | teamb_total = </syntaxhighlight>
Templates using this template
- {{Infobox basketball game}}
- {{Infobox Canadian football game}}
- {{Infobox college football single game}}
- {{Infobox College AllStar Game}}
- {{Infobox ice hockey game}}
- {{Infobox NBA All-Star Game}}
- {{Infobox NFL single game}}