Difference between revisions of "Template:Infobox games"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
(Undid revision 665339528 by 176.32.19.205 (talk)) |
|||
| Line 5: | Line 5: | ||
| aboveclass = summary | | aboveclass = summary | ||
| − | | | + | | 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 = {{ifempty | {{{host city|}}} | {{{Host city|}}} | {{{Host City|}}} | {{{host|}}} }} | | data1 = {{ifempty | {{{host city|}}} | {{{Host city|}}} | {{{Host City|}}} | {{{host|}}} }} | ||
| − | | class1 = | + | | class1 = location |
| − | | label2 = | + | | label2 = Country |
| data2 = {{#if:{{{country|}}} | {{{country}}} | {{{Country|}}} }} | | data2 = {{#if:{{{country|}}} | {{{country}}} | {{{Country|}}} }} | ||
| Line 18: | Line 18: | ||
| data3 = {{#if:{{{motto|}}} | {{{motto}}} | {{{Motto|}}} }} | | data3 = {{#if:{{{motto|}}} | {{{motto}}} | {{{Motto|}}} }} | ||
| − | | label4 = {{#if:{{{ | + | | label4 = {{#if:{{{Provinces and Territories participating|}}}|Provinces and Territories|Nations}} participating |
| − | | data4 = {{#if:{{{ | + | | data4 = {{#if:{{{Provinces and Territories participating|}}} |
| − | | {{{ | + | | {{{Provinces and Territories participating}}} |
| − | | {{ifempty | {{{ | + | | {{ifempty | {{{nations participating|}}} | {{{Nations participating|}}} | {{{Nations|}}} }} |
}} | }} | ||
| − | | label5 = | + | | label5 = Teams participating |
| − | | data5 = {{ifempty | {{{ | + | | data5 = {{ifempty | {{{teams participating|}}} | {{{Teams participating|}}} }} |
| − | | label6 = | + | | label6 = Debuting countries |
| − | | data6 = {{#if:{{{ | + | | data6 = {{#if:{{{debuting countries|}}} | {{{debuting countries}}} | {{{Debuting countries|}}} }} |
| − | | label7 = | + | | label7 = Athletes participating<noinclude><!-- 'Athletes' = deprecated legacy parameter --></noinclude> |
| − | | data7 = {{ifempty | {{{ | + | | data7 = {{ifempty | {{{athletes participating|}}} | {{{Athletes participating|}}} | {{{Athletes|}}} }} |
| − | | label8 = | + | | label8 = Events |
| − | | data8= {{#if: {{{ | + | | 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> | <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}}}}} | + | | 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: {{{ | + | | data9= {{#if: {{{opening ceremony|}}} | {{{opening ceremony}}} | {{{Opening ceremony|}}} }} |
<noinclude><!-- Programming note: as above` --></noinclude> | <noinclude><!-- Programming note: as above` --></noinclude> | ||
| − | | label10= {{#ifexist:{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} Games closing ceremony|[[{{#if:{{{1|}}}|{{{1}}}}} {{#if:{{{2|}}}|{{{2}}}}} | + | | 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|}}} }} | | data10= {{#if: {{{Closing ceremony|}}} | {{{Closing ceremony}}} | {{{closing ceremony|}}} }} | ||
| − | | label11= | + | | label11= Dates |
| − | | data11= {{#if:{{{ | + | | data11= {{#if:{{{dates|}}}|{{{dates}}}|{{{Dates|}}}}} <noinclude><!-- Deprecated legacy parameters --></noinclude> |
| − | | label12= | + | | label12= Officially opened by |
| − | | data12= {{#if: {{{ | + | | data12= {{#if: {{{officially opened by|}}} | {{{officially opened by}}} | {{{Officially opened by|}}} }} |
| − | | label13= | + | | label13= Officially closed by |
| − | | data13= {{#if: {{{ | + | | data13= {{#if: {{{officially closed by|}}} | {{{officially closed by}}} | {{{Officially closed by|}}} }} |
| label14= Athlete's Oath | | label14= Athlete's Oath | ||
Revision as of 15:51, 3 June 2015
| 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". |
| Athlete's Oath | Script error: No such module "If empty". |
| Torch Lighter | Script error: No such module "If empty". |
| Main venue | Script error: No such module "If empty". |
[[Category:Infobox templates|Template:Remove first word]]
| 30px | This template uses Lua: |
Usage
| {{{name}}} | |||
|---|---|---|---|
| [[File:{{{logo}}}|{{{size}}}]] {{{caption}}} | |||
| Host city | Script error: No such module "If empty". | ||
| Country | {{{country}}} | ||
| Motto | {{{motto}}} | ||
| 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". | ||
| Events | {{{events}}} | ||
| Opening ceremony | {{{opening ceremony}}} | ||
| Closing ceremony | {{{closing ceremony}}} | ||
| Dates | {{{dates}}} | ||
| Officially opened by | {{{officially opened by}}} | ||
| Athlete's Oath | Script error: No such module "If empty". | ||
| Judge's Oath | {{{judge's oath}}} | ||
| Torch Lighter | Script error: No such module "If empty". | ||
| Paralympic Torch | {{{Paralympic torch}}} | ||
| Queen's Baton Final Runner | {{{Queen's Baton}}} | ||
| Main venue | Script error: No such module "If empty". | ||
| 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 =
| 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. |