Difference between revisions of "Template:Infobox game score/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Templates using this template: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Oleg3280
 
Line 222: Line 222:
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
 
[[Category:Sports infobox templates]]
 
[[Category:Sports infobox templates]]
 
[[ru:Шаблон:Счет игры]]
 
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 15:18, 28 April 2020

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

Usage

Template:Parameter names example

{{Infobox game score
| align = 
| style = 
| width = 
| label_1period = 
| teama_2period = 
| teamb_2period = 
| label_2period = 
| teama_3period = 
| teamb_3period = 
| label_3period = 
| teama_4period = 
| teamb_4period = 
| label_4period = 
| teama_OTperiod = 
| teamb_OTperiod = 
| label_OTperiod = 
| teama_OT2period = 
| teamb_OT2period = 
| label_OT2period = 
| teama_OT3period = 
| teamb_OT3period = 
| label_OT3period = 
| teama_OT4period = 
| teamb_OT4period = 
| label_OT4period = 
| teama_OT5period = 
| teamb_OT5period = 
| label_OT5period = 
| teama_OT6period = 
| teamb_OT6period = 
| label_OT6period = 
| teama_OT7period = 
| teamb_OT7period = 
| label_OT7period = 
| teama_SO = 
| teamb_SO = 
| label_SO = 
| teama = 
| teama_1period = 
| teama_total = 
| teamb = 
| teamb_1period = 
| teamb_total = 
}}

Matches with three periods

123 Total
Visitor 123 6
Home 456 15
{{Infobox game score
| teama = 
| teama_1period =
| teama_2period =
| teama_3period = 
| teamb = 
| teamb_1period =
| teamb_2period =
| teamb_3period = 
}}

Matches with four periods

1234 Total
Visitor 1234 10
Home 5678 26
{{Infobox game score
| teama = 
| teama_1period =
| teama_2period =
| teama_3period = 
| teama_4period =
| teamb = 
| teamb_1period =
| teamb_2period =
| teamb_3period = 
| teamb_4period =
}}

Overtime

1234OT2OT3OT4OT5OT6OT7OT Total
Visitor 12341234561 32
Home 43211234562 33

For matches with an overtime period, use

| teama_OTperiod =
| teamb_OTperiod =

For a second overtime period, use

| teama_OT2period =
| teamb_OT2period =

... For a seventh overtime period, use

| teama_OT7period =
| teamb_OT7period =

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

| teama_SO =
| teamb_SO =

and

| teama_total =
| teamb_total =

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

| label_1period = 

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

| teama_total =
| teamb_total =

Templates using this template