வார்ப்புரு:Infobox Olympic games/doc
{{Documentation subpage}}
 &lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&gt;
 {{Intricate template}}
 {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
 
 '''{{tl|Infobox Olympic games}}''' is an {{tl|Infobox}}-based template designed to summarise the most important details of a specific running of a [[Summer Olympic Games]], [[Winter Olympic Games]], [[Summer Paralympic Games]], [[Winter Paralympic Games]], or [[Youth Olympic Games]]. It is largely designed to inform a casual reader somewhat knowledgeable in sports and the Olympic and Paralympic games in general of the games' locale, time, graphic design, and amount of athletes and events, along with the venue and names of notable people associated with the games. This infobox makes use of a four image parameters, twelve data cells, and six succession cells. The syntax of the infobox also makes use of 27 [[mw:Help:Extension:ParserFunctions##if|&lt;code&gt;&lt;nowiki&gt;{{#if:}}&lt;/nowiki&gt;&lt;/code&gt;]], eighteen [[mw:Help:Extension:ParserFunctions##ifeq|&lt;code&gt;&lt;nowiki&gt;{{#ifeq:}}&lt;/nowiki&gt;&lt;/code&gt;]], four [[mw:Help:Extension:ParserFunctions##ifexpr|&lt;code&gt;&lt;nowiki&gt;{{#ifexpr:}}&lt;/nowiki&gt;&lt;/code&gt;]], three [[mw:Help:Extension:ParserFunctions##expr|&lt;code&gt;&lt;nowiki&gt;{{#expr:}}&lt;/nowiki&gt;&lt;/code&gt;]], and two [[mw:Help:Extension:ParserFunctions##ifexist|&lt;code&gt;&lt;nowiki&gt;{{#ifexist:}}&lt;/nowiki&gt;&lt;/code&gt; parser functions]], along with a [[hCalendar]] microformat.
 
 ==Syntax==
 {{Parameter names example | image | image_size | alt | caption | host_city | motto | nations | athletes | events | opening | closing |opened_by | cauldron | stadium | prev | next }}
 &lt;pre style=&quot;width:60%;&quot;&gt;
 {{Infobox Olympic games| 1 | 2 | 3 |
 | image       = 
 | image_size  = 
 | alt         = 
 | caption     = 
 | host_city   = 
 | motto       = 
 | nations     = 
 | athletes    = 
 | events      = 
 | opening     = 
 | closing     = 
 | opened_by   = 
 | cauldron    = 
 | stadium     = 
 | summer_prev = 
 | summer_next = 
 | winter_prev = 
 | winter_next = 
 | prev        = 
 | next        = 
 }}&lt;/pre&gt;
 
 ==Parameters==
 ===Header and image===
 [[File:PyeongChang 2018 Winter Olympics.svg|thumb|222px|The [[2018 Winter Olympics]] logo is set to a width of 222 pixels, to ensure the Olympic rings at the bottom of the logo appears at 100px width.]]
 {{tl|Infobox Olympic games}} uses three blank parameters at the beginning of the template's syntax, &lt;code&gt;1&lt;/code&gt;, &lt;code&gt;2&lt;/code&gt;, &lt;code&gt;3&lt;/code&gt;. These are used to set the year, season, and games being detailed, in that specific order. For example, in the article for the [[1998 Winter Olympics]], &lt;code&gt;1&lt;/code&gt; should be set to &quot;&lt;code&gt;1998&lt;/code&gt;&quot;, &lt;code&gt;2&lt;/code&gt; should be set to &quot;&lt;code&gt;Winter&lt;/code&gt;&quot;, and &lt;code&gt;3&lt;/code&gt; should be set to &quot;&lt;code&gt;Olympics&lt;/code&gt;&quot;. In the heading, [[mw:Help:Extension:ParserFunctions##ifexpr|&lt;code&gt;&lt;nowiki&gt;{{#ifexpr:}}&lt;/nowiki&gt;&lt;/code&gt;]] and [[mw:Help:Extension:ParserFunctions##expr|&lt;code&gt;&lt;nowiki&gt;{{#expr:}}&lt;/nowiki&gt;&lt;/code&gt;]] are used to convert the inputs of these two parameters into the official name of the games. For example, if &lt;code&gt;1&lt;/code&gt;, &lt;code&gt;2&lt;/code&gt;, and &lt;code&gt;3&lt;/code&gt; are set to values representing the [[2000 Summer Paralympics]], &quot;&lt;code&gt;2000&lt;/code&gt;&quot;, &quot;&lt;code&gt;Summer&lt;/code&gt;&quot;, and &quot;&lt;code&gt;Paralympics&lt;/code&gt;&quot;, it will be converted into &quot;'''XI Paralympic Games'''&quot;. Four parameters are used in the {{tl|Infobox}} syntax in this template. They are &lt;code&gt;image&lt;/code&gt;, which displays an image when a filename is inputted, omitting the &quot;&lt;code&gt;File:&lt;/code&gt;&quot; prefix, &lt;code&gt;image_size&lt;/code&gt;, an optional template that allows editors to set a custom size for the image, &lt;code&gt;alt&lt;/code&gt;, another optional parameter that can be used to implement an explicitly descriptive [[Wikipedia:Extended image syntax#Alt text and caption|alt caption]] that appears when images don't load, and &lt;code&gt;caption&lt;/code&gt;, another optional parameter that allows users to set a custom caption for the image. The latter two parameters are mostly discouraged, and are in use only for special circumstances preferably resolved from a consensus on a particular issue. For the modern Olympic logo format used since the [[1998 Winter Olympics]] and [[2000 Summer Olympics]], a [[mw:Help:Extension:ParserFunctions##switch|&lt;code&gt;&lt;nowiki&gt;{{#switch:}}&lt;/nowiki&gt;&lt;/code&gt;]] template is used to fix image sizes so that the [[Olympic rings]] at the bottom of the modern logo design appear at exactly 100px width (''See image on right for example''). This is enabled using {{tl|Infobox Olympic games/image size}}, which in turn uses [[mw:Help:Extension:ParserFunctions##ifexpr|&lt;code&gt;&lt;nowiki&gt;{{#ifexpr:}}&lt;/nowiki&gt;&lt;/code&gt;]] to check if the &lt;code&gt;1&lt;/code&gt; parameter is set to a year past 1997. If not, this setup is cancelled out and the default &lt;code&gt;frameless&lt;/code&gt; size applies. An optional &lt;code&gt;caption&lt;/code&gt; parameter also exists than enables users to write a descriptive caption for an image featured in the &lt;code&gt;image&lt;/code&gt; parameter.
 
 ===Cells===
 {| class=&quot;wikitable&quot;
 ! style=&quot;width:8em;&quot; | Cell
 ! Parameter(s)
 ! Description
 |-
 | '''Host city'''
 | &lt;code&gt;host_city&lt;/code&gt;
 | This parameter is used to input the city that is hosing the games and its sovereign state. It should be presented in the format of {{xt|&lt;nowiki&gt;[city], [country]&lt;/nowiki&gt;}}, with the country not being wikilinked per [[MOS:OL|manual of style guidelines]]. For example, if the parameters are set to the values representing the [[2006 Winter Olympics]], &quot;&lt;code&gt;2006&lt;/code&gt;&quot; and &quot;&lt;code&gt;Winter&lt;/code&gt;&quot;, the data for this cell will appear as &quot;{{xtd|[[Turin]], Italy}}&quot;
 |-
 | '''Motto'''
 | &lt;code&gt;motto&lt;/code&gt;
 | This parameter is used to input the official motto of the games. If there are multiple mottos for a particular games, a consensus should preferably be reached to use the most common and recognised one. The motto should be presented in ''italicised form'', using two [[Apostrophe|typewriter apostrophes]] (&lt;code&gt;&lt;nowiki&gt;''&lt;/nowiki&gt;&lt;/code&gt;) before and after the text. If the motto is not in English, an English translation must be presented first, above the motto in its original language in [[parentheses]] on a new line using {{tl|Plainlist}} formatting, and prefixed with the name of the language with a [[wikilink]] to the article on that language. For example, the motto of the [[2004 Summer Olympics]] should be written up as:&lt;pre style=&quot;width:60%;&quot;&gt;{{Plainlist|
 * ''Welcome home''
 * ([[Greek language|Greek]]: Καλώς ήλθατε σπίτι, Kalós ílthate spíti)
 }}&lt;/pre&gt;
 |-
 | '''Nations'''
 | &lt;code&gt;nations&lt;/code&gt;
 | This parameter is used to input the number of [[National Olympic Committee]]s (NOCs) present at the games. A simple number input is highly encouraged here, regardless of any special event or occasion, such as the merging of two or more nations in a single team for a particular games, which can be detailed in the article body instead. For example, the input for this parameter in the [[1988 Winter Olympics]] article, where 57 NOCs competed, would simply be &quot;{{xtd|57}}&quot;.
 |-
 | '''Athletes'''
 | &lt;code&gt;athletes&lt;/code&gt;
 | This parameter is used to input the number of athletes that competed at the games. A total figure should be presented first in front of the number of men and women competing in [[parentheses]] following it. For example, the input for this parameter in the article for the [[1996 Summer Olympics]], where 6,797 men and 3,523 women competed, should be presented as &quot;{{xtd|10,320 (6,797 men, 3,523 women)}}&quot;.
 |-
 | '''Events'''
 | &lt;code&gt;events&lt;/code&gt;
 | This parameter is used to list the number of events that took place at the games, along with the number of sports and disciplines features. It is preferably presented in the &quot;{{xt|&lt;nowiki&gt;[number of events] in [number of sports]&lt;/nowiki&gt; [[Olympic sports|sports]] &lt;nowiki&gt;([number of disciplines] disciplines)&lt;/nowiki&gt;}}&quot;. For example, if the parameters are set to the values representing the [[1956 Winter Olympics]], &quot;&lt;code&gt;1956&lt;/code&gt;&quot; and &quot;&lt;code&gt;Winter&lt;/code&gt;&quot;, the data for this cell will appear as &quot;{{xtd|24 in 4 [[Olympic sports|sports]] (8 disciplines)}}&quot;.
 |-
 | '''Opening'''
 | &lt;code&gt;opening&lt;/code&gt;
 | rowspan=&quot;2&quot;| These parameters are used to present the date of the games' opening and closing ceremonies in a simple &quot;{{xt|&lt;nowiki&gt;[day] [month]&lt;/nowiki&gt;}}&quot; format, such as &quot;{{xtd|27 July}}&quot; and &quot;{{xtd|12 August}}&quot; for the [[2012 Summer Olympics]], when the two parameters are set to &quot;&lt;code&gt;2012&lt;/code&gt;&quot; and &quot;&lt;code&gt;Summer&lt;/code&gt;&quot;. Two [[mw:Help:Extension:ParserFunctions##ifexist|&lt;code&gt;&lt;nowiki&gt;{{#ifexist:}}&lt;/nowiki&gt;&lt;/code&gt; parser functions]] are also used to check if wikipedia articles exist for the opening and/or closing ceremonies. If so, a wikilink to that article will be placed in the '''Opening''' and/or '''Closing''' cell headers.
 |-
 | '''Closing'''
 | &lt;code&gt;closing&lt;/code&gt;
 |-
 | '''[[List of people who have opened the Olympic Games|Opened by]]'''
 | &lt;code&gt;opened_by&lt;/code&gt;
 | This parameter is used to input the name of the person who officially opened the games at the opening ceremony. Their formal shorthand [[title]], followed by their [[common name]] is highly encouraged. For example, in the article for the [[2000 Summer Olympics]], the name of the person who opened the games, the [[Order of the British Empire|knighted]] then-[[Governor-General of Australia]] [[William Deane]], should be presented in this parameter as &quot;{{xtd|[[Governor-General of Australia|Governor-General]] [[William Deane|Sir William Deane]]}}&quot;.
 |-
 | '''[[List of people who have lit the Olympic cauldron|Cauldron]]'''
 | &lt;code&gt;cauldron&lt;/code&gt;
 | This parameter is used to input the [[common name]] of the person or people who, at the opening ceremony, [[List of people who have lit the Olympic cauldron|lit the Olympic cauldron]]. Any special citizenship titles, such as the [[Order of the British Empire|knighthood]] of &quot;Sir&quot;, may be appropriate, but only if they held those titles at the time of the opening ceremony. If multiple people were involved with lighting the cauldron, a {{tl|Plainlist}} format is highly encouraged.
 |-
 | '''[[Olympic Stadium|Stadium]]'''
 | &lt;code&gt;stadium&lt;/code&gt;
 | This parameter is used to display the stadium that hosted the opening ceremony of the games. The common, non-sponsorship name of the venue is presented in this cell, with a [[wikilink]] to the article about the venue. For example, the article for the [[2010 Winter Olympics]], which will have the &lt;code&gt;1&lt;/code&gt; and &lt;code&gt;2&lt;/code&gt; parameters set to &quot;&lt;code&gt;2010&lt;/code&gt;&quot; and &quot;&lt;code&gt;Winter&lt;/code&gt;&quot;, will display &quot;{{xtd|[[BC Place]]}}&quot; in this cell.
 |}
 
 ===Succession===
 The succession links at the bottom of the {{tl|Infobox}} template use an intricate, complex series of [[mw:Help:Extension:ParserFunctions|parser functions]] designed to present succession for the [[Summer Olympic Games]] and [[Winter Olympic Games]] according to which season is set to the &lt;code&gt;2&lt;/code&gt; parameter. For example, if the &lt;code&gt;2&lt;/code&gt; parameter is set to &lt;code&gt;Summer&lt;/code&gt;, the succession links for the Summer games will appear above the succession links for the Winter games. If it's set to &lt;code&gt;Winter&lt;/code&gt;, the reverse will be true. This is true thanks to an arrangement of [[mw:Help:Extension:ParserFunctions##if|&lt;code&gt;&lt;nowiki&gt;{{#if:}}&lt;/nowiki&gt;&lt;/code&gt;]] and [[mw:Help:Extension:ParserFunctions##ifeq|&lt;code&gt;&lt;nowiki&gt;{{#ifeq:}}&lt;/nowiki&gt;&lt;/code&gt;]] parser functions that all check the &lt;code&gt;2&lt;/code&gt; parameter. Four main parameters exist in this section, &lt;code&gt;summer_prev&lt;/code&gt; for the preceding Summer games, &lt;code&gt;summer-next&lt;/code&gt; for the succeeding Summer games, &lt;code&gt;winter_prev&lt;/code&gt; for the preceding Winter games, and &lt;code&gt;winter_next&lt;/code&gt; for the succeeding Winter games. It is highly encouraged that the [[wikilinks]] are formatted to present the name of the host city followed by the year. For example, the [[1960 Summer Olympics]] should be presented as &quot;{{xtd|[[1960 Summer Olympics|Rome 1960]]}}&quot; and the [[2014 Winter Olympics]] should be presented as &quot;{{xtd|[[2014 Winter Olympics|Sochi 2014]]}}&quot;. Two additional parameters, &lt;code&gt;prev&lt;/code&gt; and &lt;code&gt;next&lt;/code&gt;, also exist to allow for situations in which the four main parameters do not apply, such as the [[1906 Intercalated Games]].
 
 ==Microformat==
 {{UF-hcal}}
 
 &lt;includeonly&gt;{{Sandbox other||
 &lt;!-- Categories below this line, please; interwikis at Wikidata --&gt;
 [[Category:Olympics infobox templates|Games]]