Difference between revisions of "Template:ParentArticle"
From Worms Knowledge Base
Explorer09 (Talk | contribs) (now this can be used to auto-categorizing pages) |
CyberShadow (Talk | contribs) (Remove additional new line) |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <div id="contentSub3">(Up to {{{1}}})</div><!-- | + | <noinclude>{{Languages|en|Template:ParentArticle|fr|Template:ParentArticle/fr|de|Template:ParentArticle/de}} |
+ | </noinclude><div id="contentSub3">(Up to {{{1}}})</div><!-- | ||
--><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:Software]] | |
}}}}} }}</includeonly><noinclude> | }}}}} }}</includeonly><noinclude> | ||
---- | ---- | ||
Line 17: | Line 18: | ||
|- | |- | ||
| <code>[[[[People]]]]</code> || [[:Category:People]] | | <code>[[[[People]]]]</code> || [[:Category:People]] | ||
+ | |- | ||
+ | | <code>[[[[Software]]]]</code> || [[:Category:Software]] | ||
|} | |} | ||
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>. |
Latest revision as of 22:08, 9 February 2014
(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:Software |
To exclude a page from being categorized, add category=
or nocat=1
.
{{ParentArticle|[[a target article]]|nocat=1}}