Open main menu

Changes

no edit summary
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE. -->

==Usage==
<pre>{{Parent-only stub category
|article=
|category=
|category type=
|WikiProject=
}}</pre>

For example:

<pre>{{Parent-only stub category
|article=Asian [[association football]] biographies
|category=Football (soccer) players by nationality
}}</pre>

will show:

{{Parent-only stub category|article=Asian [[association football]] biographies}}<!-- Removed cat so it doesn't show in it -->

The {{para|category type}} parameter inserts additional text between the phrases "This category is for" and "[[Wikipedia:Stub|stub articles]] relating to ...", so using {{para|category type|biographical}} will give "This category is for biographical [[Wikipedia:Stub|stub articles]] relating to ...". This parameter is only valid if {{para|article}} is also set.

There is also an optional parameter {{para|WikiProject}} which links to a relevant WikiProject page. Again, this is only valid if {{para|article}} is also set. For example:

<nowiki>{{</nowiki>Parent-only stub category
|article=<nowiki>the [[Commonwealth of Massachusetts]]</nowiki>
|category=Massachusetts
|category type=biographical
|WikiProject=Massachusetts
<nowiki>}}</nowiki>

will show:
{{parent-only stub category|article=the [[Commonwealth of Massachusetts]] |category type=biographical |WikiProject=Massachusetts}}

===Missing parameters===
If the {{para|category}} parameter is blank or absent, a hidden link to [[Wikipedia:WikiProject Stub sorting/Tracker for stub categories with no permcats|this page]] is added; such category pages are listed [[Special:WhatLinksHere/Wikipedia:WikiProject Stub sorting/Tracker for stub categories with no permcats|here]].

===Incorrect parameters===
If the unrecognised parameter {{para|newstub}} is present and non-blank, a hidden link to [[Wikipedia:WikiProject Stub sorting/Tracker for parent stub categories with stub tag|this page]] is added; such category pages are listed [[Special:WhatLinksHere/Wikipedia:WikiProject Stub sorting/Tracker for parent stub categories with stub tag|here]].

==See also==
{{namespace category}}

<includeonly><!--
++++ PLEASE ADD CATEGORIES BELOW THIS LINE, THANK YOU. -->
[[Category:Stub categories| ]]
[[Category:Category namespace templates]]
[[Category:WikiProject Stub sorting templates]]
</includeonly>
Anonymous user