Template:Infobox games: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{infobox | {{infobox | ||
| bodyclass = vevent | |||
| | | above = {{#if: {{{name|}}}| {{{name}}} | {{{Name|}}} }} | ||
| | |||
| | |||
| aboveclass = summary | | aboveclass = summary | ||
| label1 = Host city | | image= {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{logo|}}}|{{{logo}}}|{{{Logo|}}}}}|size={{#if:{{{Size|}}}|{{{Size}}}|{{{size|}}}}}|alt={{{logo_alt|}}}}} | ||
| data1 = {{{Host city|}}}{{{Host City|}}} | | caption= {{#if:{{{caption|}}}|{{{caption}}}|{{{Optional caption|}}}}} | ||
| label1 = {{#if:{{{host city|}}}{{{Host city|}}}{{{Host City|}}}|Host city|Host}} | |||
| data1 = {{ifempty | {{{host city|}}} | {{{Host city|}}} | {{{Host City|}}} | {{{host|}}} }} | |||
| class1 = location | | class1 = location | ||
| label2 = Motto | | label2 = Country | ||
| | | data2 = {{#if:{{{country|}}} | {{{country}}} | {{{Country|}}} }} | ||
| | |||
| | | label3 = Motto | ||
| | | data3 = {{#if:{{{motto|}}} | {{{motto}}} | {{{Motto|}}} }} | ||
| | |||
| | | label4 = {{#if:{{{Provinces and Territories participating|}}}|Provinces and Territories|Nations}} participating | ||
| | | data4 = {{#if:{{{Provinces and Territories participating|}}} | ||
| {{{Provinces and Territories participating}}} | |||
| {{ifempty | {{{nations participating|}}} | {{{Nations participating|}}} | {{{Nations|}}} }} | |||
}} | |||
| label5 = Teams participating | |||
| data5 = {{ifempty | {{{teams participating|}}} | {{{Teams participating|}}} }} | |||
| label6 = Debuting countries | |||
| data6 = {{#if:{{{debuting countries|}}} | {{{debuting countries}}} | {{{Debuting countries|}}} }} | |||
| label7 = Athletes participating<noinclude><!-- 'Athletes' = deprecated legacy parameter --></noinclude> | |||
| data7 = {{ifempty | {{{athletes participating|}}} | {{{Athletes participating|}}} | {{{Athletes|}}} }} | |||
| label8 = Events | |||
| data8= {{#if: {{{Events|}}} | {{{Events}}} | {{{events|}}} }} | |||
<noinclude><!-- Programming note: the {{#if:{{{1|}}}|{{{1}}}}} is not the same as {{{1}}}, since the former strips whitespace and newlines and is more robust --></noinclude> | |||
| label9= {{#ifexist:{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games opening ceremony|[[{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games opening ceremony|Opening ceremony]]|Opening ceremony}} | |||
| data9= {{#if: {{{opening ceremony|}}} | {{{opening ceremony}}} | {{{Opening ceremony|}}} }} | |||
<noinclude><!-- Programming note: as above` --></noinclude> | |||
| label10= {{#ifexist:{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games closing ceremony|[[{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games closing ceremony|Closing ceremony]]|Closing ceremony}} | |||
| data10= {{#if: {{{Closing ceremony|}}} | {{{Closing ceremony}}} | {{{closing ceremony|}}} }} | |||
| label11= Dates | |||
| data11= {{#if:{{{dates|}}}|{{{dates}}}|{{{Dates|}}}}} <noinclude><!-- Deprecated legacy parameters --></noinclude> | |||
| label12= Officially opened by | |||
| data12= {{#if: {{{officially opened by|}}} | {{{officially opened by}}} | {{{Officially opened by|}}} }} | |||
| label13= Officially closed by | |||
| data13= {{#if: {{{officially closed by|}}} | {{{officially closed by}}} | {{{Officially closed by|}}} }} | |||
| label14= Athlete's Oath | |||
| data14= {{ifempty| {{{athlete's oath|}}} | {{{Athlete's Oath|}}} | {{{athletes' oath|}}} }} | |||
| label15=Judge's Oath | |||
| data15= {{#if: {{{judge's oath|}}} | {{{judge's oath}}} | {{{Judge's oath|}}} }} | |||
| label16=Coach's Oath | |||
| data16= {{{coaches' oath|}}} | |||
| | | label17={{#if:{{{torch label|}}}|{{{torch label}}}|Torch Lighter}} | ||
| | | data17= {{ifempty | {{{torch|}}} | {{{torch lighter|}}} | {{{Torch Lighter|}}} | {{{All-Africa Torch|}}} | {{{Pan Am Torch|}}} | {{{Olympic Flame|}}} }}<noinclude><!-- 'All-Africa Torch', 'Pan Am Torch' = deprecated legacy parameters --></noinclude> | ||
| | | label18=Paralympic Torch | ||
| data18= {{#if:{{{Paralympic torch|}}} | {{{Paralympic torch|}}} | {{{Paralympic Torch|}}} }} | |||
| | | label19=[[Queen's Baton Relay|Queen's Baton Final Runner]] | ||
| data19= {{{Queen's Baton|}}} | |||
| | |||
| | |||
| | | label20= Main venue | ||
| | | data20= {{ifempty | {{{stadium|}}} | {{{Stadium|}}} | {{{Main_venue|}}} }} <noinclude><!-- 'Main_venue' = deprecated legacy parameter --></noinclude> | ||
| | | label21= Venues | ||
| | | data21= {{#if:{{{venues|}}} | {{{venues}}} | {{{Venues|}}} }}<noinclude><!-- = deprecated legacy parameter --></noinclude> | ||
| | |label22 = Paralympic Stadium | ||
| | |data22 = {{#if:{{{Paralympic stadium|}}} | {{{Paralympic stadium}}} | {{{Paralympic Stadium|}}} }} | ||
| | |label23 = Ceremony venue | ||
| | |data23 = {{#if:{{{ceremony venue|}}} | {{{ceremony venue|}}} | {{{Ceremony venue|}}} }} | ||
| | |label24 = Race length | ||
| | |data24 = {{{length|}}} | ||
|label25 = Individual Prize Money (US$) | |||
|data25 = {{{indprize|}}} | |||
| | |label26 = Team Prize Money (US$) | ||
|data26 = {{{tmprize|}}} | |||
| | |header34= {{#if:{{{SpreviousS|}}}{{{SnextS|}}}|Summer:}} | ||
|data35 = {{#if:{{{SpreviousS|}}}{{{SnextS|}}}| | |||
<table style="width:100%; background:transparent;"><tr> | |||
<th style="width:50%; text-align: left;">{{#if:{{{SpreviousS|}}}|< {{{SpreviousS}}}}}</th> | |||
<th style="width:50%; text-align: right;">{{#if:{{{SnextS|}}}|{{{SnextS}}} >}}</th> | |||
</tr></table> | |||
}} | |||
| | |header36= {{#if:{{{Sprevious|}}}{{{Snext|}}}|Winter:}} | ||
<th style="width:50%">{{#if:{{{Sprevious | |data37 = {{#if:{{{Sprevious|}}}{{{Snext|}}}| | ||
<th style="width:50%">{{#if:{{{Snext | <table style="width:100%; background:transparent;"><tr> | ||
</table> | <th style="width:50%; text-align: left;">{{#if:{{{Sprevious|}}}|< {{{Sprevious}}}}}</th> | ||
<th style="width:50%; text-align: right;">{{#if:{{{Snext|}}}|{{{Snext}}} >}}</th> | |||
</tr></table> | |||
}} | |||
| | |header38= {{#if:{{{Wprevious|}}}{{{Wnext|}}}|Winter:}} | ||
| | |data39 = {{#if:{{{Wprevious|}}}{{{Wnext|}}}| | ||
<table style="width:100%; background:transparent;"><tr> | |||
<th style="width:50%; text-align: left;">{{#if:{{{Wprevious|}}}|< {{{Wprevious}}}}}</th> | |||
<th style="width:50%; text-align: right;">{{#if:{{{Wnext|}}}|{{{Wnext}}} >}}</th> | |||
</tr></table> | |||
}} | |||
| | |header40= {{#if:{{{WpreviousS|}}}{{{WnextS|}}}|Summer:}} | ||
<th style="width:50%">{{#if:{{{ | |data41 = {{#if:{{{WpreviousS|}}}{{{WnextS|}}}| | ||
<th style="width:50%">{{#if:{{{ | <table style="width:100%; background:transparent;"><tr> | ||
</table> | <th style="width:50%; text-align: left;">{{#if:{{{WpreviousS|}}}|< {{{WpreviousS}}}}}</th> | ||
<th style="width:50%; text-align: right;">{{#if:{{{WnextS|}}}|{{{WnextS}}} >}}</th> | |||
</tr></table> | |||
}} | |||
| | |header42= {{#if:{{{previous|}}}{{{next|}}}|<!-- Chronology -->}} | ||
| | |data43 = {{#if:{{{previous|}}}{{{next|}}}| | ||
<table style="width:100%; background:transparent;"><tr> | |||
<th style="width:50%; text-align: left;">{{#if:{{{previous|}}}|< {{{previous}}}}}</th> | |||
<th style="width:50%; text-align: right;">{{#if:{{{next|}}}|{{{next}}} >}}</th> | |||
</tr></table> | |||
}} | |||
| | | label30=Website | ||
| data30= {{#if:{{{website|}}} | {{{website}}} | {{{Website|}}} }} | |||
| | | data31 = {{{module|}}} | ||
}}<noinclude>{{documentation}}</noinclude> | }}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 02:09, 19 July 2014
Usage
{{{name}}} | |||
---|---|---|---|
[[File:{{{logo}}}|{{{size}}}]] {{{caption}}} | |||
Host city | {{{host city}}} | ||
Country | {{{country}}} | ||
Motto | {{{motto}}} | ||
Nations participating | {{{nations participating}}} | ||
Teams participating | {{{teams participating}}} | ||
Debuting countries | {{{debuting countries}}} | ||
Athletes participating | {{{athletes participating}}} | ||
Events | {{{events}}} | ||
Opening ceremony | {{{opening ceremony}}} | ||
Closing ceremony | {{{closing ceremony}}} | ||
Officially opened by | {{{officially opened by}}} | ||
Athlete's Oath | {{{athlete's oath}}} | ||
Judge's Oath | {{{judge's oath}}} | ||
Torch Lighter | {{{torch lighter}}} | ||
Paralympic Torch | {{{Paralympic torch}}} | ||
Queen's Baton Final Runner | {{{Queen's Baton}}} | ||
Main venue | {{{stadium}}} | ||
Paralympic Stadium | {{{Paralympic stadium}}} | ||
Race length | {{{length}}} | ||
Individual Prize Money (US$) | {{{indprize}}} | ||
Team Prize Money (US$) | {{{tmprize}}} | ||
Website | {{{website}}} | ||
Summer: | |||
| |||
Winter: | |||
| |||
|
{{Infobox games | name = | logo = | size = | caption = | host city = | country = | motto = | nations participating = | teams participating = | debuting countries = | athletes participating = | events = | opening ceremony = <!-- {{Start date|YYYY|MM|DD}} --> | closing ceremony = <!-- {{End date|YYYY|MM|DD}} --> | officially opened by = | athlete's oath = | judge's oath = | torch lighter = | Paralympic torch = | Queen's Baton = <!-- for Commonwealth Games only --> | stadium = | Paralympic stadium = | length = | indprize = | tmprize = | website = <!-- {{URL|example.com}} --> | previous = | next = | SpreviousS = | SnextS = | Sprevious = | Snext = }}
Parameters
- name = Name of the games
- logo = Internal URL to image file
- size = Custom size for the provided logo
- caption = For a brief description of the provided logo
- host city = Name of host city
- country = Name of host country
- motto = Motto/Slogan of the games
- nations participating = Total number of participating nations
- teams participating = Total number of participating teams
- debuting countries = Countries debuting at the games
- athletes participating = Total number of participating athletes
- events = Number of events
- opening ceremony = Date of opening ceremony. Use {{Start date}}.
- closing ceremony = Date of closing ceremony. Use {{End date}}.
- officially opened by = Name of person who officially opened the Games
- athlete's oath = Name of athlete who swore the athletes' oath
- judge's oath = Name of judge/official who swore the oath
- torch lighter = Name of last torch bearer
- Paralympic torch = Name of last paralympic torch bearer, if different
- stadium = Name of the main stadium
- Paralympic stadium = Name of the paralympic stadium, if different
- length = Race length
- indprize = Individual Prize Money (US$)
- tmprize = Team Prize Money (US$)
- Sprevious = Summer articles only: The previous Paralympic Winter Games
- Snext = Summer articles only: The next Paralympic Winter Games
- SpreviousS = Summer articles only: The previous Paralympic Summer Games
- SnextS = Summer articles only: The next Paralympic Summer Games
- Wprevious = Winter articles only: The previous Paralympic Winter Games
- Wnext = Winter articles only: The next Paralympic Winter Games
- WpreviousS = Winter articles only: The previous Paralympic Summer Games
- WnextS = Winter articles only: The next Paralympic Summer Games
- previous = For events with no Summer/Winter: The previous Games
- next = For events with no Summer/Winter: The next Games
- website = Website; use {{URL}}
Microformat
The HTML mark-up produced by this template includes an hCalendar microformat that makes event details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.- Classes used
The HTML classes of this microformat include:
- attendee
- contact
- description
- dtend
- dtstart
- location
- organiser
- summary
- url
- vevent
Please do not rename or remove these classes
nor collapse nested elements which use them.
nor collapse nested elements which use them.