Template:Template category/doc
Appearance
| This is a documentation subpage for Template:Template category It contains usage information, categories and other content that is not part of the original template page. |
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
{{Template category}} suppose dey put for top of categories wey contain template pages and their related subcategories. Dis template dey fill Category:Wikipedia template categories.
How to use am
[edit source]Syntax
[edit source]- Basic
{{Template category
|description=
}}
- Basic topical
| No type | Navbox | Sidebar | Stub |
|---|---|---|---|
{{Template category
|topic=
}}
|
{{Template category
|type=navbox
|topic=
}}
|
{{Template category
|type=sidebar
|topic=
}}
|
{{Template category
|type=stub
|topic=
}}
|
- Full
{{Template category
| onright =
| type =
| container =
| topic =
| description =
| ALTTEXT =
| help =
}}
Parameters and examples
[edit source]You fit use dis template without any parameters.
The pages listed in this category are templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
But di following ones fit make di template give more information:
onright
[edit source]- Use onright (or rhs) to put right-aligned boxes beside di template, like {{Portal}} (to give links to related portals), {{Commons category}} (to give link to same or similar Commons category), and others. If more than one box dey used, make sure di widest one come first (see example below), otherwise dem fit overlap.
{{Template category
| topic = di [[United States]]
| onright = {{Commons category|United States|di United States}}{{Portal|United States}}
}}
Wikimedia Commons has media related to di United States.
Templates relating to di United States. The pages listed in this category are templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
type
[edit source]- Setting type to any of these values go add one ready-made note explaining which type of template di category (but not necessarily di subcategories) suppose contain. Di values be:
- ambox
- campaignbox
- (category header
- category heading
- catheader
- cat header
- cathead)
- conversion
- external link
- formatting
- function
- infobox
message- meta
- module
- (navigation
- navigational
- navbox)
- sidebar
- stub
- sub
- timeline
- (user
- userbox)
- If type be set to something wey no dey inside these values, di default note "Di pages listed in this category be templates" go show without change.
{{Template category |type=sidebar}}
The pages listed in this category are meant to be sidebar templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
container
[edit source]- Set container as true, yes, etc. to show say di category be a container category, meaning say di category suppose contain only subcategories. A note go dey added to tell people make dem no add templates to di template category. Di category go automatically enter Category:Container categories.
{{Template category |container=true}}
Note: Please do not add templates to this category; instead, use one of its subcategories.Template:Category other The pages listed in this category are templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
- Another way instead of using container be to put {{Container category}} after di {{Template category}} template:
{{Template category
| type = ''type''
| topic = ''[[topic]]''
| description = Dis text come from di ''description'' parameter.
}}
{{Container category}}
Templates relating to topic. Dis text come from di description parameter. The pages listed in this category are meant to be type templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
topic
[edit source]- Use topic to add default description wey end with "...relating to topic". Usually topic be one wikilink to di main article connected to di category. Example: United States for Category:United States templates.
{{Template category |topic=di [[United States]]}}
Templates relating to di United States. The pages listed in this category are templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
{{Template category |type=infobox |topic=di [[United States]]}}
Infobox templates relating to di United States. The pages listed in this category are meant to be infobox templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
description
[edit source]- Use description if you want custom description instead of — or if you also use topic, after — di default description above.
{{Template category
| type = navbox
| topic = [[China]]
| description = <br />{{small|For templates wey relate specially to di [[People's Republic of China|People's Republic of China (PRC)]] or di current [[Taiwan|Republic of China (ROC, "Taiwan")]], see respectively {{c|People's Republic of China templates}} and {{c|Taiwan templates}}.}}
}}
Navbox templates relating to China. For templates wey relate specially to di People's Republic of China (PRC) or di current Republic of China (ROC, "Taiwan"), see respectively People's Republic of China templates and Taiwan templates. The pages listed in this category are meant to be navigation templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
{{Template category |description=Dis text come from di ''description'' parameter.}}
Dis text come from di description parameter. The pages listed in this category are templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. To add a template to this category:
|
help
[edit source]- Use help to replace di instruction wey dey tell people how to add template to category (di second paragraph of "Further template category notes" section):
{{Template category |help=Dis text come from di ''help'' parameter.}}
The pages listed in this category are templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. Dis text come from di help parameter. |
- To remove di default instructions, set help to no:
{{Template category |help=no}}
The pages listed in this category are templates.
This page is part of Wikipedia's administration and not part of the encyclopedia.
Further template category notes
This category contains pages in the template namespace. It should not be used to categorize articles or pages in other namespaces. |
Tracking category
[edit source]Uses wey get topic or description parameter dey tracked:
TemplateData
[edit source]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Template category in articles based on its TemplateData.
TemplateData for Template category
Dis template dey work as header for category pages wey contain templates.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| onright | onright rhs | no description | Unknown | optional |
| type | type | no description
| String | optional |
| E be container category? | container | Whether di category be a "container category" wey suppose only contain subcategories. | Boolean | optional |
| topic | topic | no description | Unknown | optional |
| description | description 1 | no description | Unknown | optional |
| ALTTEXT | ALTTEXT | no description | Unknown | optional |
| help | help 2 | no description | Unknown | optional |
| category | category | no description | Unknown | optional |