Template:Swimming at the Olympics/doc

Swimming at the Olympics is a sub-template of Olympic events sidebar, a series of navigational sidebars for articles on Olympic disciplines, designed to replace the aged ' and ' navigational sidebar series. It is devoted specifically to the Olympic discipline of swimming, and features interchangeable lists of archery events at various Olympic games, from 1896 to 2020. It is composed of a single blank parameter,, designed to accept year inputs. The sidebar's interchangeable lists are powered by the  parser function, through the   parameter.

Usage
When the  parameter is set to   like in the following code, , the output results in the example seen at right, where relevant wikilinks to swimming at the 2014 Summer Youth Olympics are shown, and a formatted list of swimming events at that year's Youth Olympics are shown in a collapsible format. A full list of all available inputs for this template can be seen in the table below.

Succession
This template is designed as a merger and replacement for 31 predecessor navigational sidebar templates, all of which should ideally redirect to Swimming at the Olympics. They are as follows:


 * SwimmingAt1896SummerOlympics
 * SwimmingAt1900SummerOlympics
 * SwimmingAt1904SummerOlympics
 * SwimmingAt1908SummerOlympics
 * SwimmingAt1912SummerOlympics
 * SwimmingAt1920SummerOlympics
 * SwimmingAt1924SummerOlympics
 * SwimmingAt1928SummerOlympics
 * SwimmingAt1932SummerOlympics
 * SwimmingAt1936SummerOlympics
 * SwimmingAt1948SummerOlympics
 * SwimmingAt1952SummerOlympics
 * SwimmingAt1956SummerOlympics
 * SwimmingAt1960SummerOlympics
 * SwimmingAt1964SummerOlympics
 * SwimmingAt1968SummerOlympics
 * SwimmingAt1972SummerOlympics
 * SwimmingAt1976SummerOlympics
 * SwimmingAt1980SummerOlympics
 * SwimmingAt1984SummerOlympics
 * SwimmingAt1988SummerOlympics
 * SwimmingAt1992SummerOlympics
 * SwimmingAt1996SummerOlympics
 * SwimmingAt2000SummerOlympics
 * SwimmingAt2004SummerOlympics
 * SwimmingAt2008SummerOlympics
 * SwimmingAt2010SummerYouthOlympics
 * SwimmingAt2012SummerOlympics
 * SwimmingAt2016SummerOlympics
 * Swimming at the 2014 Summer Youth Olympics
 * Swimming at the 2020 Summer Olympics