(Created page with "{{Documentation}} <includeonly><onlyinclude>[[Category:{{#ifeq:{{NAMESPACENUM}}|0|Article|{{NAMESPACE}}}} {{{2|referencing}}} {{{1|}}}]]</onlyinclude></includeonly>") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude>[[Category:{{#ifeq:{{NAMESPACENUM}}|0|Article|{{NAMESPACE}}}} {{{2|referencing}}} {{{1|}}}]]</onlyinclude></includeonly> | <includeonly><onlyinclude>{{#ifeq:{{NAMESPACE}}|Template||[[Category:{{#ifeq:{{NAMESPACENUM}}|0|Article|{{NAMESPACE}}}}s {{{2|referencing}}} {{{1|}}}]]}}</onlyinclude></includeonly> | ||
Revision as of 14:34, 23 October 2022
Template:Categorize simplifies the generation of context-sensitive category assignments.
Usage
It accepts one mandatory string parameter and one optional string parameter.
1is the reference category.2(default:referencing) is used to link between the two.
As long as the article is not in the template namespace, it is added to a category named {{NAMESPACE}} {{{2}}} {{{1}}}. In the case of the main namespace, {{NAMESPACE}} is replaced with Article
Return
As it is context-sensitive and adds articles to categories, working examples are not practical.The documentation above was transcluded from Template:Categorize/Documentation. [edit]
