Difference between revisions of "Template:Badminton at the Olympics/doc"
imported>PhilipTerryGraham m (PhilipTerryGraham moved page Template:Olympic events sidebar/Badminton/doc to Template:Badminton at the Olympics/doc: New naming scheme) |
imported>PhilipTerryGraham (Updated documentation after recent changes) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
− | <pre>{{ | + | <pre>{{Badminton at the Olympics|_}}</pre> |
− | '''{{tl| | + | '''{{tl|Badminton at the Olympics}}''' is a sub-template of {{tl|Olympic events sidebar}}, a series of [[Wikipedia:Categories, lists, and navigation templates|navigational sidebars]] for articles on [[Olympic sports|Olympic disciplines]], designed to replace the aged ''{{Category|Summer Olympics by year event navigational boxes|Summer Olympics by year}}'' and ''{{Category|Winter Olympics by year event navigational boxes|Winter Olympics by year}}'' navigational sidebar series. It is devoted specifically to the Olympic discipline of [[Badminton at the Summer Olympics|badminton]], and features interchangeable lists of badminton events at various Olympic games, from [[Badminton at the 1992 Summer Olympics|1992]] to [[Badminton at the 2020 Summer Olympics|2020]]. It is composed of a single blank parameter, <code>1</code>, designed to accept year inputs. The sidebar's interchangeable lists are powered by the <code>{{#switch}}</code> [[mw:Help:ParserFunctions|parser function]], through the <code>1</code> parameter. |
== Usage == | == Usage == | ||
=== Example === | === Example === | ||
− | {{ | + | {{Badminton at the Olympics|2008}} |
− | When the <code>1</code> parameter is set to <code>2008</code> like in the following code, <code><nowiki>{{ | + | When the <code>1</code> parameter is set to <code>2008</code> like in the following code, <code><nowiki>{{Badminton at the Olympics|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 inputs for this template can be seen in the table below, in the "Inputs" section. |
=== Parameters === | === Parameters === | ||
Line 50: | Line 50: | ||
== Succession == | == Succession == | ||
− | This template is designed as a merger and replacement for ten predecessor navigational sidebar templates, all of which should ideally redirect to {{tl| | + | This template is designed as a merger and replacement for ten predecessor navigational sidebar templates, all of which should ideally redirect to {{tl|Badminton at the Olympics}}. They are as follows: |
{{col-start}} | {{col-start}} | ||
{{col-2}} | {{col-2}} |
Revision as of 06:50, 18 July 2018
![]() | This is a documentation subpage for Template:Badminton at the Olympics. It contains usage information, categories and other content that is not part of the original template page. |
{{Badminton at the Olympics|_}}
{{Badminton 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 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 a single blank parameter, 1
, designed to accept year inputs. The sidebar's interchangeable lists are powered by the {{#switch}}
parser function, through the 1
parameter.
Contents
Usage
Example
Template:Olympic events sidebar
When the 1
parameter is set to 2008
like in the following code, {{Badminton at the Olympics|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 inputs for this template can be seen in the table below, in the "Inputs" section.
Parameters
Succession
This template is designed as a merger and replacement for ten predecessor navigational sidebar templates, all of which should ideally redirect to {{Badminton at the Olympics}}. They are as follows: