This wiki is a XML full dump clone of "Heroes Wiki", the main wiki about the Heroes saga that has been shut down permanently since June 1, 2020. The purpose of this wiki is to keep online an exhaustive and accurate database about the franchise.

Template:Nousercat: Difference between revisions

From Heroes Wiki
Jump to navigation Jump to search
Content deleted Content added
imported>MiamiVolts
catch both cases anywhere in cat string, add usage documentation
imported>MiamiVolts
swap order
Line 1: Line 1:
<includeonly>{{#ifeq: {{NAMESPACE}} | User | [[Category:User {{#if:{{#pos:{{{1|}}}|templates}}|templates|{{#if:{{#pos:{{{1|}}}|Templates}}|templates|{{#if:{{#pos:{{{1|}}}|Subtemplates}}|subtemplates|{{#if:{{#pos:{{{1|}}}|subtemplates}}|subtemplates|subpages}}}}}}}}{{#if:{{{2|}}}|{{pipe}}{{{2}}}}}]] | [[Category:{{{1}}}{{#if:{{{2|}}}|{{pipe}}{{{2}}}}}]]}}</includeonly><noinclude>
<includeonly>{{#ifeq: {{NAMESPACE}} | User | [[Category:User {{#if:{{#pos:{{{1|}}}|subtemplates}}|subtemplates|{{#if:{{#pos:{{{1|}}}|Subtemplates}}|subtemplates|{{#if:{{#pos:{{{1|}}}|templates}}|templates|{{#if:{{#pos:{{{1|}}}|Templates}}|templates|subpages}}}}}}}}{{#if:{{{2|}}}|{{pipe}}{{{2}}}}}]] | [[Category:{{{1}}}{{#if:{{{2|}}}|{{pipe}}{{{2}}}}}]]}}</includeonly><noinclude>
==Usage==
==Usage==
Assigns a page to the corresponding user category ([[:Category:User subpages]], [[:Category:User templates]], or [[:Category:User subtemplates]], depending on the name of category specified) (if the page is in userspace) or to the specified category (if the page is not in userspace).
Assigns a page to the corresponding user category ([[:Category:User subpages]], [[:Category:User templates]], or [[:Category:User subtemplates]], depending on the name of category specified) (if the page is in userspace) or to the specified category (if the page is not in userspace).

Revision as of 16:01, 17 January 2008

Usage

Assigns a page to the corresponding user category (Category:User subpages, Category:User templates, or Category:User subtemplates, depending on the name of category specified) (if the page is in userspace) or to the specified category (if the page is not in userspace).

This template allows other templates which would normally assign categories to be used in userspace pages without assigning mainspace categories.

When a page is moved from userspace to the mainspace, all of the previously blocked categories will be assigned.

{{nousercat|<!--name of category-->|<!--OPTIONAL Category sort -->}}