Template:Wy/syl/Template category/doc
ꠁꠈꠣꠘ ꠟꠦꠈꠤꠀꠔꠀꠞ ꠟꠉꠞꠙꠣꠔꠣ Template:Wy/syl/Template category ꠟꠣꠉꠤ ⁕ ꠁꠈꠣꠘꠅ ꠛꠦꠛꠀꠞꠞ ꠘꠤꠅꠝꠇꠣꠘꠥꠘ ꠖꠦꠅꠀ ꠀꠍꠦ ꠨ ꠀꠞ ꠀꠞꠎꠣꠔ ꠎꠤꠘꠤꠡ ꠎꠦꠔꠣ ꠀꠡꠟꠔꠣꠞ ꠅꠋꠡ ꠘꠣꠄ template ꠙꠣꠔꠣ ⁕ |
This template is used in many pages and changes might be widely seen. Будь ласка, перевіряйте будь-які зміни на підсторінках /sandbox та /testcases, або в особистому просторі. Consider discussing changes on the talk page before implementing them. |
{{Wy/syl/Template category}}
should be placed at the top of categories that contain template pages and their related subcategories. This template populates Category:Wy/syl/Wikipedia template categories.
Usage[edit source]
Syntax[edit source]
- Basic
{{Wy/syl/Template category
|description=
}}
- Basic topical
No type | Navbox | Sidebar | Stub |
---|---|---|---|
{{Wy/syl/Template category
|topic=
}}
|
{{Wy/syl/Template category
|type=navbox
|topic=
}}
|
{{Wy/syl/Template category
|type=sidebar
|topic=
}}
|
{{Wy/syl/Template category
|type=stub
|topic=
}}
|
- Full
{{Wy/syl/Template category
| onright =
| type =
| container =
| topic =
| description =
| ALTTEXT =
| help =
}}
Parameters and examples[edit source]
The template may be used without any parameters.
Template:Wy/syl/Hidden begin You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
The following, however, may be used to make the template more informative:
onright[edit source]
- Use onright (or rhs) to place right-aligned boxes beside the template such as {{Wy/syl/Portal}} (to provide link/s to related portal/s), {{Wy/syl/Commons category}} (to provide a link to the same or a similarly-named Commons category), etc. If more than one box is included, ensure the widest one appears first (see example below) otherwise overlapping may occur.
{{Wy/syl/Template category
| topic = the [[United States]]
| onright = {{Wy/syl/Commons category|United States|the United States}}{{Wy/syl/Portal|United States}}
}}
You can view and copy the source of this page: Template:Wy/syl/Commons categoryTemplate:Wy/syl/Portal Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
type[edit source]
- Setting type to one of the following values adds a preset note as to which type of template the category (but not necessarily its subcategories) is meant to contain. The values are:
- 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 is set to something other than one of these values, the default "The pages listed in this category are templates" note appears unmodified.
{{Wy/syl/Template category |type=sidebar}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
container[edit source]
- Set container as true, yes, etc. to identify the category as a container category, i.e. a category meant to contain only subcategories. A note requesting that no templates are added to the template category is then included. The category is automatically added to Category:Container categories.
{{Wy/syl/Template category |container=true}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
- An alternative to using container is to place {{Wy/syl/Container category}} after the {{Wy/syl/Template category}} template:
{{Wy/syl/Template category
| type = ''type''
| topic = ''[[topic]]''
| description = This text supplied by the ''description'' parameter.
}}
{{Wy/syl/Container category}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Container category Template:Wy/syl/Hidden end
topic[edit source]
- Use topic to add a default description ending "...relating to topic", where topic is usually a wikilink to the main article associated with the category (e.g. United States for the Category:United States templates).
{{Wy/syl/Template category |topic=the [[United States]]}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
{{Wy/syl/Template category |type=infobox |topic=the [[United States]]}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
description[edit source]
- Use description if a customised description is needed instead of – or, if topic also used, to follow – the default description above.
{{Wy/syl/Template category
| type = navbox
| topic = [[China]]
| description = <br />{{Wy/syl/Small|For templates relating specifically to the [[People's Republic of China|People's Republic of China (PRC)]] or the current [[Taiwan|Republic of China (ROC, "Taiwan")]], see, respectively, {{Wy/syl/C|People's Republic of China templates}} and {{Wy/syl/C|Taiwan templates}}.}}
}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
{{Wy/syl/Template category |description=This text is supplied by the ''description'' parameter.}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
help[edit source]
- Use help to replace the instructions on adding a template to the category (second paragraph of the "Further template category notes" section):
{{Wy/syl/Template category |help=This text supplied by the ''help'' parameter.}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
- To omit the default instructions, set help to no:
{{Wy/syl/Template category |help=no}}
You can view and copy the source of this page:
Template:Wy/syl/Cmbox Template:Wy/syl/Hidden end
Tracking category[edit source]
Uses with a topic or description parameter are tracked:
TemplateData[edit source]
Template:Wy/syl/TemplateData header
This template is used as a header for category pages that contain templates.
Parameter | Description | Type | Status | |
---|---|---|---|---|
onright | onright rhs | no description | Unknown | optional |
type | type | no description | Unknown | optional |
container | container | no description | Unknown | 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 |
See also[edit source]
Template:Wy/syl/Other category-header templates