Difference between revisions of "Template:Infobox games"

From blackwiki
Jump to navigation Jump to search
imported>Colonies Chris
(minor fixes)
imported>Nekohan
(Fixed broken layout of succession links on mobile view, applied border-style on below & added a parameter "prev".)
Line 5: Line 5:
 
| titleclass = summary
 
| 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 = {{if empty | {{{host city|}}} | {{{Host city|}}} | {{{Host City|}}} | {{{host|}}} }}
+
| data1 = {{if empty | {{{host city|}}} | {{{Host city|}}} | {{{Host City|}}} | {{{host|}}} }}
 
| class1 = location
 
| class1 = location
  
Line 34: Line 34:
  
 
| label8 = Debuting countries
 
| label8 = Debuting countries
| data8 = {{#if:{{{debuting countries|}}} | {{{debuting countries}}} | {{{Debuting countries|}}} }}
+
| data8 = {{#if:{{{debuting countries|}}} | {{{debuting countries}}} | {{{Debuting countries|}}} }}
  
 
| label9 = Athletes participating<noinclude><!-- 'Athletes' = deprecated legacy parameter --></noinclude>
 
| label9 = Athletes participating<noinclude><!-- 'Athletes' = deprecated legacy parameter --></noinclude>
Line 43: Line 43:
  
 
| label11 = Events
 
| label11 = Events
| data11= {{if empty | {{{events|}}} | {{{Events|}}} }}
+
| data11 = {{if empty | {{{events|}}} | {{{Events|}}} }}
  
| label12= Opening city
+
| label12 = Opening city
 
| class12 = location
 
| class12 = location
 
| data12 = {{if empty | {{{opening city|}}} | {{{Opening city|}}} }}
 
| 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>
+
| 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|}}} }}
+
| 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>
+
| 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|}}} }}
+
| data14 = {{#if: {{{Closing ceremony|}}} | {{{Closing ceremony}}} | {{{closing ceremony|}}} }}
  
| label15= Dates
+
| label15 = Dates
| data15= {{#if:{{{dates|}}}|{{{dates}}}|{{{Dates|}}}}} <noinclude><!-- Deprecated legacy parameters --></noinclude>
+
| data15 = {{#if:{{{dates|}}}|{{{dates}}}|{{{Dates|}}}}} <noinclude><!-- Deprecated legacy parameters --></noinclude>
  
| label16= Officially opened by
+
| label16 = Officially opened by
| data16= {{if empty | {{{officially opened by|}}} | {{{Officially opened by|}}} }}
+
| data16 = {{if empty | {{{officially opened by|}}} | {{{Officially opened by|}}} }}
  
| label17= Officially closed by
+
| label17 = Officially closed by
| data17= {{if empty | {{{officially closed by|}}} | {{{Officially closed by|}}} }}
+
| data17 = {{if empty | {{{officially closed by|}}} | {{{Officially closed by|}}} }}
  
| label18= Athlete's Oath
+
| label18 = Athlete's Oath
| data18= {{if empty| {{{athlete's oath|}}} | {{{Athlete's Oath|}}} | {{{athletes' oath|}}} }}
+
| data18 = {{if empty| {{{athlete's oath|}}} | {{{Athlete's Oath|}}} | {{{athletes' oath|}}} }}
  
| label19=Judge's Oath
+
| label19 = Judge's Oath
| data19= {{if empty| {{{judge's oath|}}} | {{{Judge's oath|}}}| {{{Judge's Oath|}}} }}
+
| data19 = {{if empty| {{{judge's oath|}}} | {{{Judge's oath|}}}| {{{Judge's Oath|}}} }}
  
| label20=Coach's Oath
+
| label20 = Coach's Oath
| data20= {{{coaches' oath|}}}
+
| data20 = {{{coaches' oath|}}}
  
| label21={{#if:{{{torch label|}}}|{{{torch label}}}|Torch lighter}}
+
| 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>
+
| 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
+
| label22 = Paralympic torch
 
| data22= {{if empty | {{{Paralympic torch|}}} | {{{Paralympic Torch|}}} }}
 
| data22= {{if empty | {{{Paralympic torch|}}} | {{{Paralympic Torch|}}} }}
  
| label23=[[Queen's Baton Relay|Queen's Baton Final Runner]]
+
| label23 = [[Queen's Baton Relay|Queen's Baton Final Runner]]
| data23= {{{Queen's Baton|}}}
+
| data23 = {{{Queen's Baton|}}}
  
 
| label24 = Anthem
 
| label24 = Anthem
 
| data24 = {{if empty| {{{anthem|}}} | {{{Anthem|}}} }}
 
| data24 = {{if empty| {{{anthem|}}} | {{{Anthem|}}} }}
  
| label25= Main venue
+
| label25 = Main venue
| data25= {{if empty | {{{stadium|}}} | {{{Stadium|}}} | {{{Main_venue|}}} }}<noinclude><!-- 'Main_venue' = deprecated legacy parameter --></noinclude>
+
| data25 = {{if empty | {{{stadium|}}} | {{{Stadium|}}} | {{{Main_venue|}}} }}<noinclude><!-- 'Main_venue' = deprecated legacy parameter --></noinclude>
  
| label26= Venues
+
| label26 = Venues
| data26= {{if empty | {{{venues|}}} | {{{Venues|}}} }}<noinclude><!-- = deprecated legacy parameter --></noinclude>
+
| data26 = {{if empty | {{{venues|}}} | {{{Venues|}}} }}<noinclude><!-- = deprecated legacy parameter --></noinclude>
  
 
|label27 = Paralympic stadium
 
|label27 = Paralympic stadium
Line 95: Line 95:
  
 
|label28 = Ceremony venue
 
|label28 = Ceremony venue
|data28 = {{if empty | {{{ceremony venue|}}} | {{{Ceremony venue|}}} }}
+
|data28 = {{if empty | {{{ceremony venue|}}} | {{{Ceremony venue|}}} }}
  
|label29 = Race length
+
|label29 = Race length
|data29   = {{{length|}}}
+
|data29 = {{{length|}}}
  
|label30 = Individual prize money (US$)
+
|label30 = Individual prize money (US$)
|data30 = {{{indprize|}}}
+
|data30 = {{{indprize|}}}
  
|label31 = Team prize money (US$)
+
|label31 = Team prize money (US$)
|data31 = {{{tmprize|}}}
+
|data31 = {{{tmprize|}}}
  
|label32=Website
+
|label32 = Website
 
|data32= {{#if:{{{website|}}} | {{{website}}} | {{{Website|}}} }}
 
|data32= {{#if:{{{website|}}} | {{{website}}} | {{{Website|}}} }}
  
 
|data33 = {{{module|}}}
 
|data33 = {{{module|}}}
  
|header34= {{#if:{{{SpreviousS|}}}{{{SnextS|}}}|Summer}}
+
| header34 = {{#if:{{{SpreviousS|}}}{{{SnextS|}}}|Summer}}
|data35  = {{#if:{{{SpreviousS|}}}{{{SnextS|}}}|
+
| data35 = {{succession links
<table style="width:100%; background:transparent;"><tr>
+
  | left = {{#if: {{{SpreviousS|}}}| {{auto link|{{{SpreviousS|}}}}} }}
<th style="width:50%; text-align: left;">{{#if:{{{SpreviousS|}}}|&lt;&nbsp; {{{SpreviousS}}}}}</th>
+
| right = {{#if: {{{SnextS|}}}| {{auto link|{{{SnextS|}}}}} }}
<th style="width:50%; text-align: right;">{{#if:{{{SnextS|}}}|{{{SnextS}}} &nbsp;&gt;}}</th>
+
}}
</tr></table>
 
}}
 
  
|header36= {{#if:{{{Sprevious|}}}{{{Snext|}}}|Winter}}
+
| header36 = {{#if:{{{Sprevious|}}}{{{Snext|}}}|Winter}}
|data37  = {{#if:{{{Sprevious|}}}{{{Snext|}}}|
+
| data37 = {{succession links
<table style="width:100%; background:transparent;"><tr>
+
  | left = {{#if: {{{Sprevious|}}}| {{auto link|{{{Sprevious|}}}}} }}
<th style="width:50%; text-align: left;">{{#if:{{{Sprevious|}}}|&lt;&nbsp; {{{Sprevious}}}}}</th>
+
| right = {{#if: {{{Snext|}}}| {{auto link|{{{Snext|}}}}} }}
<th style="width:50%; text-align: right;">{{#if:{{{Snext|}}}|{{{Snext}}} &nbsp;&gt;}}</th>
+
}}
</tr></table>
 
}}
 
  
|header38= {{#if:{{{Wprevious|}}}{{{Wnext|}}}|Winter}}
+
| header38 = {{#if:{{{Wprevious|}}}{{{Wnext|}}}|Winter}}
|data39  = {{#if:{{{Wprevious|}}}{{{Wnext|}}}|
+
| data39 = {{succession links
<table style="width:100%; background:transparent;"><tr>
+
  | left = {{#if: {{{Wprevious|}}}| {{auto link|{{{Wprevious|}}}}} }}
<th style="width:50%; text-align: left;">{{#if:{{{Wprevious|}}}|&lt;&nbsp; {{{Wprevious}}}}}</th>
+
| right = {{#if: {{{Wnext|}}}| {{auto link|{{{Wnext|}}}}} }}
<th style="width:50%; text-align: right;">{{#if:{{{Wnext|}}}|{{{Wnext}}} &nbsp;&gt;}}</th>
+
}}
</tr></table>
 
}}
 
  
|header40= {{#if:{{{WpreviousS|}}}{{{WnextS|}}}|Summer}}
+
| header40 = {{#if:{{{WpreviousS|}}}{{{WnextS|}}}|Summer}}
|data41  = {{#if:{{{WpreviousS|}}}{{{WnextS|}}}|
+
| data41 = {{succession links
<table style="width:100%; background:transparent;"><tr>
+
  | left = {{#if: {{{WpreviousS|}}}| {{auto link|{{{WpreviousS|}}}}} }}
<th style="width:50%; text-align: left;">{{#if:{{{WpreviousS|}}}|&lt;&nbsp; {{{WpreviousS}}}}}</th>
+
| right = {{#if: {{{WnextS|}}}| {{auto link|{{{WnextS|}}}}} }}
<th style="width:50%; text-align: right;">{{#if:{{{WnextS|}}}|{{{WnextS}}} &nbsp;&gt;}}</th>
+
}}
</tr></table>
 
}}
 
  
|header42= {{#if:{{{previous|}}}{{{next|}}}|<!-- Chronology -->}}
+
| belowstyle = border-top: solid 1px #aaa;
|data43  = {{#if:{{{previous|}}}{{{next|}}}|
+
| below = {{succession links
<table style="width:100%; background:transparent;"><tr>
+
| left = {{#if: {{{previous|{{{prev|}}}}}}| {{auto link|{{{previous|{{{prev|}}}}}}}} }}
<th style="width:50%; text-align: left;">{{#if:{{{previous|}}}|&lt;&nbsp; {{{previous}}}}}</th>
+
| right = {{#if: {{{next|}}}| {{auto link|{{{next|}}}}} }}
<th style="width:50%; text-align: right;">{{#if:{{{next|}}}|{{{next}}} &nbsp;&gt;}}</th>
+
}}
</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 |organiser | 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 |organiser | edition | prev }}<noinclude>{{documentation}}</noinclude>

Revision as of 02:52, 15 May 2020

HostScript error: No such module "If empty".
Nations participatingScript error: No such module "If empty".
Teams participatingScript error: No such module "If empty".
Athletes participatingScript error: No such module "If empty".
Sport(s)Script error: No such module "If empty".
EventsScript error: No such module "If empty".
Opening cityScript error: No such module "If empty".
Officially opened byScript error: No such module "If empty".
Officially closed byScript error: No such module "If empty".
Athlete's OathScript error: No such module "If empty".
Judge's OathScript error: No such module "If empty".
Torch lighterScript error: No such module "If empty".
Paralympic torchScript error: No such module "If empty".
AnthemScript error: No such module "If empty".
Main venueScript error: No such module "If empty".
VenuesScript error: No such module "If empty".
Paralympic stadiumScript error: No such module "If empty".
Ceremony venueScript 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]]

Template documentation[view] [edit] [history] [purge]

Usage

{{{name}}}
[[File:{{{logo}}}|{{{size}}}]]
{{{caption}}}
Host cityScript error: No such module "If empty".
Country{{{country}}}
Motto{{{motto}}}
Organizer(s){{{organizer}}}  or  {{{organiser}}}
Edition{{{edition}}}
Nations participatingScript error: No such module "If empty".
Teams participatingScript error: No such module "If empty".
Debuting countries{{{debuting countries}}}
Athletes participatingScript error: No such module "If empty".
Sport(s)Script error: No such module "If empty".
EventsScript error: No such module "If empty".
Opening cityScript error: No such module "If empty".
Opening ceremony{{{opening ceremony}}}
Closing ceremony{{{closing ceremony}}}
Dates{{{dates}}}
Officially opened byScript error: No such module "If empty".
Officially closed byScript error: No such module "If empty".
Athlete's OathScript error: No such module "If empty".
Judge's OathScript error: No such module "If empty".
Torch lighterScript error: No such module "If empty".
Paralympic torchScript error: No such module "If empty".
Queen's Baton Final Runner{{{Queen's Baton}}}
AnthemScript error: No such module "If empty".
Main venueScript error: No such module "If empty".
VenuesScript error: No such module "If empty".
Paralympic stadiumScript error: No such module "If empty".
Ceremony venueScript 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
[[Category:Infobox templates|Template:Remove first word]]
{{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

Template:UF-hcal

Tracking category

See also