Difference between revisions of "Template:ParentArticle"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (now this can be used to auto-categorizing pages) |
Explorer09 (Talk | contribs) (trying Category:Softwares - please revert if it doesn't look well) |
||
Line 3: | Line 3: | ||
--><includeonly>{{#if: {{{nocat|}}} | | {{{category|{{#switch: {{{1|}}} | --><includeonly>{{#if: {{{nocat|}}} | | {{{category|{{#switch: {{{1|}}} | ||
|[[People]] = [[Category:People|{{#titleparts: {{uc:{{SUBPAGENAME}}}} | | -1 }}]] | |[[People]] = [[Category:People|{{#titleparts: {{uc:{{SUBPAGENAME}}}} | | -1 }}]] | ||
− | + | |[[Software]] = [[Category:Softwares]] | |
}}}}} }}</includeonly><noinclude> | }}}}} }}</includeonly><noinclude> | ||
---- | ---- | ||
Line 17: | Line 17: | ||
|- | |- | ||
| <code>[[[[People]]]]</code> || [[:Category:People]] | | <code>[[[[People]]]]</code> || [[:Category:People]] | ||
+ | |- | ||
+ | | <code>[[[[Software]]]]</code> || [[:Category:Softwares]] | ||
|} | |} | ||
To exclude a page from being categorized, add <code>category=</code> or <code>nocat=1</code>. | To exclude a page from being categorized, add <code>category=</code> or <code>nocat=1</code>. |
Revision as of 14:11, 9 July 2010
(Up to {{{1}}})
Usage
{{ParentArticle|[[a target article]]}}
Categorization
Note that this template add pages to categories if the parameter is one of the following:
Parameter | Category to which the pages will be added |
---|---|
[[People]] |
Category:People |
[[Software]] |
Category:Softwares |
To exclude a page from being categorized, add category=
or nocat=1
.
{{ParentArticle|[[a target article]]|nocat=1}}