Difference between revisions of "Template:MWsportnameYYYYOlyCat/doc"
Jump to navigation
Jump to search
imported>BrownHairedGirl |
imported>Christian75 (protected with the reason "Highly visible template" adding {{High risk|144}}) |
||
| 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]]) --> | ||
| + | {{High risk|144}} | ||
To create a category of the form "[Women's/Men's] ''sportname'' at the YYYY [Summer/Winter] Olympics", e.g. [[:Category:Men's alpine skiing at the 2018 Winter Olympics]] or [[:Category:Women's short track speed skating at the 2002 Winter Olympics]]. | To create a category of the form "[Women's/Men's] ''sportname'' at the YYYY [Summer/Winter] Olympics", e.g. [[:Category:Men's alpine skiing at the 2018 Winter Olympics]] or [[:Category:Women's short track speed skating at the 2002 Winter Olympics]]. | ||
Latest revision as of 15:06, 12 November 2018
| This is a documentation subpage for Template:MWsportnameYYYYOlyCat. It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 140 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
To create a category of the form "[Women's/Men's] sportname at the YYYY [Summer/Winter] Olympics", e.g. Category:Men's alpine skiing at the 2018 Winter Olympics or Category:Women's short track speed skating at the 2002 Winter Olympics.
It produces header text, including navboxes, and parent categories.
Usage
{{MWsportnameYYYYOlyCat}}
The category takes no parameters. Instead it parses the category title to find the sex, sport, year and games.
The logic used to do so may not perfect. If it produces odd results, a diagnostic mode displays how the title was parsed:
{{MWsportnameYYYYOlyCat|diagnostics=yes}}