Mr. Johnson (talk | contribs) (Created page with "<includeonly>Category:Categorization Template</includeonly> {{Template|Categorize}} simplifies the generation of context-sensitive category assignments. ==Usage== It accepts one {{Parameter|mandatory|string}} and one {{Parameter|optional|string}}. * {{Code|1}} is the reference category. * {{Code|2}} (default: {{Code|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 {{Code|<nowiki>{...") |
Mr. Johnson (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
* {{Code|1}} is the reference category. | * {{Code|1}} is the reference category. | ||
* {{Code|2}} (default: {{Code|referencing}}) is used to link between the two. | * {{Code|2}} (default: {{Code|referencing}}) is used to link between the two. | ||
As long as the article is not in the | As long as the article is not in the Template or Stub namespace, it is added to a category named {{Code|<nowiki>{{NAMESPACE}} {{{2}}} {{{1}}}</nowiki>}}. In the case of the main namespace, {{Code|<nowiki>{{NAMESPACE}}</nowiki>}} is replaced with {{Code|Article}} | ||
==Return== | ==Return== | ||
As it is context-sensitive and adds articles to categories, working examples are not practical. | As it is context-sensitive and adds articles to categories, working examples are not practical. |
Latest revision as of 20:26, 22 November 2023
Template:Categorize
simplifies the generation of context-sensitive category assignments.
Usage
It accepts one mandatory string parameter and one optional string parameter.
1
is the reference category.2
(default:referencing
) is used to link between the two.
As long as the article is not in the Template or Stub 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.