Template:Shortcut
From TrainzOnline
This template is to automatically categorize the special redirect pages known as 'SHORTCUTS' into the default auto-category Category:Shortcuts, or may be formulated to list the page on another (presumably as subcategory page) if and two arguments are defined, or the
explicit parameter "|cat=some name"< is defined.
- Usage
The template <code>{{shortcut}}
must be placed on the same line as the redirect page link. Normally tight right after the closing wikilink brackets ']]': [[TrainzOnline:
# a category sorting override argument <code><nowiki>{{{1}}}
may be given to group, or otherwise affect the alphabetical sorting of the page within the default or alternative category.
- The second argument
|{{{2}}}, if given or defined is the same as categorizing a page using the explicit parameter <code>|cat=, in which case the page is categorized to that given parameter string (name).
- Examples
- <code>{{Redirect}} = page is categorized in the default Category:List of redirect pages, page is sorted alphabetically to the Wikimedia magicword page:
{{PAGENAME}}
-
{{Redirect|sort=string}}
= page is categorized in the default Category:List of redirect pages, page is sorted alphabetically to thestring 'sort=string'
-
{{Redirect|sort=string|other-category name}}
= page is categorized in theCategory:other-category name
, page is sorted alphabetically to thestring 'sort=string'
-
{{Redirect|cat=other-category name}}
= page is categorized in theCategory:other-category name
, page is sorted alphabetically to the Wikimedia magicword page:{{PAGENAME}}