Template:Stub category

☆ Save On Wikipedia ↗
Template documentation


Usage

{{Stub category
|article=
|newstub=
|category=
|category type=
|WikiProject=
|message=
}}

For example:

{{Stub category
|article=people in Japanese [[football (soccer)]], including football players, managers, coaches, etc.
|newstub=Japan-footy-bio-stub
|category=Japanese footballers
|message=
}}

will show:

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 ...".

Optional parameters

WikiProject

|WikiProject= links to a relevant WikiProject page. For example:

{{Stub category
|article=[[Massachusetts]]
|newstub=Massachusetts-stub
|category=Massachusetts
|category type=biographical
|WikiProject=Massachusetts
}}

will show:

message

|message= adds a message displayed below the main output of the template, but above the table of contents (TOC) which will be automatically generated by {{Automatic category TOC}} if the category contains enough pages.

This ensures that the message doesn't get tangled up in the TOC.

{{Stub category
|article=people in Japanese [[football (soccer)]], including football players, managers, coaches, etc.
|newstub=Japan-footy-bio-stub
|category=Japanese footballers
|message=This category is only people involved in association football (soccer). Please do NOT use this stub tag for players of other types of football, e.g. Gaelic football, Australian rules football, rugby union.
}}

Tracking categories

Certain cases of incorrect usage are tracked:

  • the |newstub= parameter is blank or absent;
  • the |category= parameter is blank or absent.

See Category:Stub categories needing attention (population: 6,870)

Usage of the {{{message}}} parameter is also tracked.
See Category:Stub categories with message parameter (population: 117)

Fixing P-type categories

These are categories that lack a 'primary category' that is not a stub category. To fix this, add the primary category to the "category" parameter in the template; this will place the category into the newly specified parent category and remove the category from the "P" subsection in the "Stub categories needing attention" category. Simply adding the new category to the existing list of categories will properly categorize the category, but it will not remove the category from the "attention" category.

TemplateData

For stub categories

Template parameters

ParameterDescriptionTypeStatus
Topicarticle

What the stub category is about

Example
statisticians from the United States
Contentrequired
Stub templatenewstub

Name of the stub template that adds stubs to this stub category

Example
US-statistician-stub
Templaterequired
Categorycategory

The name of a category to add the stub category to (without the "Category:" prefix)

Example
American statisticians
Stringsuggested
Category typecategory type

Goes between "This category is for" and "stub articles" if present

Example
biographical
Contentoptional
WikiProjectWikiProject

A relevant WikiProject for people who maintain articles in this stub category

Example
Mathematics
Stringoptional
Messagemessage

An explanatory message to be displayed. May contain wikitext formatting.

Example
This category is only about human beings
Contentoptional

See also

Other category-header templates