Jump to content

Template:Catlist/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template creates a comma-separated list of categories formatted as links. By default, the last two categories are separated by "and".

Examples

[edit]
Type this To get this
{{Catlist|1989|1990|1991|1992|1993}} 1989, 1990, 1991, 1992 and 1993
{{Catlist|1989|1990|1991|1992|1993|conjunction=comma}} 1989, 1990, 1991, 1992 and 1993
{{Catlist|1989|1990|1991|1992|1993|conjunction=&}} 1989, 1990, 1991, 1992 and 1993
{{Catlist|1989|1990|1991|1992|1993|separator=semicolon}} 1989199019911992; and 1993
{{Catlist|1989|1990|1991|1992|1993|separator=dot}} 1989 · 1990 · 1991 · 1992 · 1993
{{Catlist|1989|1990|1991|1992|1993|separator=dash}} 1989 – 1990 – 1991 – 1992 – 1993
{{Catlist|1989|1990|1991|1992|1993|separator=slash}} 1989 / 1990 / 1991 / 1992 / 1993
{{Catlist|1989|1990|1991|1992|1993|separator=none}} 1989 1990 1991 1992 1993

Parameters

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Catlist in articles based on its TemplateData.

TemplateData for Catlist

This template creates a comma-separated list of pages formatted as links. The last two pages in the list are separated by "and" instead of a comma. Any number of pages may be included in the list.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Namespacenspace

Namsespace on which the page is located, without the trailing colon (":"). Acceptable values are "Talk", "File", "File talk", "Category", "Category talk", "Help", "Help talk", "Wikipedia", "Wikipedia talk", "Portal", "Portal talk", "Template", "Template talk", "Module", "Module talk", "User", "User talk", and anything added in the future.

Example
Template
Stringoptional
Prefix (starting delimiter)delim

Wikicode to insert before each page name. Default is nothing. If this parameter is specified and no suffix parameter is specified, the contents of this parameter would also be used as the suffix.

Unbalanced wikitextoptional
Suffix (ending delimiter)edelim

Wikicode to insert after each page name. If not specified, the default is the value of the prefix parameter.

Unbalanced wikitextoptional
Separatorseparator

The character(s) used to separate specified page names, excluding the last two. Default is comma.

Example
;
Stringoptional
Conjunctionconjunction

The character(s) used to separate the last two items. Default is "and".

Example
or
Stringoptional
Page name 11

no description

Unbalanced wikitextoptional
Page name 22

no description

Unbalanced wikitextoptional
Page name 33

no description

Unbalanced wikitextoptional
Page name 44

no description

Unbalanced wikitextoptional
Page name 55

no description

Unbalanced wikitextoptional
Page name 66

no description

Unbalanced wikitextoptional
Page name 77

no description

Unbalanced wikitextoptional
Page name 88

no description

Unbalanced wikitextoptional
Page name 99

no description

Unbalanced wikitextoptional
Page name 1010

no description

Unbalanced wikitextoptional

See also

[edit]