Sarna News: Bad 'Mechs - Icestorm

Difference between revisions of "Template:Category redirect/doc"

(Creation)
 
m (Updating)
Line 23: Line 23:
  
 
== Exceptions ==
 
== Exceptions ==
* Non-empty categories will be listed at {{cl|BattleTechWiki non-empty soft redirected categories|count=yes}}.
+
* Non-empty categories will be listed at {{cl|Non-empty soft redirected categories|count=yes}}.
* Infinite loops of length 1 will be listed at {{cl|BattleTechWiki category-redirect box parameter needs fixing|count=yes}} under [[∞]].
+
* Infinite loops of length 1 will be listed at {{cl|Category-redirect box parameter needs fixing|count=yes}} under [[∞]].
* Redirects with non-existent targets will be listed at {{cl|BattleTechWiki category-redirect box parameter needs fixing|count=yes}} under [[∃]].
+
* Redirects with non-existent targets will be listed at {{cl|Category-redirect box parameter needs fixing|count=yes}} under [[∃]].
  
 
== TemplateData ==
 
== TemplateData ==

Revision as of 09:41, 3 October 2023

Instructions

Example: To redirect from Category:Authors to Category:Writers, simply add the following to Category:Authors:

{{Category redirect|Writers}} or
{{Category redirect|Category:Writers}} with optional namespace prefix

This template adds category pages to Category:BattleTechWiki soft redirected categories.

If a category redirect is intended to be kept, then add |keep=yes to suppress a deletion link that is usually displayed to administrators.

In the case of redirects that are resolved or otherwise used by other templates, consider also adding the template {{R from category navigation}} within an {{Rcat shell}}.

Templates in the target name

Note that the use of templates in the target name will prevent the redirect from being resolved by {{Resolve category redirect}}, as will the characters | or !.

For more info, see Template:Resolve category redirect#Templates.

Exceptions

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for Category redirect

Marks category as a soft-redirect

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Destination category1

Category that this category should redirect to

Example
Writers
Pagerequired
Nocatnocat

no description

Unknownoptional

See also