Difference between revisions of "Template:Infobox games"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Sillyfolkboy (add new parameters to unknown exclusion) |
imported>Sillyfolkboy (reprioritise labels) |
||
| Line 18: | Line 18: | ||
| data3 = {{#if:{{{motto|}}} | {{{motto}}} | {{{Motto|}}} }} | | data3 = {{#if:{{{motto|}}} | {{{motto}}} | {{{Motto|}}} }} | ||
| − | | | + | | label4 = Organizer |
| − | | | + | | data4 = {{#if:{{{organizer|}}} | {{{organizer}}} | {{{Organizer|}}} }} |
| − | | | + | | label5 = Edition |
| − | | | + | | data5 = {{#if:{{{edition|}}} | {{{edition}}} | {{{Edition|}}} }} |
| − | | | + | | label6 = {{#if:{{{Provinces and Territories participating|}}}|Provinces and Territories|Nations}} participating |
| − | | | + | | data6 = {{#if:{{{Provinces and Territories participating|}}} |
| {{{Provinces and Territories participating}}} | | {{{Provinces and Territories participating}}} | ||
| {{if empty | {{{nations participating|}}} | {{{Nations participating|}}} | {{{Nations|}}} }} | | {{if empty | {{{nations participating|}}} | {{{Nations participating|}}} | {{{Nations|}}} }} | ||
}} | }} | ||
| − | | | + | | label7 = Teams participating |
| − | | | + | | data7 = {{if empty | {{{teams participating|}}} | {{{Teams participating|}}} }} |
| − | | | + | | label8 = Debuting countries |
| − | | | + | | data8 = {{#if:{{{debuting countries|}}} | {{{debuting countries}}} | {{{Debuting countries|}}} }} |
| − | | | + | | label9 = Athletes participating<noinclude><!-- 'Athletes' = deprecated legacy parameter --></noinclude> |
| − | | | + | | data9 = {{if empty | {{{athletes participating|}}} | {{{Athletes participating|}}} | {{{Athletes|}}} }} |
| − | | | + | | label10 = Sport(s) |
| − | | | + | | data10 = {{if empty | {{{sports|}}} | {{{Sports|}}} }} |
| − | | | + | | label11 = Events |
| − | | | + | | data11= {{if empty | {{{events|}}} | {{{Events|}}} }} |
| − | | | + | | label12= Opening city |
| − | | | + | | class12 = location |
| − | | | + | | data12 = {{if empty | {{{opening city|}}} | {{{Opening city|}}} }} |
| − | | | + | | label13= {{#ifexist:{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games opening ceremony|[[{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games opening ceremony|Opening ceremony]]|Opening ceremony}}<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> |
| − | | | + | | data13= {{#if: {{{opening ceremony|}}} | {{{opening ceremony}}} | {{{Opening ceremony|}}} }} |
| − | | | + | | label14= {{#ifexist:{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games closing ceremony|[[{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games closing ceremony|Closing ceremony]]|Closing ceremony}}<noinclude><!-- Programming note: as above` --></noinclude> |
| − | | | + | | data14= {{#if: {{{Closing ceremony|}}} | {{{Closing ceremony}}} | {{{closing ceremony|}}} }} |
| − | | | + | | label15= Dates |
| − | | | + | | data15= {{#if:{{{dates|}}}|{{{dates}}}|{{{Dates|}}}}} <noinclude><!-- Deprecated legacy parameters --></noinclude> |
| − | | | + | | label16= Officially opened by |
| − | | | + | | data16= {{if empty | {{{officially opened by|}}} | {{{Officially opened by|}}} }} |
| − | | | + | | label17= Officially closed by |
| − | | | + | | data17= {{if empty | {{{officially closed by|}}} | {{{Officially closed by|}}} }} |
| − | | | + | | label18= Athlete's Oath |
| − | | | + | | data18= {{if empty| {{{athlete's oath|}}} | {{{Athlete's Oath|}}} | {{{athletes' oath|}}} }} |
| − | | | + | | label19=Judge's Oath |
| − | | | + | | data19= {{if empty| {{{judge's oath|}}} | {{{Judge's oath|}}}| {{{Judge's Oath|}}} }} |
| − | | | + | | label20=Coach's Oath |
| − | | | + | | data20= {{{coaches' oath|}}} |
| − | | | + | | label21={{#if:{{{torch label|}}}|{{{torch label}}}|Torch lighter}} |
| − | | | + | | data21= {{if empty | {{{torch|}}} | {{{torch lighter|}}} | {{{Torch Lighter|}}} | {{{All-Africa Torch|}}} | {{{Pan Am Torch|}}} | {{{Olympic Flame|}}} }}<noinclude><!-- 'All-Africa Torch', 'Pan Am Torch' = deprecated legacy parameters --></noinclude> |
| − | | | + | | label22=Paralympic torch |
| − | | | + | | data22= {{if empty | {{{Paralympic torch|}}} | {{{Paralympic Torch|}}} }} |
| − | | | + | | label23=[[Queen's Baton Relay|Queen's Baton Final Runner]] |
| − | | | + | | data23= {{{Queen's Baton|}}} |
| − | | | + | | label24 = Anthem |
| − | | | + | | data24 = {{if empty| {{{anthem|}}} | {{{Anthem|}}} }} |
| − | | | + | | label25= Main venue |
| − | | | + | | data25= {{ifempty | {{{stadium|}}} | {{{Stadium|}}} | {{{Main_venue|}}} }}<noinclude><!-- 'Main_venue' = deprecated legacy parameter --></noinclude> |
| − | | | + | | label26= Venues |
| − | | | + | | data26= {{if empty | {{{venues|}}} | {{{Venues|}}} }}<noinclude><!-- = deprecated legacy parameter --></noinclude> |
| − | | | + | |label27 = Paralympic stadium |
| − | | | + | |data27 = {{if empty | {{{Paralympic stadium|}}} | {{{Paralympic Stadium|}}} }} |
| − | | | + | |label28 = Ceremony venue |
| − | | | + | |data28 = {{if empty | {{{ceremony venue|}}} | {{{Ceremony venue|}}} }} |
| − | | | + | |label29 = Race length |
| − | | | + | |data29 = {{{length|}}} |
| − | | | + | |label30 = Individual prize money (US$) |
| − | | | + | |data30 = {{{indprize|}}} |
| − | | | + | |label31 = Team prize money (US$) |
| − | | | + | |data31 = {{{tmprize|}}} |
| + | |||
| + | |label32=Website | ||
| + | |data32= {{#if:{{{website|}}} | {{{website}}} | {{{Website|}}} }} | ||
| + | |||
| + | |data33 = {{{module|}}} | ||
|header34= {{#if:{{{SpreviousS|}}}{{{SnextS|}}}|Summer}} | |header34= {{#if:{{{SpreviousS|}}}{{{SnextS|}}}|Summer}} | ||
| Line 145: | Line 150: | ||
</tr></table> | </tr></table> | ||
}} | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox games with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox games]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | All-Africa Torch | anthem | Anthem | athlete's oath | Athlete's Oath | Athletes | athletes participating | Athletes participating | athletes' oath | caption | ceremony venue | Ceremony venue | Closing ceremony | closing ceremony | coaches' oath | country | Country | dates | Dates | debuting countries | Debuting countries | Events | events | host | host city | Host city | Host City | indprize | judge's oath | Judge's oath | Judge's Oath | length | logo | Logo | logo_alt | Main_venue | module | motto | Motto | name | Name | Nations | nations participating | Nations participating | next | officially closed by | Officially closed by | officially opened by | Officially opened by | Olympic Flame | opening ceremony | Opening ceremony | opening city | Opening city | Optional caption | Pan Am Torch | Paralympic stadium | Paralympic Stadium | Paralympic torch | Paralympic Torch | previous | Provinces and Territories participating | Queen's Baton | Size | size | Snext | SnextS | sports | Sports | Sprevious | SpreviousS | stadium | Stadium | teams participating | Teams participating | tmprize | torch | torch label | torch lighter | Torch Lighter | venues | Venues | website | Website | Wnext | WnextS | Wprevious | WpreviousS |organizer | edition}}<noinclude>{{documentation}}</noinclude> | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox games with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox games]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | All-Africa Torch | anthem | Anthem | athlete's oath | Athlete's Oath | Athletes | athletes participating | Athletes participating | athletes' oath | caption | ceremony venue | Ceremony venue | Closing ceremony | closing ceremony | coaches' oath | country | Country | dates | Dates | debuting countries | Debuting countries | Events | events | host | host city | Host city | Host City | indprize | judge's oath | Judge's oath | Judge's Oath | length | logo | Logo | logo_alt | Main_venue | module | motto | Motto | name | Name | Nations | nations participating | Nations participating | next | officially closed by | Officially closed by | officially opened by | Officially opened by | Olympic Flame | opening ceremony | Opening ceremony | opening city | Opening city | Optional caption | Pan Am Torch | Paralympic stadium | Paralympic Stadium | Paralympic torch | Paralympic Torch | previous | Provinces and Territories participating | Queen's Baton | Size | size | Snext | SnextS | sports | Sports | Sprevious | SpreviousS | stadium | Stadium | teams participating | Teams participating | tmprize | torch | torch label | torch lighter | Torch Lighter | venues | Venues | website | Website | Wnext | WnextS | Wprevious | WpreviousS |organizer | edition}}<noinclude>{{documentation}}</noinclude> | ||
Revision as of 22:26, 26 September 2019
| Host | Script error: No such module "If empty". |
|---|---|
| Nations participating | Script error: No such module "If empty". |
| Teams participating | Script error: No such module "If empty". |
| Athletes participating | Script error: No such module "If empty". |
| Sport(s) | Script error: No such module "If empty". |
| Events | Script error: No such module "If empty". |
| Opening city | Script error: No such module "If empty". |
| Officially opened by | Script error: No such module "If empty". |
| Officially closed by | Script error: No such module "If empty". |
| Athlete's Oath | Script error: No such module "If empty". |
| Judge's Oath | Script error: No such module "If empty". |
| Torch lighter | Script error: No such module "If empty". |
| Paralympic torch | Script error: No such module "If empty". |
| Anthem | Script error: No such module "If empty". |
| Main venue | Script error: No such module "If empty". |
| Venues | Script error: No such module "If empty". |
| Paralympic stadium | Script error: No such module "If empty". |
| Ceremony venue | Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
| This template uses Lua: |
Usage
| [[File:{{{logo}}}|{{{size}}}]] {{{caption}}} | |||
| Host city | Script error: No such module "If empty". | ||
|---|---|---|---|
| Country | {{{country}}} | ||
| Motto | {{{motto}}} | ||
| Organizer | {{{organizer}}} or {{{organiser}}} | ||
| Edition | {{{edition}}} | ||
| Nations participating | Script error: No such module "If empty". | ||
| Teams participating | Script error: No such module "If empty". | ||
| Debuting countries | {{{debuting countries}}} | ||
| Athletes participating | Script error: No such module "If empty". | ||
| Sport(s) | Script error: No such module "If empty". | ||
| Events | Script error: No such module "If empty". | ||
| Opening city | Script error: No such module "If empty". | ||
| Opening ceremony | {{{opening ceremony}}} | ||
| Closing ceremony | {{{closing ceremony}}} | ||
| Dates | {{{dates}}} | ||
| Officially opened by | Script error: No such module "If empty". | ||
| Officially closed by | Script error: No such module "If empty". | ||
| Athlete's Oath | Script error: No such module "If empty". | ||
| Judge's Oath | Script error: No such module "If empty". | ||
| Torch lighter | Script error: No such module "If empty". | ||
| Paralympic torch | Script error: No such module "If empty". | ||
| Queen's Baton Final Runner | {{{Queen's Baton}}} | ||
| Anthem | Script error: No such module "If empty". | ||
| Main venue | Script error: No such module "If empty". | ||
| Venues | Script error: No such module "If empty". | ||
| Paralympic stadium | Script error: No such module "If empty". | ||
| Ceremony venue | Script error: No such module "If empty". | ||
| 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 =
| organizer = <!-- or: | organiser = -->
| edition =
| nations participating =
| teams participating =
| debuting countries =
| athletes participating =
| sports =
| events =
| dates =
| 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
- organizer/organiser = Body responsible for organising the games
- edition = Number within the series (e.g. 16th, XVI)
- 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
Tracking category
See also
| The above documentation is transcluded from Template:Infobox games/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |