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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Oleg3280
 
(9 intermediate revisions by 4 users not shown)
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
 +
{{Parameter names example|_template=|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}}
 +
<pre>{{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 =
 +
}}</pre>
 +
 
=== Matches with three periods ===
 
=== Matches with three periods ===
 
{{Infobox game score
 
{{Infobox game score
Line 99: Line 146:
 
| teama_OT7period =
 
| teama_OT7period =
 
| teamb_OT7period =
 
| teamb_OT7period =
 +
</pre>
 +
 +
=== Shoot out ===
 +
{{Infobox game score
 +
| teama = Visitor
 +
| teama_1period = 1
 +
| teama_2period = 2
 +
| teama_3period = 3
 +
| teama_OTperiod = 1
 +
| teama_SO = 0/2
 +
| teama_total = 7
 +
| teamb = Home
 +
| teamb_1period = 3
 +
| teamb_2period = 2
 +
| teamb_3period = 1
 +
| teamb_OTperiod = 1
 +
| teamb_SO = 2/3
 +
| teamb_total = 8
 +
}}
 +
For matches with a shoot out period (not automatically included in the score), use
 +
<pre>
 +
| teama_SO =
 +
| teamb_SO =
 +
</pre>
 +
and
 +
<pre>
 +
| teama_total =
 +
| teamb_total =
 
</pre>
 
</pre>
  
Line 137: Line 212:
 
* {{tl|Infobox basketball game}}
 
* {{tl|Infobox basketball game}}
 
* {{tl|Infobox Canadian football game}}
 
* {{tl|Infobox Canadian football game}}
 +
* {{tl|Infobox college football single game}}
 
* {{tl|Infobox College AllStar Game}}
 
* {{tl|Infobox College AllStar Game}}
 +
* {{tl|Infobox ice hockey game}}
 
* {{tl|Infobox NBA All-Star Game}}
 
* {{tl|Infobox NBA All-Star Game}}
 
* {{tl|Infobox NFL single game}}
 
* {{tl|Infobox NFL single game}}
 
* {{tl|Infobox RHI All-Star Game}}
 
* {{tl|Infobox RHI All-Star Game}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
[[Category: Sports infobox templates]]
+
[[Category:Sports infobox templates]]
</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