Difference between revisions of "Template:Category redirect"

From Eat Every Plant
Jump to navigation Jump to search
m (1 revision: template:category redirect)
 
m (typo)
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
-->{{#ifexist:{{#ifeq:{{NAMESPACE:{{{1}}} }}|Category||Category:}}{{{1}}}
 
-->{{#ifexist:{{#ifeq:{{NAMESPACE:{{{1}}} }}|Category||Category:}}{{{1}}}
 
   |  
 
   |  
   | [[Category:Wikipedia category-redirect box parameter needs fixing|∃{{PAGENAME}}]]
+
   | [[Category:Eat Every Plant category-redirect box parameter needs fixing|∃{{PAGENAME}}]]
 
   }}<!--  
 
   }}<!--  
 
Reporting circular redirects (of length 1):  
 
Reporting circular redirects (of length 1):  
-->{{#ifeq:{{PAGENAME:{{{1}}}}}|{{PAGENAME}}|[[Category:Wikipedia category-redirect box parameter needs fixing|∞{{PAGENAME}}]]}}
+
-->{{#ifeq:{{PAGENAME:{{{1}}}}}|{{PAGENAME}}|[[Category:Eat Every Plant category-redirect box parameter needs fixing|∞{{PAGENAME}}]]}}
 
| :::::This template should only be used on category pages.
 
| :::::This template should only be used on category pages.
 
}}{{category handler
 
}}{{category handler
 
|all = {{#ifexpr:{{PAGESINCATEGORY:{{PAGENAME}}|R}}
 
|all = {{#ifexpr:{{PAGESINCATEGORY:{{PAGENAME}}|R}}
  |[[Category:Wikipedia non-empty soft redirected categories]]
+
  |[[Category:Eat Every Plant non-empty soft redirected categories]]
}}<includeonly>{{Category other|[[Category:Wikipedia soft redirected categories]]|{{Incorrect namespace|category}}}}</includeonly>
+
}}<includeonly>{{Category other|[[Category:Eat Every Plant soft redirected categories]]|{{Incorrect namespace|category}}}}</includeonly>
 
|nocat={{{nocat|{{#ifeq:{{FULLPAGENAME}}|MediaWiki:Category-move-redirect-override|true}}}}}
 
|nocat={{{nocat|{{#ifeq:{{FULLPAGENAME}}|MediaWiki:Category-move-redirect-override|true}}}}}
 
}}<noinclude>
 
}}<noinclude>

Latest revision as of 13:01, 25 July 2017

This template should only be used on category pages.
Template documentation[view] [edit] [history] [purge]

For the Wikipedia policy on redirecting categories, see WP:CATRED.

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:Wikipedia soft redirected categories.

Exceptions

See also

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

See the monthly error report for this template.

TemplateData for Category redirect

<templatedata> { "params": { "1": { "label": "Destination Category", "description": "Category that this category should redirect to", "example": "Writers", "type": "wiki-page-name", "required": true }, "nocat": {} }, "description": "Marks category as a soft-redirect", "format": "block" } </templatedata>