Difference between revisions of "Template:Infobox games"

From blackwiki
Jump to navigation Jump to search
imported>Games of the world
(revert date change as causing bad formatting issues)
imported>Colonies Chris
(avoid template redirect)
Line 21: Line 21:
 
| data4 = {{#if:{{{Provinces and Territories participating|}}}
 
| data4 = {{#if:{{{Provinces and Territories participating|}}}
 
  | {{{Provinces and Territories participating}}}
 
  | {{{Provinces and Territories participating}}}
  | {{ifempty | {{{nations participating|}}} | {{{Nations participating|}}} | {{{Nations|}}} }}
+
  | {{if empty | {{{nations participating|}}} | {{{Nations participating|}}} | {{{Nations|}}} }}
 
  }}
 
  }}
  
 
| label5 = Teams participating
 
| label5 = Teams participating
| data5 = {{ifempty | {{{teams participating|}}} | {{{Teams participating|}}} }}
+
| data5 = {{if empty | {{{teams participating|}}} | {{{Teams participating|}}} }}
  
 
| label6 = Debuting countries
 
| label6 = Debuting countries
Line 31: Line 31:
  
 
| label7 = Athletes participating<noinclude><!-- 'Athletes' = deprecated legacy parameter --></noinclude>
 
| label7 = Athletes participating<noinclude><!-- 'Athletes' = deprecated legacy parameter --></noinclude>
| data7 = {{ifempty | {{{athletes participating|}}} | {{{Athletes participating|}}} | {{{Athletes|}}} }}
+
| data7 = {{if empty | {{{athletes participating|}}} | {{{Athletes participating|}}} | {{{Athletes|}}} }}
  
 
| label8 = Sports
 
| label8 = Sports
| data8 = {{ifempty | {{{sports|}}} | {{{Sports|}}} }}
+
| data8 = {{if empty | {{{sports|}}} | {{{Sports|}}} }}
  
 
| label9 = Events
 
| label9 = Events
| data9= {{ifempty | {{{events|}}} | {{{Events|}}} }}
+
| data9= {{if empty | {{{events|}}} | {{{Events|}}} }}
  
 
| label10= Opening city
 
| label10= Opening city
 
| class10 = location
 
| class10 = location
| data10 = {{ifempty | {{{opening city|}}} | {{{Opening city|}}} }}
+
| data10 = {{if empty | {{{opening city|}}} | {{{Opening city|}}} }}
  
 
| label11= {{#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>
 
| label11= {{#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>
Line 53: Line 53:
  
 
| label14= Officially opened by
 
| label14= Officially opened by
| data14= {{ifempty | {{{officially opened by|}}} | {{{Officially opened by|}}} }}
+
| data14= {{if empty | {{{officially opened by|}}} | {{{Officially opened by|}}} }}
  
 
| label15= Officially closed by
 
| label15= Officially closed by
| data15= {{ifempty | {{{officially closed by|}}} | {{{Officially closed by|}}} }}
+
| data15= {{if empty | {{{officially closed by|}}} | {{{Officially closed by|}}} }}
  
 
| label16= Athlete's Oath
 
| label16= Athlete's Oath
| data16= {{ifempty| {{{athlete's oath|}}} | {{{Athlete's Oath|}}} | {{{athletes' oath|}}} }}
+
| data16= {{if empty| {{{athlete's oath|}}} | {{{Athlete's Oath|}}} | {{{athletes' oath|}}} }}
  
 
| label17=Judge's Oath
 
| label17=Judge's Oath
| data17= {{ifempty| {{{judge's oath|}}} | {{{Judge's oath|}}}| {{{Judge's Oath|}}} }}
+
| data17= {{if empty| {{{judge's oath|}}} | {{{Judge's oath|}}}| {{{Judge's Oath|}}} }}
  
 
| label18=Coach's Oath
 
| label18=Coach's Oath
Line 68: Line 68:
  
 
| label19={{#if:{{{torch label|}}}|{{{torch label}}}|Torch lighter}}
 
| label19={{#if:{{{torch label|}}}|{{{torch label}}}|Torch lighter}}
| data19= {{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>
+
| data19= {{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>
  
 
| label20=Paralympic torch
 
| label20=Paralympic torch
| data20= {{ifempty | {{{Paralympic torch|}}} | {{{Paralympic Torch|}}} }}
+
| data20= {{if empty | {{{Paralympic torch|}}} | {{{Paralympic Torch|}}} }}
  
 
| label21=[[Queen's Baton Relay|Queen's Baton Final Runner]]
 
| label21=[[Queen's Baton Relay|Queen's Baton Final Runner]]
Line 77: Line 77:
  
 
| label22 = Anthem
 
| label22 = Anthem
| data22 = {{ifempty| {{{anthem|}}} | {{{Anthem|}}} }}
+
| data22 = {{if empty| {{{anthem|}}} | {{{Anthem|}}} }}
  
 
| label23= Main venue
 
| label23= Main venue
Line 83: Line 83:
  
 
| label24= Venues
 
| label24= Venues
| data24= {{ifempty | {{{venues|}}} | {{{Venues|}}} }}<noinclude><!-- = deprecated legacy parameter --></noinclude>
+
| data24= {{if empty | {{{venues|}}} | {{{Venues|}}} }}<noinclude><!-- = deprecated legacy parameter --></noinclude>
  
 
|label25 = Paralympic stadium
 
|label25 = Paralympic stadium
|data25 = {{ifempty | {{{Paralympic stadium|}}} | {{{Paralympic Stadium|}}} }}
+
|data25 = {{if empty | {{{Paralympic stadium|}}} | {{{Paralympic Stadium|}}} }}
  
 
|label26 = Ceremony venue
 
|label26 = Ceremony venue
|data26  = {{ifempty | {{{ceremony venue|}}} | {{{Ceremony venue|}}} }}
+
|data26  = {{if empty | {{{ceremony venue|}}} | {{{Ceremony venue|}}} }}
  
 
|label27  = Race length
 
|label27  = Race length

Revision as of 09:27, 14 April 2019

Host cityScript error: No such module "Wikidata".
CountryScript error: No such module "Wikidata".
Nations participatingScript error: No such module "If empty".
Teams participatingScript error: No such module "If empty".
Athletes participatingScript error: No such module "If empty".
SportsScript 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 "Wikidata".
VenuesScript error: No such module "If empty".
Paralympic stadiumScript error: No such module "If empty".
Ceremony venueScript error: No such module "If empty".

[[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 "Wikidata".
CountryScript error: No such module "Wikidata".
Motto{{{motto}}}
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".
SportsScript 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 "Wikidata".
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
<  {{{SpreviousS}}} {{{SnextS}}}  >
Winter
<  {{{Sprevious}}} {{{Snext}}}  >
<  {{{previous}}} {{{next}}}  >
[[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