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

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
Line 6: Line 6:
 
== Usage ==
 
== Usage ==
 
=== Matches with three periods ===
 
=== Matches with three periods ===
 +
{{Infobox game score
 +
| teama = Visitor
 +
| teama_1period = 1
 +
| teama_2period = 2
 +
| teama_3period = 3
 +
| teamb = Home
 +
| teamb_1period = 4
 +
| teamb_2period = 5
 +
| teamb_3period = 6
 +
}}
 
<pre>
 
<pre>
 
{{Infobox game score
 
{{Infobox game score
Line 20: Line 30:
  
 
=== Matches with four periods ===
 
=== Matches with four periods ===
 +
{{Infobox game score
 +
| teama = Visitor
 +
| teama_1period = 1
 +
| teama_2period = 2
 +
| teama_3period = 3
 +
| teama_4period = 4
 +
| teamb = Home
 +
| teamb_1period = 5
 +
| teamb_2period = 6
 +
| teamb_3period = 7
 +
| teamb_4period = 8
 +
}}
 
<pre>
 
<pre>
 
{{Infobox game score
 
{{Infobox game score
Line 36: Line 58:
  
 
=== Overtime ===
 
=== Overtime ===
 +
{{Infobox game score
 +
| teama = Visitor
 +
| teama_1period = 1
 +
| teama_2period = 2
 +
| teama_3period = 3
 +
| teama_4period = 4
 +
| teama_OTperiod = 1
 +
| teama_OT2period = 2
 +
| teama_OT3period = 3
 +
| teama_OT4period = 1
 +
| teamb = Home
 +
| teamb_1period = 4
 +
| teamb_2period = 3
 +
| teamb_3period = 2
 +
| teamb_4period = 1
 +
| teamb_OTperiod = 1
 +
| teamb_OT2period = 2
 +
| teamb_OT3period = 3
 +
| teamb_OT4period = 2
 +
}}
 
For matches with an overtime period, use
 
For matches with an overtime period, use
 
<pre>
 
<pre>
Line 58: Line 100:
  
 
=== Period labels ===
 
=== Period labels ===
 +
{{Infobox game score
 +
| teama = Visitor
 +
| label_1period = 1st half
 +
| label_2period = 2nd half
 +
| teama_1period = 50
 +
| teama_2period = 30
 +
| teamb = Home
 +
| teamb_1period = 29
 +
| teamb_2period = 52
 +
}}
 
The labels for each period can be changed using {{para|label_Xperiod}} for the X period.  For example, for the first period, use
 
The labels for each period can be changed using {{para|label_Xperiod}} for the X period.  For example, for the first period, use
 
<pre>
 
<pre>
Line 64: Line 116:
  
 
=== Total score ===
 
=== Total score ===
 +
{{Infobox game score
 +
| teama = Visitor
 +
| teama_1period = 1
 +
| teama_2period = 2
 +
| teama_total  = {{small|Halted&nbsp;due}}
 +
| teamb = Home
 +
| teamb_1period = 4
 +
| teamb_2period = 5
 +
| teamb_total  = {{small|to&nbsp;weather}}
 +
}}
 
By default, the total score is computed by summing the score from each period.  To override this feature, use
 
By default, the total score is computed by summing the score from each period.  To override this feature, use
 
<pre>
 
<pre>
Line 70: Line 132:
 
</pre>
 
</pre>
  
== See also ==
+
== Templates using this template ==
 +
* {{tl|Infobox NFL single game}}
  
 
<includeonly>
 
<includeonly>

Revision as of 16:44, 4 March 2012

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

Usage

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

1234OT2OT3OT4OT Total
Visitor 12341231 17
Home 43211232 18

For matches with an overtime period, use

| teama_OTperiod =
| teamb_OTperiod =

For a second overtime period, use

| teama_OT2period =
| teamb_OT2period =

For a third overtime period, use

| teama_OT3period =
| teamb_OT3period =

For a fourth overtime period, use

| teama_OT4period =
| teamb_OT4period =

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