Template:EventLink/doc
< Template:EventLink
Jump to navigation
Jump to search
Revision as of 11:01, 15 September 2013 by imported>Sillyfolkboy (create doc)
| 40px | This is a documentation subpage for Template:EventLink. It contains usage information, categories and other content that is not part of the original template page. |
The AthleticsLink template is designed to provide links to event level sub-articles in medal tables on athletics championships articles.
Usage
This template has two input fields:
- {{AthleticsLink|Event|Gender}}
- The Event field is for the race or competition type (e.g. 100 metres, Shot put). The text entered here will appear exactly as written in the medal table. It will also be used to generate the event's article link and handles capitalisation by making the first letter lower case. (N.B. the event must match the sub-article name - for example "3000 m s'chase" would only link to a sub-article with "3000 m s'chase" as the title)
- The Gender field clarifies the sex of the competition and has four possibilities: "Men", "Women", "Boy" and "Girl". It is used to generate the event's article link.
The link is generated by taking the current page name (e.g. 2013 World Championships in Athletics), the Gender (e.g. "Men"), and the Event (e.g. "100 metres") to make a link (e.g. 2013 World Championships in Athletics – Men's 100 metres)
Example
The code {{AthleticsLink|High jump|Women}} used on the page 2001 World Championships in Athletics will produce the following outcome.
| Event | Gold | Silver | Bronze |
|---|---|---|---|
| High jump |
See also