Difference between revisions of "Template:Infobox college football single game mini header"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(+documentation)
imported>Zackmann08
(converting to use Template:infobox)
Line 1: Line 1:
{| class="infobox" style="width: 22em; line-height: 1.2;"
+
<includeonly>{{infobox
|-
+
| bodyclass = vevent
| colspan="2" style="text-align:center; font-size:125%;" | '''{{{Name}}}'''
+
| bodystyle = font-size:90%; line-height:110%;
|-
+
| abovestyle = font-size:125%;
| style="text-align:center;" colspan="2" |
+
| aboveclass = summary
{| style="font-size:95%; line-height:95%; background:#F9F9F9" width="100%" class="nowraplinks"
+
| above = {{{Name|}}}
{| style="text-align:center;font-size:90%; background-color:transparent;"
+
| headerstyle = background-color:#efefef;
|- style="text-align:center;"
+
 
!
+
| data1 = {{#if:{{{Visitor1|}}}{{{Home1|}}}
! colspan=4|Quarter
+
|{{Infobox game score| style = font-size: 90%| width = 20px
!
+
| teama = '''{{{Visitor|}}}'''
|- style="text-align:center;"
+
| teama_1period = {{{Visitor1|}}}
|
+
| teama_2period = {{{Visitor2|}}}
|width="15"|'''1'''
+
| teama_3period = {{{Visitor3|}}}
|width="15"|'''2'''
+
| teama_4period = {{{Visitor4|}}}
|width="15"|'''3'''
+
| teama_OTperiod = {{{Visitor5|}}}
|width="15"|'''4'''<!--
+
| teama_OT2period = {{{Visitor6|}}}
-->{{#if:{{{Home5|}}}|<th width="15">OT</th>|</th>}}<!--
+
| teama_OT3period = {{{Visitor7|}}}
-->{{#if:{{{Home6|}}}|<th width="15">2OT</th>}}<!--
+
| teama_OT4period = {{{Visitor8|}}}
-->{{#if:{{{Home7|}}}|<th width="15">3OT</th>}}<!--
+
| teama_OT5period = {{{Visitor9|}}}
-->{{#if:{{{Home8|}}}|<th width="15">4OT</th>}}<!--
+
| teama_OT6period = {{{Visitor10|}}}
-->{{#if:{{{Home9|}}}|<th width="15">5OT</th>}}<!--
+
| teama_OT7period = {{{Visitor11|}}}
-->{{#if:{{{Home10|}}}|<th width="15">6OT</th>}}<!--
+
| teamb = '''{{{Home|}}}'''
-->{{#if:{{{Home11|}}}|<th width="15">7OT</th>}}
+
| teamb_1period = {{{Home1|}}}
!width="25"|Total
+
| teamb_2period = {{{Home2|}}}
|- style="text-align:center;"
+
| teamb_3period = {{{Home3|}}}
| style="text-align:right;" |{{nowrap|'''{{{Visitor}}}'''}}
+
| teamb_4period = {{{Home4|}}}
| style="background-color:#E0E6EB;" |{{{Visitor1|}}}
+
| teamb_OTperiod = {{{Home5|}}}
| style="background-color:#E0E6EB;" |{{{Visitor2|}}}
+
| teamb_OT2period = {{{Home6|}}}
| style="background-color:#E0E6EB;" |{{{Visitor3|}}}
+
| teamb_OT3period = {{{Home7|}}}
| style="background-color:#E0E6EB;" |{{{Visitor4|}}}<!--
+
| teamb_OT4period = {{{Home8|}}}
-->{{#if:{{{Home5|}}}|<td style="background-color:#E0E6EB">{{{Visitor5}}}</td>|</td>}}<!--
+
| teamb_OT5period = {{{Home9|}}}
-->{{#if:{{{Home6|}}}|<td style="background-color:#E0E6EB">{{{Visitor6}}}</td>}}<!--
+
| teamb_OT6period = {{{Home10|}}}
-->{{#if:{{{Home7|}}}|<td style="background-color:#E0E6EB">{{{Visitor7}}}</td>}}<!--
+
| teamb_OT7period = {{{Home11|}}}
-->{{#if:{{{Home8|}}}|<td style="background-color:#E0E6EB">{{{Visitor8}}}</td>}}<!--
+
}}
-->{{#if:{{{Home9|}}}|<td style="background-color:#E0E6EB">{{{Visitor9}}}</td>}}<!--
+
}}
-->{{#if:{{{Home10|}}}|<td style="background-color:#E0E6EB">{{{Visitor10}}}</td>}}<!--
+
| label2 = Date
-->{{#if:{{{Home11|}}}|<td style="background-color:#E0E6EB">{{{Visitor11}}}</td>}}
+
| data2 = {{{Date|}}}
<td><b><includeonly>{{#if:{{{Visitor1|}}}|{{#expr:{{{Visitor1|0}}}+{{{Visitor2|0}}}+{{{Visitor3|0}}}+{{{Visitor4|0}}}+{{{Visitor5|0}}}+{{{Visitor6|0}}}+{{{Visitor7|0}}}+{{{Visitor8|0}}}+{{{Visitor9|0}}}+{{{Visitor10|0}}}+{{{Visitor11|0}}}}}}}</includeonly></b></td>
+
| label3 = Stadium
|- style="text-align:center;"
+
| data3 = {{{Stadium|}}}
| style="text-align:right;" |{{nowrap|'''{{{Home}}}'''}}
+
| label4 = Location
| style="background-color:#E0E6EB;" |{{{Home1|}}}
+
| data4 = {{{City|}}}
| style="background-color:#E0E6EB;" |{{{Home2|}}}
+
| label5 = [[Most Valuable Player|MVP]]
| style="background-color:#E0E6EB;" |{{{Home3|}}}
+
| data5 = {{{MVP|}}}
| style="background-color:#E0E6EB;" |{{{Home4|}}}<!--
+
| label6 = [[Spread betting|Favorite]]
-->{{#if:{{{Home5|}}}|<td style="background-color:#E0E6EB">{{{Home5}}}</td>|</td>}}<!--
+
| data6 = {{{Odds|}}}
-->{{#if:{{{Home6|}}}|<td style="background-color:#E0E6EB">{{{Home6}}}</td>}}<!--
+
| label7 = [[The Star-Spangled Banner|National anthem]]
-->{{#if:{{{Home7|}}}|<td style="background-color:#E0E6EB">{{{Home7}}}</td>}}<!--
+
| data7 = {{{Anthem|}}}
-->{{#if:{{{Home8|}}}|<td style="background-color:#E0E6EB">{{{Home8}}}</td>}}<!--
+
| label8 = [[Official (American football)|Referee]]
-->{{#if:{{{Home9|}}}|<td style="background-color:#E0E6EB">{{{Home9}}}</td>}}<!--
+
| data8 = {{{Referee|}}}
-->{{#if:{{{Home10|}}}|<td style="background-color:#E0E6EB">{{{Home10}}}</td>}}<!--
+
| label9 = [[Halftime show]]
-->{{#if:{{{Home11|}}}|<td style="background-color:#E0E6EB">{{{Home11}}}</td>}}
+
| data9 = {{{Halftime|}}}
<td><b><includeonly>{{#if:{{{Home1|}}}|{{#expr:{{{Home1|0}}}+{{{Home2|0}}}+{{{Home3|0}}}+{{{Home4|0}}}+{{{Home5|0}}}+{{{Home6|0}}}+{{{Home7|0}}}+{{{Home8|0}}}+{{{Home9|0}}}+{{{Home10|0}}}+{{{Home11|0}}}}}}}</includeonly></b></td>
+
| label10 = Attendance
|}
+
| data10 = {{{Attendance|}}}
|-
+
 
| style="text-align:center;" colspan="2" |
+
| header11 = {{#if:{{{US Network|}}}{{{US Announcers|}}}{{{Ratings|}}}|United States TV coverage}}
|- style="vertical-align: middle;"
+
| label12 = Network
| '''Date''' || {{{Date}}}
+
| data12 = {{{US Network|}}}
|- style="vertical-align: middle;"
+
| label13 = Announcers
| '''Stadium''' || {{{Stadium}}}
+
| data13 = {{{US Announcers|}}}
|- style="vertical-align: middle;"
+
| label14 = Nielsen Ratings
| '''Location''' || {{{City}}}
+
| data14 = {{{Ratings|}}}
|- style="vertical-align: middle;"
+
 
{{#ifeq:{{{Type|}}}|c||
+
| header15 = {{#if:{{{Intl Network|}}}{{{Intl Announcers|}}}|International TV coverage}}
{{#ifeq:{{{Type|}}}|nc||
+
| label16 = Network
{{#if:{{{MVP|}}}|
+
| data16 = {{{Intl Network|}}}
{{!}} '''[[Most Valuable Player|MVP]]''' {{!}}{{!}} {{{MVP}}} }} }} }}
+
| label17 = Announcers
|- style="vertical-align: middle;"
+
| data17 = {{{Intl Announcers|}}}
{{#if:{{{Odds|}}}|
+
}}</includeonly><noinclude>{{documentation}}</noinclude>
{{!}} '''[[Spread betting|Favorite]]''' {{!}}{{!}} {{{Odds}}} }}
 
|- style="vertical-align: middle;"
 
{{#if:{{{Anthem|}}}|
 
{{!}} '''[[The Star-Spangled Banner|National anthem]]''' {{!}}{{!}} {{{Anthem}}} }}
 
|- style="vertical-align: middle;"
 
{{#if:{{{Referee|}}}|
 
{{!}} '''[[Official (American football)|Referee]]'''
 
{{!}} {{{Referee}}} }}
 
|- style="vertical-align: middle;"
 
{{#if:{{{Halftime|}}}|
 
{{!}} '''[[Halftime show]]''' {{!}}{{!}} {{{Halftime}}} }}
 
|- style="vertical-align: middle;"
 
{{#if:{{{Attendance|}}}|
 
{{!}} '''Attendance''' {{!}}{{!}} {{{Attendance}}} }}
 
{{#if:{{{US Network|}}}|
 
{{!}}-
 
{{!}} style="text-align:center;background-color:#efefef;" colspan="2" {{!}} '''United States TV coverage'''
 
{{!}}- style="vertical-align:middle;"
 
{{!}} '''Network''' {{!}}{{!}} {{{US Network}}}
 
{{!}}- style="vertical-align:middle;"
 
{{#if:{{{US Announcers|}}}|
 
{{!}}  '''Announcers''' {{!}}{{!}} {{{US Announcers}}} }}
 
{{!}}- style="vertical-align:middle;"
 
{{#if:{{{Ratings|}}}|
 
{{!}}  '''Nielsen Ratings''' {{!}}{{!}} {{{Ratings}}} }} }}
 
{{#if:{{{Intl Network|}}}|
 
{{!}}-
 
{{!}} style="text-align:center;background-color:#efefef;" colspan="2" {{!}} '''International TV coverage'''
 
{{!}}- style="vertical-align:middle;"
 
{{!}} '''Network''' {{!}}{{!}} {{{Intl Network}}}
 
{{!}}- style="vertical-align:middle;"
 
{{#if:{{{Intl Announcers|}}}|
 
{{!}} '''Announcers''' {{!}}{{!}} {{{Intl Announcers}}} }} }}
 
|}<noinclude>{{documentation}}{{Convert to use Infobox}}
 
This is a variant of {{tl|Infobox college football single game}} used for creating a smaller infobox when several games are covered in one article.
 
[[Category:American college sports infobox templates|Football single game mini header]]
 
[[Category:American college football templates]]</noinclude>
 

Revision as of 08:20, 8 January 2017

Template documentation[view] [edit] [history] [purge]

Template:Parameter names example This is a variant of {{Infobox college football single game}} used for creating a smaller infobox when several games are covered in one article.

Usage

{{Infobox college football single game mini header
| Name  = 
| Home  = 
| Home1  = 
| Home2  = 
| Home3  = 
| Home4  = 
| Home5  = 
| Home6  = 
| Home7  = 
| Home8  = 
| Home9  = 
| Home10  = 
| Home11  = 
| Visitor  = 
| Visitor1  = 
| Visitor2  = 
| Visitor3  = 
| Visitor4  = 
| Visitor5  = 
| Visitor6  = 
| Visitor7  = 
| Visitor8  = 
| Visitor9  = 
| Visitor10  = 
| Visitor11  = 
| Date  = 
| Stadium  = 
| City  = 
| Type  = 
| MVP  = 
| Odds  = 
| Anthem  = 
| Referee  = 
| Halftime  = 
| Attendance  = 
| US Network  = 
| US Announcers  = 
| Ratings  = 
| Intl Network  = 
| Intl Announcers =
}}