Difference between revisions of "Template:Category redirect"
(Created page with "{{Cmbox | type = move | image = 52px | text = '''This category is located at <span id="softredirect">[[:Category:{{{1}}}]]</span>.''' :'''Note:'''...") |
|||
Line 11: | Line 11: | ||
-->{{#ifexist:Category:{{{1}}} | -->{{#ifexist:Category:{{{1}}} | ||
| | | | ||
− | | [ | + | | [Category:TZMWiki category-redirect box parameter needs fixing|∃{{PAGENAME}}]] |
}}<!-- | }}<!-- | ||
Reporting circular redirects (of length 1): | Reporting circular redirects (of length 1): | ||
− | -->{{#ifeq:{{ucfirst:{{{1}}}}}|{{PAGENAME}}|[[ | + | -->{{#ifeq:{{ucfirst:{{{1}}}}}|{{PAGENAME}}|[[Category:TZMWiki 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}}}} | |all = {{#ifexpr:{{PAGESINCATEGORY:{{PAGENAME}}}} | ||
− | |[[ | + | |[[Category:TZMWiki non-empty soft redirected categories]] |
− | }}[[ | + | }}[[Category:TZMWiki soft redirected categories]] |
|nocat={{{nocat|}}} | |nocat={{{nocat|}}} | ||
}} | }} |
Revision as of 15:53, 22 October 2012
| |
{{#if:52px | 52px | [[File:{{#switch:move | speedy = Cmbox deletion.png | delete = Cmbox deletion.png | content = Cmbox content.png | style = Edit-clear.svg | move = Cmbox move.png | protection = Cmbox protection.png | notice | #default = Cmbox notice.png }}|40x40px|link=|alt=]]}} |
}}
This category is located at [[:Category:{{{1}}}]].
|
{{#if:
| {{{imageright}}} |
| | speedy | delete | content | style | move | protection | notice =
| #default =}}{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Category | category | other }} }}
| category = {{#ifexist:Category:{{{1}}}
| | [Category:TZMWiki category-redirect box parameter needs fixing|∃Category redirect]] }}{{#ifeq:{{{1}}}|Category redirect|}}
| other | #default = :::::This template should only be used on category pages.
}}{{#if:
{{#ifeq: | true | dontcat }}{{#ifeq: | no | dontcat }}{{#switch: ¬ | yes | ¬ = | #default = dontcat }}{{#switch: | no = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:Category redirect|0|3}} | subsubpage | {{#if:{{#titleparts:Template:Category redirect|0|2}} | subpage | basepage }} }} }}
| basepage =
| subpage = dontcat
| subsubpage = dontcat
}}
| only = {{#switch: {{#if: | {{#if:{{#titleparts:|0|3}} | subsubpage | {{#if:{{#titleparts:|0|2}} | subpage | basepage }} }} | {{#if:{{#titleparts:Template:Category redirect|0|3}} | subsubpage | {{#if:{{#titleparts:Template:Category redirect|0|2}} | subpage | basepage }} }} }}
| basepage = dontcat
| subpage = | subsubpage = }}
}}
| |
{{#switch: {{#ifeq: | false | | {{#ifeq: | yes | | {{#ifeq: | yes | | {{#if:x
|
{{#if:{{#titleparts:{{#if:| | Template:Category redirect }}|0|2}} | | }}
}}
}} }} }} | hide = | #default = {{#ifeq: h0#384!5nea+w9 | {{#ifexpr:0 |
}}
| {{#switch: {{#if: | {{{demospace}}} | {{#if: | {{#ifeq:| | talk | }} | {{#ifeq:template|template talk | talk | template }} }} }}
| main | = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | book = | other | #default =
}}
| {{#ifexpr:0 |
}}{{#iferror: {{#expr: 1 + {{#switch:
{{#if: | {{{demospace}}} | {{#if: | {{#ifeq:| | talk | }} | {{#ifeq:template|template talk | talk | template }} }} }}
| main | = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | book = | other | #default =
}} }} | {{#switch:
{{#if: | {{{demospace}}} | {{#if: | {{#ifeq:| | talk | }} | {{#ifeq:template|template talk | talk | template }} }} }}
| main | = | talk = | user = | wikipedia = | file | image = | mediawiki = | template = | help = | category = | portal = | book = | other | #default =
}} | }}
}} }}
}}