Difference between revisions of "Template:Infobox league season"
Jump to navigation
Jump to search
imported>DoubleBlue (adjusted prev/next seasons widths) |
(use infobox) |
||
| Line 1: | Line 1: | ||
| − | {| | + | {{Infobox |
| − | + | | bodyclass = vevent | |
| − | | | + | | bodystyle = width:25em; font-size: 90%; |
| − | | | + | | headerstyle = background: #efefef |
| − | | | + | |
| − | + | | above = {{#if: {{{name|}}}| {{{name}}} | {{PAGENAME}} }} | |
| − | + | | aboveclass = summary | |
| − | | | + | |
| − | | | + | | image = {{{image|}}} |
| − | + | | caption = {{{caption|}}} | |
| − | | | + | |
| − | | | + | | header1 = Regular season |
| − | + | ||
| − | + | | label2 = Duration | |
| − | | | + | | data2 = {{#if:{{{season_start| }}}|{{{season_start}}} – {{{season_end| }}} }} |
| − | + | ||
| − | + | | data3 = {{#if: {{{comment| }}} | <i>{{{comment}}}</i> }} | |
| − | + | ||
| − | | style="display:none" | + | | header5 = Playoffs |
| − | | | + | |
| − | + | | label6 = Start date | |
| − | + | | data6 = {{{playoffs_start|}}} | |
| − | | <span style="display:none">{{ISO date|{{{ | + | |
| − | | | + | | label7 = {{#if:{{{cup_title1| }}} | <span class="summary">{{{cup_title1| }}}</span> }} |
| − | + | | data7 = {{#if:{{{cup_champ1| }}} | <span class="description">{{{cup_champ1| }}}</span> }}{{#if:{{{cup_date1|}}} | <span style="display:none">{{ISO date|{{{cup_date1}}} }}</span> }} | |
| − | | | + | |
| − | | <span | + | | label8 = {{#if:{{{cup_title2| }}} | <span class="summary">{{{cup_title2| }}}</span> }} |
| − | + | | data8 = {{#if:{{{cup_champ2| }}} | <span class="description">{{{cup_champ2| }}}</span> }}{{#if:{{{cup_date2|}}} | <span style="display:none">{{ISO date|{{{cup_date2}}} }}</span> }} | |
| − | + | ||
| − | | | + | | label9 = {{#if:{{{cup_title3| }}} | <span class="summary">{{{cup_title3| }}}</span> }} |
| − | | <span | + | | data9 = {{#if:{{{cup_champ3| }}} | <span class="description">{{{cup_champ3| }}}</span> }}{{#if:{{{cup_date3|}}} | <span style="display:none">{{ISO date|{{{cup_date3}}} }}</span> }} |
| − | | | + | |
| − | + | | label10= {{#if:{{{cup_title4| }}} | <span class="summary">{{{cup_title4| }}}</span> }} | |
| − | + | | 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> | + | |
| − | | | + | | label11= {{#if:{{{cup_title5| }}} | <span class="summary">{{{cup_title5| }}}</span> }} |
| − | + | | data11 = {{#if:{{{cup_champ5| }}} | <span class="description">{{{cup_champ5| }}}</span> }}{{#if:{{{cup_date5|}}} | <span style="display:none">{{ISO date|{{{cup_date5}}} }}</span> }} | |
| − | + | ||
| − | | | + | | label12= {{#if:{{{cup_title6| }}} | <span class="summary">{{{cup_title6| }}}</span> }} |
| − | + | | data12 = {{#if:{{{cup_champ6| }}} | <span class="description">{{{cup_champ6| }}}</span> }}{{#if:{{{cup_date6|}}} | <span style="display:none">{{ISO date|{{{cup_date6}}} }}</span> }} | |
| − | + | ||
| − | + | | header15 = {{#if:{{{champion_title|}}}|{{{champion_title}}}|Championship}} | |
| − | | <span style="display:none">{{ISO date|{{{ | + | | class15 = summary |
| − | + | ||
| − | | | + | | label16 = Date |
| − | | | + | | data16 = {{{champion_date| }}} |
| − | + | ||
| − | + | | label17 = Site | |
| − | + | | class17 = location | |
| − | + | | data17 = {{{champion_site| }}} | |
| − | | {{#if:{{{ | + | |
| − | + | | label18 = Champions | |
| − | | | + | | data18 = {{{champion|}}} |
| − | | | + | |
| − | | | + | | header16 = |
| − | | | + | <table style="width:100%; border:1px; border-collapse:collapse; background:#eee; text-align:center"> |
| − | + | <tr> | |
| − | | | + | <td style="width:20%">{{#if:{{{prev| }}}|{{{prev| }}} <big>←</big>}}</td> |
| − | + | <td style="width:60%; font-weight: bold">{{{seasons_title| }}}</td> | |
| − | + | <td style="width:20%">{{#if:{{{next| }}}|<big>→</big> {{{next| }}} }}</td> | |
| − | + | </tr></table> | |
| − | + | }}<noinclude> | |
| − | + | {{documentation}} | |
| − | |||
| − | |||
| − | |||
| − | {{ | ||
| − | |||
<!-- 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]]
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
See also
| The above documentation is transcluded from Template:Infobox league season/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |