Template:Redirect

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
m (fix cat sorting)
(fix nesting)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
[[Category:{{{2|{{{cat|List of redirect pages}}}}}}|{{{1|{{PAGENAME}}}}}]]
+
<includeonly>[[Category:{{{2|{{{cat|List of redirect pages}}}}}}|{{{1|{{PAGENAME}}}}}]]</includeonly><noinclude>{{doc-page-head}}
<noinclude><div style="background:#f5fffa;">This template is to automatically list redirect pages in the default auto-category [[:Category:List of redirect pages]], or may be formulated to list the page on another (presumably as subcategory page) if and two arguments are defined, or the <code>explicit parameter "|cat=''some name''"< is defined.
+
This template is to automatically list redirect pages in the default auto-category [[:Category:List of redirect pages]], or may be formulated to list the page on another (presumably as subcategory page) if and two arguments are defined, or the <code>explicit parameter "|cat=''some name''"< is defined.
  
 
<hr>
 
<hr>
Line 15: Line 15:
  
 
[[Category:List of redirect pages|*{{PAGENAME}}]]
 
[[Category:List of redirect pages|*{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
+
{{SelfTdoc}}
 +
{{AutoTcat}}
 +
{{MainTemp}}
 
</div></noinclude>
 
</div></noinclude>

Latest revision as of 07:44, 22 September 2013

This template is to automatically list redirect pages in the default auto-category Category:List of redirect pages, 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>{{Redirect}} must be placed on the same line as the redirect page link.

  1. a category sorting override argument {{{1}}} may be given to group, or otherwise affect the alphabetical sorting of the page within the default or alternative category.
  2. 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
  1. <code>{{Redirect}} = page is categorized in the default Category:List of redirect pages, page is sorted alphabetically to the Wikimedia magicword page: {{PAGENAME}}
  2. {{Redirect|sort=string}} = page is categorized in the default Category:List of redirect pages, page is sorted alphabetically to the string 'sort=string'
  3. {{Redirect|sort=string|other-category name}} = page is categorized in the Category:other-category name, page is sorted alphabetically to the string 'sort=string'
  4. {{Redirect|cat=other-category name}} = page is categorized in the Category:other-category name, page is sorted alphabetically to the Wikimedia magicword page: {{PAGENAME}}
Personal tools