Template:Category redirect: Difference between revisions
mNo edit summary |
Minh Nguyen (talk | contribs) Only prefix Category: namespace if not already provided |
||
Line 27: | Line 27: | ||
| ja = このカテゴリは移動したか、他のカテゴリに統合されたかしたため、ページを含めておくべきではありません。このカテゴリに所属しているページはすべて、以下のカテゴリに移動してください。 |
| ja = このカテゴリは移動したか、他のカテゴリに統合されたかしたため、ページを含めておくべきではありません。このカテゴリに所属しているページはすべて、以下のカテゴリに移動してください。 |
||
| ru = Эта категория была переименована или перенесена, и больше не должна содержать любых страниц-членов или подкатегорий. Все страницы, которые могут по-прежнему относиться к этой категории, должны быть помещены в: |
| ru = Эта категория была переименована или перенесена, и больше не должна содержать любых страниц-членов или подкатегорий. Все страницы, которые могут по-прежнему относиться к этой категории, должны быть помещены в: |
||
}}<br /> '''[[:Category:{{{1}}}]]''' |
}}<br /> '''[[:{{#ifeq:{{NAMESPACE:{{{1}}}}}|Category||Category:}}{{{1}}}]]''' |
||
}}<!-- |
}}<!-- |
||
-->{{#ifeq:{{NAMESPACE}}|Category|<!-- |
-->{{#ifeq:{{NAMESPACE}}|Category|<!-- |
||
-->{{#ifexist:Category:{{{1}}}||[[Category:Soft-redirected categories with missing target category|{{PAGENAME}}]]}}<!-- |
-->{{#ifexist:{{#ifeq:{{NAMESPACE:{{{1}}}}}|Category||Category:}}{{{1}}}||[[Category:Soft-redirected categories with missing target category|{{PAGENAME}}]]}}<!-- |
||
-->{{#ifexpr:{{PAGESINCATEGORY:{{#sub:{{#titleparts:{{FULLPAGENAME}}}}|9}}|R}}>0<!-- |
-->{{#ifexpr:{{PAGESINCATEGORY:{{#sub:{{#titleparts:{{FULLPAGENAME}}}}|9}}|R}}>0<!-- |
||
-->|[[Category:Soft-redirected categories still containing pages|{{PAGENAME}}]][[Category:{{{1}}}|←]]<!-- |
-->|[[Category:Soft-redirected categories still containing pages|{{PAGENAME}}]][[{{#ifeq:{{NAMESPACE:{{{1}}}}}|Category||Category:}}{{{1}}}|←]]<!-- |
||
-->|[[Category:Soft-redirected categories no longer containing pages|{{PAGENAME}}]]<!-- |
-->|[[Category:Soft-redirected categories no longer containing pages|{{PAGENAME}}]]<!-- |
||
-->}}<!-- |
-->}}<!-- |
Revision as of 17:00, 12 August 2023
Redirected category
This category has been renamed or merged into another one and should no longer contain any member pages. All member pages which may still belong to this category should now be placed into:
[[:Category:{{{1}}}]]
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Template used to soft redirect a category page without content to another category page. (No automatic redirection.)
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | redirection target in Category: namespace
| Page name | required |
lang | lang | language code, use if the language inferred from the page title is not correct
| String | optional |
Usage
- This template should be used as the only content remaining in the category page that has been renamed or merged into another one indicated in parameter.
Syntax
{{Category redirect|target}}
- Replace target with the bare target category name (without the implied "Category:" prefix).
Outcome
- Tagged categories will appear in subcategories of Category:Soft-redirected categories:
- As long as the target category page does not exist, the tagged category will be listed in Category:Soft-redirected categories with missing target category.
- As long as the tagged soft-redirected category contains member pages, the tagged category will be listed in Category:Soft-redirected categories still containing pages, and the tagged soft-redirected category will remain listed as a subcategory (listed under the indexing key ←) of the target category; otherwise it will be listed in Category:Soft-redirected categories no longer containing pages.
Example
- A category page like Category:Frankreich containing:
{{Category redirect|France}}
will render as:
Redirected category
This category has been renamed or merged into another one and should no longer contain any member pages. All member pages which may still belong to this category should now be placed into:
Category:France