Template:Infobox game score/doc

From English Wikipedia @ Freddythechick

This helper template is used by several infobox templates to format the score for a game.

Usage

1234OT2OTSO 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

123 Total
Visitor 123 6
Home 456 15

<syntaxhighlight lang="wikitext">

1 Total
0 0
0 0

</syntaxhighlight>

Matches with four periods

1234 Total
Visitor 1234 10
Home 5678 26

<syntaxhighlight lang="wikitext">

1 Total
0 0
0 0

</syntaxhighlight>

Overtime

1234OT2OT3OT4OT5OT6OT7OT Total
Visitor 12341234561 32
Home 43211234562 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

123OTSO Total
Visitor 12310/2 7
Home 32112/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 half2nd half Total
Visitor 5030 80
Home 2952 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

12 Total
Visitor 12 Halted due
Home 45 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