Template:Parent-only stub category: Difference between revisions
Funandtrvl (talk | contribs) m mv cats to /doc |
allow |category type= and |WikiProject= per Wikipedia talk:WikiProject Stub sorting#Template:Parent-only stub category missing parameters |
||
Line 3: | Line 3: | ||
| image = [[File:Wiki letter s.svg|40px]] |
| image = [[File:Wiki letter s.svg|40px]] |
||
| style = text-align:center; |
| style = text-align:center; |
||
| text = {{#if:{{{article|}}}|This category is for [[Wikipedia:Stub|stub articles]] relating to {{{article}}}. You can help by expanding them. <br>}}This stub category is a '''parent-only''' category, that is, all stubs within it should be in one of its subcategories, or marked with a template which may eventually have a separate subcategory. To add an article to this category, please use the appropriate template for one of its subcategories.<includeonly>{{#if:{{{newstub|}}}|[[Wikipedia:WikiProject Stub sorting/Tracker for parent stub categories with stub tag| ]]}}</includeonly>}}<includeonly>{{#if:{{{category|}}}|[[Category:{{{category}}}|µ{{PAGENAME}}]]|[[Wikipedia:WikiProject Stub sorting/Tracker for stub categories with no permcats| ]]}}[[Category:Stub categories|{{PAGENAME}}]]</includeonly><noinclude> |
| text = {{#if:{{{article|}}}|This category is for {{{category type|}}} [[Wikipedia:Stub|stub articles]] relating to {{{article}}}. You can help by expanding them. {{#if:{{{WikiProject|}}} |
||
|Please see [[Wikipedia:WikiProject {{{WikiProject}}}]]. |
|||
}}<br>}}This stub category is a '''parent-only''' category, that is, all stubs within it should be in one of its subcategories, or marked with a template which may eventually have a separate subcategory. To add an article to this category, please use the appropriate template for one of its subcategories.<includeonly>{{#if:{{{newstub|}}}|[[Wikipedia:WikiProject Stub sorting/Tracker for parent stub categories with stub tag| ]]}}</includeonly>}}<includeonly>{{#if:{{{category|}}}|[[Category:{{{category}}}|µ{{PAGENAME}}]]|[[Wikipedia:WikiProject Stub sorting/Tracker for stub categories with no permcats| ]]}}[[Category:Stub categories|{{PAGENAME}}]]</includeonly><noinclude> |
|||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
</noinclude> |
Revision as of 00:19, 12 February 2012
Usage
{{Parent-only stub category |article= |category= |category type= |WikiProject= }}
For example:
{{Parent-only stub category |article=Asian [[association football]] biographies |category=Football (soccer) players by nationality }}
will show:
This category is for stub articles relating to Asian association football biographies. You can help by expanding them. This stub category is a parent-only category, that is, all stubs within it should be in one of its subcategories, or marked with a template which may eventually have a separate subcategory. To add an article to this category, please use the appropriate template for one of its subcategories. |
The |category type=
parameter inserts additional text between the phrases "This category is for" and "stub articles relating to ...", so using |category type=biographical
will give "This category is for biographical stub articles relating to ...". This parameter is only valid if |article=
is also set.
There is also an optional parameter |WikiProject=
which links to a relevant WikiProject page. Again, this is only valid if |article=
is also set. For example:
{{Parent-only stub category |article=the [[Commonwealth of Massachusetts]] |category=Massachusetts |category type=biographical |WikiProject=Massachusetts }}
will show:
This category is for biographical stub articles relating to the Commonwealth of Massachusetts. You can help by expanding them. Please see Wikipedia:WikiProject Massachusetts. This stub category is a parent-only category, that is, all stubs within it should be in one of its subcategories, or marked with a template which may eventually have a separate subcategory. To add an article to this category, please use the appropriate template for one of its subcategories. |
Missing parameters
If the |category=
parameter is blank or absent, the category is categorised to Category:Stub categories needing attention with sortkey Q.
Incorrect parameters
If the unrecognised parameter |newstub=
is present and non-blank, the category is categorised to Category:Stub categories needing attention with sortkey N.