Difference between revisions of "Template:Infobox ice hockey game"

From blackwiki
Jump to navigation Jump to search
imported>ViperSnake151
m (Reverted edits by ViperSnake151 (talk) to last version by 24.15.20.21)
imported>Frietjes
(simplify using a helper template)
Line 4: Line 4:
 
|-
 
|-
 
| align="center" colspan="2" |
 
| align="center" colspan="2" |
{| align="center" style="background-color:transparent;"
+
{{Infobox game score|width = 33px
|- style="text-align:center;"
+
| teama = {{{visitor}}}
!
+
| teama_1period = {{{visitor_per1}}}
!width="33"|1
+
| teama_2period = {{{visitor_per2}}}
!width="33"|2
+
| teama_3period = {{{visitor_per3}}}
!width="33"|3<!--
+
| teama_OTperiod = {{{visitor_OT|}}}
-->{{#if:{{{home_OT|}}}|<th width="33">OT</th>|</th>}}<!--
+
| teama_OT2period = {{{visitor_2OT|}}}
-->{{#if:{{{home_2OT|}}}|<th width="33">2OT</th>|</th>}}<!--
+
| teama_OT3period = {{{visitor_3OT|}}}
-->{{#if:{{{home_3OT|}}}|<th width="33">3OT</th>|</th>}}<!--
+
| teama_OT4period = {{{visitor_4OT|}}}
-->{{#if:{{{home_4OT|}}}|<th width="33">4OT</th>|</th>}}<!--
+
| teama_SO = {{{visitor_SO|}}}
-->{{#if:{{{home_SO|}}}|<th width="33">SO</th>}}
+
| teama_total = {{{visitor_total}}}
!width="33"|Total
+
| teamb = {{{home}}}
|- style="text-align:center;"
+
| teamb_1period = {{{home_per1}}}
|align="right" nowrap|{{{visitor}}}
+
| teamb_2period = {{{home_per2}}}
| bgcolor="#efefef"|{{{visitor_per1}}}
+
| teamb_3period = {{{home_per3}}}
| bgcolor="#efefef"|{{{visitor_per2}}}
+
| teamb_OTperiod = {{{home_OT|}}}
| bgcolor="#efefef"|{{{visitor_per3}}}<!--
+
| teamb_OT2period = {{{home_2OT|}}}
-->{{#if:{{{home_OT|}}}|<td bgcolor="#efefef">{{{visitor_OT}}}</td>|</td>}}<!--
+
| teamb_OT3period = {{{home_3OT|}}}
-->{{#if:{{{home_2OT|}}}|<td bgcolor="#efefef">{{{visitor_2OT}}}</td>|</td>}}<!--
+
| teamb_OT4period = {{{home_4OT|}}}
-->{{#if:{{{home_3OT|}}}|<td bgcolor="#efefef">{{{visitor_3OT}}}</td>|</td>}}<!--
+
| teamb_SO = {{{home_SO|}}}
-->{{#if:{{{home_4OT|}}}|<td bgcolor="#efefef">{{{visitor_4OT}}}</td>|</td>}}<!--
+
| teamb_total = {{{home_total}}}
-->{{#if:{{{home_SO|}}}|<td bgcolor="#efefef">{{{visitor_SO}}}</td>}}
+
}}
<td><b>{{{visitor_total}}}</b></td>
 
|- style="text-align:center;"
 
|align="right" nowrap|{{{home}}}
 
| bgcolor="#efefef"|{{{home_per1}}}
 
| bgcolor="#efefef"|{{{home_per2}}}
 
| bgcolor="#efefef"|{{{home_per3}}}<!--
 
-->{{#if:{{{home_OT|}}}|<td bgcolor="#efefef">{{{home_OT}}}</td>|</td>}}<!--
 
-->{{#if:{{{home_2OT|}}}|<td bgcolor="#efefef">{{{home_2OT}}}</td>|</td>}}<!--
 
-->{{#if:{{{home_3OT|}}}|<td bgcolor="#efefef">{{{home_3OT}}}</td>|</td>}}<!--
 
-->{{#if:{{{home_4OT|}}}|<td bgcolor="#efefef">{{{home_4OT}}}</td>|</td>}}<!--
 
-->{{#if:{{{home_SO|}}}|<td bgcolor="#efefef">{{{home_SO}}}</td>}}
 
<td><b>{{{home_total}}}</b></td>
 
|}
 
 
|- style="vertical-align: middle"
 
|- style="vertical-align: middle"
 
| align="right" width="50%" | '''Date''' || {{{date}}}
 
| align="right" width="50%" | '''Date''' || {{{date}}}

Revision as of 18:30, 4 March 2012

{{{game_name}}}
123 Total
{{{visitor}}} {{{visitor_per1}}}{{{visitor_per2}}}{{{visitor_per3}}} {{{visitor_total}}}
{{{home}}} {{{home_per1}}}{{{home_per2}}}{{{home_per3}}} {{{home_total}}}
Date {{{date}}}
Arena {{{arena}}}
City {{{city}}}
Attendance {{{attendance}}}

fr:Modèle:Infobox match de hockey sur glace