Difference between revisions of "Template:ParentArticle"
From Worms Knowledge Base
Explorer09 (Talk | contribs) m |
Explorer09 (Talk | contribs) (now this can be used to auto-categorizing pages) |
||
Line 1: | Line 1: | ||
− | <div id="contentSub3">(Up to {{{1}}})</div><includeonly>{{#if:{{{nocat|}}}||{{# | + | <div id="contentSub3">(Up to {{{1}}})</div><!-- |
+ | |||
+ | --><includeonly>{{#if: {{{nocat|}}} | | {{{category|{{#switch: {{{1|}}} | ||
+ | |[[People]] = [[Category:People|{{#titleparts: {{uc:{{SUBPAGENAME}}}} | | -1 }}]] | ||
+ | |||
+ | }}}}} }}</includeonly><noinclude> | ||
+ | ---- | ||
+ | |||
+ | ===Usage=== | ||
+ | <nowiki>{{ParentArticle|[[a target article]]}}</nowiki> | ||
+ | |||
+ | ===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 | ||
+ | |- | ||
+ | | <code>[[[[People]]]]</code> || [[:Category:People]] | ||
+ | |} | ||
+ | To exclude a page from being categorized, add <code>category=</code> or <code>nocat=1</code>. | ||
+ | <nowiki>{{ParentArticle|[[a target article]]|nocat=1}}</nowiki> | ||
+ | |||
+ | </noinclude> |
Revision as of 14:00, 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 |
To exclude a page from being categorized, add category=
or nocat=1
.
{{ParentArticle|[[a target article]]|nocat=1}}