Difference between revisions of "Template:Infobox league season"

From blackwiki
Jump to navigation Jump to search
imported>DoubleBlue
(adjusted prev/next seasons widths)
(use infobox)
Line 1: Line 1:
{| class="infobox" cellspacing="0" style="width:25em; font-size: 90%;"
+
{{Infobox
! colspan="2" style="font-size: medium;" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}
+
| bodyclass = vevent
|-
+
| bodystyle = width:25em; font-size: 90%;
| colspan="2" style="text-align:center" | {{{image| }}}
+
| headerstyle = background: #efefef
|-
+
 
| colspan="2" style="text-align:center; font-size:85%;" | {{{caption| }}}
+
| above =  {{#if: {{{name|}}}| {{{name}}} | {{PAGENAME}} }}
|-
+
| aboveclass = summary
| colspan="2" align="center" bgcolor="#efefef" | '''Regular season'''
+
 
|- {{#if:{{{season_start| }}}|class="vevent"}}
+
| image = {{{image|}}}
| {{#if:{{{season_start| }}}|'''Duration'''}}
+
| caption = {{{caption|}}}
| style="white-space: nowrap;" | {{#if:{{{season_start| }}}|{{{season_start}}} – {{{season_end| }}} }}
+
 
| style="display:none" | {{ISO date|{{{season_start}}} }} | {{#if:{{{season_end| }}}|{{ISO end date|{{{season_end}}} }} }} | <span class="summary">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}} }}</span>
+
| header1 = Regular season
|-
+
 
| colspan="2" | <i>{{{comment| }}}</i>
+
| label2 = Duration
|-
+
| data2  = {{#if:{{{season_start| }}}|{{{season_start}}}&nbsp;– {{{season_end| }}} }}
| colspan="2" align="center" bgcolor="#efefef" | '''Playoffs'''
+
 
|- {{#if:{{{playoffs_start| }}}|class="vevent"}}
+
| data3  = {{#if: {{{comment| }}} | <i>{{{comment}}}</i> }}
| {{#if:{{{playoffs_start| }}}|'''Start date'''}} || {{{playoffs_start| }}}
+
 
| style="display:none" | {{ISO date|{{{playoffs_start}}} }} | {{#if:{{{champion_date| }}}|{{ISO end date|{{{champion_date}}} }} }} | <span class="summary">Playoffs</span>
+
| header5 = Playoffs
|- {{#if:{{{cup_date1| }}}|class="vevent"}}
+
 
| <b><span class="summary">{{{cup_title1| }}}</span></b>
+
| label6 = Start date
| class="description" | {{{cup_champ1| }}}
+
| data6  = {{{playoffs_start|}}}
| <span style="display:none">{{ISO date|{{{cup_date1}}} }}</span>
+
 
|- {{#if:{{{cup_date2| }}}|class="vevent"}}
+
| label7 = {{#if:{{{cup_title1| }}} | <span class="summary">{{{cup_title1| }}}</span> }}
| <b><span class="summary">{{{cup_title2| }}}</span></b>
+
| data7  = {{#if:{{{cup_champ1| }}} | <span class="description">{{{cup_champ1| }}}</span> }}{{#if:{{{cup_date1|}}} | <span style="display:none">{{ISO date|{{{cup_date1}}} }}</span> }}
| class="description" | {{{cup_champ2| }}}
+
 
| <span style="display:none">{{ISO date|{{{cup_date2}}} }}</span>
+
| label8 = {{#if:{{{cup_title2| }}} | <span class="summary">{{{cup_title2| }}}</span> }}
|- {{#if:{{{cup_date3| }}}|class="vevent"}}
+
| data8  = {{#if:{{{cup_champ2| }}} | <span class="description">{{{cup_champ2| }}}</span> }}{{#if:{{{cup_date2|}}} | <span style="display:none">{{ISO date|{{{cup_date2}}} }}</span> }}
| <b><span class="summary">{{{cup_title3| }}}</span></b>
+
 
| class="description" | {{{cup_champ3| }}}
+
| label9 = {{#if:{{{cup_title3| }}} | <span class="summary">{{{cup_title3| }}}</span> }}
| <span style="display:none">{{ISO date|{{{cup_date3}}} }}</span>
+
| data9  = {{#if:{{{cup_champ3| }}} | <span class="description">{{{cup_champ3| }}}</span> }}{{#if:{{{cup_date3|}}} | <span style="display:none">{{ISO date|{{{cup_date3}}} }}</span> }}
|- {{#if:{{{cup_date4| }}}|class="vevent"}}
+
 
| <b><span class="summary">{{{cup_title4| }}}</span></b>
+
| label10= {{#if:{{{cup_title4| }}} | <span class="summary">{{{cup_title4| }}}</span> }}
| class="description" | {{{cup_champ4| }}}
+
| data10 = {{#if:{{{cup_champ4| }}} | <span class="description">{{{cup_champ4| }}}</span> }}{{#if:{{{cup_date4|}}} | <span style="display:none">{{ISO date|{{{cup_date4}}} }}</span> }}
| <span style="display:none">{{ISO date|{{{cup_date4}}} }}</span>
+
 
|- {{#if:{{{cup_date5| }}}|class="vevent"}}
+
| label11= {{#if:{{{cup_title5| }}} | <span class="summary">{{{cup_title5| }}}</span> }}
| <b><span class="summary">{{{cup_title5| }}}</span></b>
+
| data11 = {{#if:{{{cup_champ5| }}} | <span class="description">{{{cup_champ5| }}}</span> }}{{#if:{{{cup_date5|}}} | <span style="display:none">{{ISO date|{{{cup_date5}}} }}</span> }}
| class="description" | {{{cup_champ5| }}}
+
 
| <span style="display:none">{{ISO date|{{{cup_date5}}} }}</span>
+
| label12= {{#if:{{{cup_title6| }}} | <span class="summary">{{{cup_title6| }}}</span> }}
|- {{#if:{{{cup_date6| }}}|class="vevent"}}
+
| data12 = {{#if:{{{cup_champ6| }}} | <span class="description">{{{cup_champ6| }}}</span> }}{{#if:{{{cup_date6|}}} | <span style="display:none">{{ISO date|{{{cup_date6}}} }}</span> }}
| <b><span class="summary">{{{cup_title6| }}}</span></b>
+
 
| class="description" | {{{cup_champ6| }}}
+
| header15 = {{#if:{{{champion_title|}}}|{{{champion_title}}}|Championship}}
| <span style="display:none">{{ISO date|{{{cup_date6}}} }}</span>
+
| class15  = summary
|-
+
 
| colspan="2" align="center" bgcolor="#efefef" | <b>{{#if:{{{champion_title|}}}|{{{champion_title}}}|Championship}}</b>
+
| label16  = Date
|-
+
| data16  = {{{champion_date| }}}
| {{#if:{{{champion_date| }}}|'''Date'''}} || {{{champion_date| }}}
+
 
|-
+
| label17  = Site
| {{#if:{{{champion_site| }}}|'''Site'''}} || {{{champion_site| }}}
+
| class17  = location
|-
+
| data17  = {{{champion_site| }}}
| {{#if:{{{champion| }}}|'''Champions'''}} || {{{champion| }}}
+
 
|- style="display:none" {{#if:{{{champion_date| }}}|class="vevent"}}
+
| label18  = Champions
| class="summary" | {{{champion_title|Championship}}}
+
| data18  = {{{champion|}}}
| {{ISO date|{{{champion_date}}} }}
+
 
| class="location" | {{{champion_site| }}}
+
| header16 =  
| class="description" | {{{champion| }}}
+
<table style="width:100%; border:1px; border-collapse:collapse; background:#eee; text-align:center">
|- style="background:#eee;"
+
<tr>
| align="center" colspan="2" |
+
<td style="width:20%">{{#if:{{{prev| }}}|{{{prev| }}}&nbsp;<big>←</big>}}</td>
{| style="width:100%; border:1px; border-collapse:collapse; background:#eee; text-align:center"
+
<td style="width:60%; font-weight: bold">{{{seasons_title| }}}</td>
|-
+
<td style="width:20%">{{#if:{{{next| }}}|<big>→</big>&nbsp;{{{next| }}} }}</td>
| width="20%" | {{#if:{{{prev| }}}|{{{prev| }}}&nbsp;<big>←</big>}}
+
</tr></table>
| width="60%" | <b>{{{seasons_title| }}}</b>
+
}}<noinclude>
| width="20%" | {{#if:{{{next| }}}|<big>→</big>&nbsp;{{{next| }}} }}
+
{{documentation}}
|}
 
|}<noinclude>
 
<div style="float:left;">
 
{{template doc}}
 
</div>
 
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
<!-- Add cats and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 15:10, 30 April 2012

Infobox league season
Regular season
Playoffs
Championship

[[Category:Infobox templates|Template:Remove first word]]

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

Usage

Blank

{{Infobox league season
 |name=
 |image=
 |caption=
 |comment=
 |season_start=
 |season_end=
 |playoffs_start=
 |cup_title1=
 |cup_date1=
 |cup_champ1=
 |cup_title2=
 |cup_date2=
 |cup_champ2=
 |cup_title3=
 |cup_date3=
 |cup_champ3=
 |cup_title4=
 |cup_date4=
 |cup_champ4=
 |cup_title5=
 |cup_date5=
 |cup_champ5=
 |cup_title6=
 |cup_date6=
 |cup_champ6=
 |champion_title=
 |champion_date=
 |champion_site=
 |champion=
 |seasons_title=
 |prev=
 |next=
}}

CFL-use

{{Infobox league season
 |name={{subst:PAGENAME}}
 |image=
 |caption=
 |season_start=
 |season_end=
 |playoffs_start=
 |cup_title1=East Champions
 |cup_date1=
 |cup_champ1=
 |cup_title2=West Champions
 |cup_date2=
 |cup_champ2=
 |champion_title=
 |champion_date=
 |champion_site=
 |champion=
 |seasons_title=[[List of Canadian Football League seasons|CFL seasons]]
 |prev=
 |next=
}}

Parameters

bold indicates parameters generating hCalendar classes
name Name of the season; defaults to article title
image image, wikilinked with width parameter as necessary
caption caption displayed immediately under image
comment for something of unusual note about the season
season_start date of first regular season game
season_end date of final regular season game
playoffs_start date of first playoff game
cup_title1, 2, 3, 4, 5, 6 the name of a playoff championship (e.g., East Division, Yates Cup)
cup_date1, 2, 3, 4, 5, 6 date of the playoff championship (required for hCalendar but not displayed)
cup_champ1, 2, 3, 4, 5, 6 the champion of the playoff championship
champion_title name of the Championship; defaults to Championship
champion_date date of the Championship game
champion_site location of the Championship game
champion the name of the Champion
seasons_title title for the prev/next navigation line
prev and next wikilinks to previous and next year's season articles

Microformat

Template:UF-hcal

See also