Difference between revisions of "Template:Badminton at the Olympics/doc"

From blackwiki
Jump to navigation Jump to search
imported>PhilipTerryGraham
(Complete rewrite of documentation page, based on Template:Olympic events sidebar/Golf/doc)
imported>PhilipTerryGraham
(→‎Example: Fixing copy+paste errors)
Line 8: Line 8:
 
=== Example ===
 
=== Example ===
 
{{Olympic events sidebar/Badminton|2008}}
 
{{Olympic events sidebar/Badminton|2008}}
When the <code>1</code> parameter is set to <code>2008</code> like in the following code, <code><nowiki>{{Olympic events sidebar/Archery|1904}}</nowiki></code>, the output results in the example seen at right, where relevant wikilinks to [[Archery at the 2008 Summer Olympics]] are shown, and a formatted list of Badminton events at that year's Olympics are shown in a collapsible format. A full list of all available parameters and inputs for this template can be seen in the table below, in the "Parameters" section.
+
When the <code>1</code> parameter is set to <code>2008</code> like in the following code, <code><nowiki>{{Olympic events sidebar/Badminton|2008}}</nowiki></code>, the output results in the example seen at right, where relevant wikilinks to [[Badminton at the 2008 Summer Olympics]] are shown, and a formatted list of Badminton events at that year's Olympics are shown in a collapsible format. A full list of all available parameters and inputs for this template can be seen in the table below, in the "Parameters" section.
  
 
=== Parameters ===
 
=== Parameters ===

Revision as of 13:42, 17 July 2018

{{Olympic events sidebar/Badminton|_|_}}

{{Olympic events sidebar/Badminton}} is a sub-template of {{Olympic events sidebar}}, a series of navigational sidebars for articles on Olympic disciplines, designed to replace the aged Summer Olympics by year and Winter Olympics by year navigational sidebar series. It is devoted specifically to the Olympic discipline of Badminton, and features interchangeable lists of Badminton events at various Olympic games, from 1992 to 2020. It is composed of two parameters, both with default blank inputs. The first parameter, 1 is designed to accept year inputs, while the second parameter, 2 is designed to accept width inputs. The sidebar's interchangeable lists are powered by the {{#switch}} parser function, through the 1 parameter.

Usage

Example

Template:Olympic events sidebar/Badminton When the 1 parameter is set to 2008 like in the following code, {{Olympic events sidebar/Badminton|2008}}, the output results in the example seen at right, where relevant wikilinks to Badminton at the 2008 Summer Olympics are shown, and a formatted list of Badminton events at that year's Olympics are shown in a collapsible format. A full list of all available parameters and inputs for this template can be seen in the table below, in the "Parameters" section.

Parameters

Parameter Input Description
1 1992 Badminton at the 1992 Summer Olympics
1996 Badminton at the 1996 Summer Olympics
2000 Badminton at the 2000 Summer Olympics
2004 Badminton at the 2004 Summer Olympics
2008 Badminton at the 2008 Summer Olympics
2010 Badminton at the 2010 Summer Youth Olympics
2012 Badminton at the 2012 Summer Olympics
2014 Badminton at the 2014 Summer Youth Olympics
2016 Badminton at the 2016 Summer Olympics
2018 Badminton at the 2018 Summer Youth Olympics
2020 Badminton at the 2020 Summer Olympics
2 any numerical value Sets custom width of sidebar

Succession

This template is designed as a merger and replacement for ten predecessor navigational sidebar templates, all of which should ideally redirect to {{Olympic events sidebar/Badminton}}. They are as follows: