Difference between revisions of "Template:Infobox games"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Andy M. Wang (Do not link of params 1 and 2 are empty (Games opening ceremony not worth linking). Tested with {{Infobox games/sandbox | 1 = 2018 | 2 = Asian | ...) |
|||
| (40 intermediate revisions by 14 users not shown) | |||
| Line 2: | Line 2: | ||
| bodyclass = vevent | | bodyclass = vevent | ||
| − | | | + | | title = {{#if: {{{name|}}}| {{{name}}} | {{{Name|}}} }} |
| − | | | + | | titleclass = summary |
| − | | image= {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{logo|}}}|{{{logo}}}|{{{Logo|}}}}}|size={{#if:{{{Size|}}}|{{{Size}}}|{{{size|}}}}}|alt={{{logo_alt|}}}}} | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#if:{{{logo|}}}|{{{logo}}}|{{{Logo|}}}}}|size={{#if:{{{Size|}}}|{{{Size}}}|{{{size|}}}}}|alt={{{logo_alt|}}}}} |
| − | | caption= {{#if:{{{caption|}}}|{{{caption}}}|{{{Optional caption|}}}}} | + | | caption = {{#if:{{{caption|}}}|{{{caption}}}|{{{Optional caption|}}}}} |
| label1 = {{#if:{{{host city|}}}{{{Host city|}}}{{{Host City|}}}|Host city|Host}} | | label1 = {{#if:{{{host city|}}}{{{Host city|}}}{{{Host City|}}}|Host city|Host}} | ||
| − | | data1 = {{ | + | | data1 = {{if empty | {{{host city|}}} | {{{Host city|}}} | {{{Host City|}}} | {{{host|}}} }} |
| class1 = location | | class1 = location | ||
| Line 18: | Line 18: | ||
| data3 = {{#if:{{{motto|}}} | {{{motto}}} | {{{Motto|}}} }} | | data3 = {{#if:{{{motto|}}} | {{{motto}}} | {{{Motto|}}} }} | ||
| − | | label4 = {{#if:{{{Provinces and Territories participating|}}}|Provinces and Territories|Nations}} participating | + | | label4 = {{#if:{{{organizer|}}} | Organizer(s) | {{#if:{{{Organizer|}}} | Organizer(s) | {{#if:{{{organiser|}}} | Organiser(s) | {{#if:{{{Organiser|}}} | Organiser(s) | }} }} }} }} |
| − | | | + | | data4 = {{#if:{{{organizer|}}} | {{{organizer}}} | {{#if:{{{Organizer|}}} | {{{Organizer|}}} | {{#if:{{{organiser|}}} | {{{organiser|}}} | {{#if:{{{Organiser|}}} | {{{Organiser|}}} | }} }} }} }} |
| + | |||
| + | | 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|}}} }} |
}} | }} | ||
| − | | | + | | 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 = {{#if:{{{1|}}}{{{2|}}}|{{#ifexist:{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games opening ceremony|[[{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games opening ceremony|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|}}} }} |
| − | <noinclude><!-- Programming note: as above` --></noinclude> | + | | label14 = {{#if:{{{1|}}}{{{2|}}}|{{#ifexist:{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games closing ceremony|[[{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games closing ceremony|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 = {{if empty | {{{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}} |
| − | | | + | | data35 = {{succession links |
| − | + | | left = {{#if: {{{SpreviousS|}}}| {{auto link|{{{SpreviousS|}}}}} }} | |
| − | + | | right = {{#if: {{{SnextS|}}}| {{auto link|{{{SnextS|}}}}} }} | |
| − | + | }} | |
| − | |||
| − | }} | ||
| − | | | + | | header36 = {{#if:{{{Sprevious|}}}{{{Snext|}}}|Winter}} |
| − | | | + | | data37 = {{succession links |
| − | + | | left = {{#if: {{{Sprevious|}}}| {{auto link|{{{Sprevious|}}}}} }} | |
| − | + | | right = {{#if: {{{Snext|}}}| {{auto link|{{{Snext|}}}}} }} | |
| − | + | }} | |
| − | |||
| − | }} | ||
| − | | | + | | header38 = {{#if:{{{Wprevious|}}}{{{Wnext|}}}|Winter}} |
| − | | | + | | data39 = {{succession links |
| − | + | | left = {{#if: {{{Wprevious|}}}| {{auto link|{{{Wprevious|}}}}} }} | |
| − | + | | right = {{#if: {{{Wnext|}}}| {{auto link|{{{Wnext|}}}}} }} | |
| − | + | }} | |
| − | |||
| − | }} | ||
| − | | | + | | header40 = {{#if:{{{WpreviousS|}}}{{{WnextS|}}}|Summer}} |
| − | | | + | | data41 = {{succession links |
| + | | left = {{#if: {{{WpreviousS|}}}| {{auto link|{{{WpreviousS|}}}}} }} | ||
| + | | right = {{#if: {{{WnextS|}}}| {{auto link|{{{WnextS|}}}}} }} | ||
| + | }} | ||
| − | | | + | | belowstyle = border-top: solid 1px #aaa; |
| + | | below = {{succession links | ||
| + | | left = {{#if: {{{previous|{{{prev|}}}}}}| {{auto link|{{{previous|{{{prev|}}}}}}}} }} | ||
| + | | right = {{#if: {{{next|}}}| {{auto link|{{{next|}}}}} }} | ||
| + | }} | ||
| − | }}<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 |organiser | edition | prev }}<noinclude>{{documentation}}</noinclude> |
Latest revision as of 04:05, 25 January 2021
| 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". |
| Template:Succession links | |
| Template:Succession links | |
| Template:Succession links | |
| Template:Succession links | |
| Template:Succession links | |
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
Usage
| [[File:{{{logo}}}|{{{size}}}]] {{{caption}}} | |
| Host city | Script error: No such module "If empty". |
|---|---|
| Country | {{{country}}} |
| Motto | {{{motto}}} |
| Organizer(s) | {{{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 | |
| Template:Succession links | |
| Winter | |
| Template:Succession links | |
| Template:Succession links | |
| Template:Succession links | |
| Template:Succession links | |
{{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. |