Template:Wy/syl/Template category/doc

From Wikimedia Incubator

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

Template:Wy/syl/TOC limit

Usage[edit source]

Syntax[edit source]

Basic
{{Wy/syl/Template category
|description=
}}
Basic topical
Syntax of {{Wy/syl/Template category}}
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.

Template:Wy/syl/Hidden begin

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

Template:Wy/syl/Hidden begin

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

Template:Wy/syl/Hidden begin

{{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:

Template:Wy/syl/Hidden begin

{{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).

Template:Wy/syl/Hidden begin

{{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

Template:Wy/syl/Hidden begin

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

Template:Wy/syl/Hidden begin

{{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

Template:Wy/syl/Hidden begin

{{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):

Template:Wy/syl/Hidden begin

{{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:

Template:Wy/syl/Hidden begin

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

Template parameters

ParameterDescriptionTypeStatus
onrightonright rhs

no description

Unknownoptional
typetype

no description

Unknownoptional
containercontainer

no description

Unknownoptional
topictopic

no description

Unknownoptional
descriptiondescription 1

no description

Unknownoptional
ALTTEXTALTTEXT

no description

Unknownoptional
helphelp 2

no description

Unknownoptional
categorycategory

no description

Unknownoptional

See also[edit source]

Template:Wy/syl/Other category-header templates