Template:Olympic type/doc

From Wikipedia, the free encyclopedia


Fields[edit]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Olympic type in articles based on its TemplateData.

TemplateData for Olympic type

Template for switching Olympic, Youth Olympic, or Paralympic Games by year. Also accepts 1908 for Intercalated Games
Year1
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.
Example
Every fourth year, 1896 to 1992; every even year 1994 to 2040; as well as 1906
Season2
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.
Suggested values
  • s
  • w
  • summer
  • winter
Type3
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.
Suggested values
  • p
  • para
  • paralympic
  • paralympics
  • y
  • youth

Examples[edit]

From 1896 to 1920 and from 1994 forward, only the year is required:

From 1924 to 1992, the year and season is required for the 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

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.

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.

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

Special Cases[edit]

The 1906 Intercalated Games can be displayed with 1906.

The year 2021 is valid to display the delayed 2020 Olympics and Paralympics

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.


Short Code[edit]

The fourth parameter can be used to display a "y" for youth olympic games to use with Template:Sports gender