Template:Olympic type/doc
This is a documentation subpage for Template:Olympic type. It may contain usage information, categories and other content that is not part of the original template page. |
Fields
[edit]TemplateData for Olympic type
Parameter | Description | Type | Status | |
---|---|---|---|---|
Year | 1 | Year of the Olympic or Paralympic Games. Accepts any valid Olympic year (every four from 1896 and every two from 1992) as well as 1906 for the Intercalated Games.
| Date | required |
Season | 2 | Determines season as Summer or Winter. Only required for years between 1924 and 1992 when all editions of Olympics and Paralympics were held in the same year. While not required for Youth Olympics, can be used without the Type parameter to define Youth Olympics as they are the opposite season of the main games.
| String | suggested |
Type | 3 | Specifies Paralympic or Youth Olympics Games. Valid for Paralympic Games from 1960 for Summer and 1976 for Winter. Season Parameter required for years between 1960 and 1992, optional for years after 1992. Valid for Youth Olympic Games for years after 2010, except 2022.
| String | optional |
Examples
[edit]From 1896 to 1920 and from 1994 forward, only the year is required:
{{Olympic type|1896}}
→ 1896 Summer Olympics{{Olympic type|1994}}
→ 1994 Winter Olympics{{Olympic type|2024}}
→ 2024 Summer Olympics
From 1924 to 1992, the year and season is required for the Olympics:
{{Olympic type|1924|s}}
→ 1924 Summer Olympics{{Olympic type|1924|w}}
→ 1924 Winter Olympics
Paralympics
[edit]The Paralympics can be displayed using the season and type parameter from 1960 for the Summer edition and from 1976 for the Winter edition
{{Olympic type|1960|s|p}}
→ 1960 Summer Paralympics{{Olympic type|1976|w|p}}
→ 1976 Winter Paralympics
The Summer Paralympics can be displayed without specifying the season for 1960 to 1972, and both Winter and Summer Paralympics can be displayed without the season from 1994 onwards.
{{Olympic type|1960|p}}
→ 1960 Summer Paralympics{{Olympic type|1994|p}}
→ 1994 Winter Paralympics{{Olympic type|1996|p}}
→ 1996 Summer Olympics
Youth Olympics
[edit]The Youth Olympics can be displayed using the type parameter from 2010 for the Summer Youth Olympics and from 2012 for the Winter Youth Olympics.
{{Olympic type|2010|y}}
→ 2010 Summer Youth Olympics{{Olympic type|2012|y}}
→ 2012 Winter Youth Olympics
The Youth Olympics can also be displayed by only using the season parameter as they run on an opposite schedule to the main Olympic and Paralympic games
{{Olympic type|2010|s}}
→ 2010 Summer Youth Olympics{{Olympic type|2012|w}}
→ 2012 Winter Youth Olympics
Special Cases
[edit]The 1906 Intercalated Games can be displayed with 1906.
{{Olympic type|1906}}
→ 1906 Intercalated Games
The year 2021 is valid to display the delayed 2020 Olympics and Paralympics
{{Olympic type|2021}}
→ 2021 Summer Olympics{{Olympic type|2021|p}}
→ 2021 Summer Olympics
Canceled Games
[edit]The template does not have display options for 1916, 1940, or 1944 for the Summer and Winter Olympics and 2022 for the Summer Youth Olympics as those games were canceled.
{{Olympic type|1916}}
→{{Olympic type|1940}}
→{{Olympic type|1944}}
→{{Olympic type|2022|y}}
→ 2022 Winter Olympics
Short Code
[edit]The fourth parameter can be used to display a "y" for youth olympic games to use with Template:Sports gender
{{Olympic type|2010|s|gc}}
→ 2010 Summer Youth Olympics{{Olympic type|2012|w|gc}}
→ 2012 Winter Youth Olympics