Difference between revisions of "Template:Category redirect"
(Creation) |
m (Updating) |
||
Line 13: | Line 13: | ||
-->{{#ifexist:{{#ifeq:{{NAMESPACE:{{{1}}} }}|Category||Category:}}{{{1}}} | -->{{#ifexist:{{#ifeq:{{NAMESPACE:{{{1}}} }}|Category||Category:}}{{{1}}} | ||
| | | | ||
− | | [[Category: | + | | [[Category:Category-redirect box parameter needs fixing|∃{{PAGENAME}}]] |
}}<!-- | }}<!-- | ||
Reporting circular redirects (of length 1): | Reporting circular redirects (of length 1): | ||
− | -->{{#ifeq:{{PAGENAME:{{{1}}}}}|{{PAGENAME}}|[[Category: | + | -->{{#ifeq:{{PAGENAME:{{{1}}}}}|{{PAGENAME}}|[[Category: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: | + | |[[Category:Non-empty soft redirected categories]] |
− | }}<includeonly>{{Category other|[[Category: | + | }}<includeonly>{{Category other|[[Category: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 09:41, 3 October 2023
This category is located at [[:Category:{{{1}}}]].
See the instructions for more information. Administrators: If this category name is unlikely to be entered on new pages, and all incoming links have been cleaned up, click here to delete. |
- This template should only be used on category pages.
This template should not be substituted. |
Instructions[edit]
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[edit]
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[edit]
- Non-empty categories will be listed at Category:Non-empty soft redirected categories ( 1 ).
- Infinite loops of length 1 will be listed at Category:Category-redirect box parameter needs fixing ( 0 ) under ∞.
- Redirects with non-existent targets will be listed at Category:Category-redirect box parameter needs fixing ( 0 ) under ∃.
TemplateData[edit]
TemplateData for Category redirect
Marks category as a soft-redirect
Parameter | Description | Type | Status | |
---|---|---|---|---|
Destination category | 1 | Category that this category should redirect to
| Page | required |
Nocat | nocat | no description | Unknown | optional |