Template:Catlist/doc

From blackwiki
Jump to navigation Jump to search

Usage

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

Examples

Type this To get this
{{Catlist|1989|1990|1991|1992|1993}} Template:Pagelist
{{Catlist|1989|1990|1991|1992|1993|conjunction=comma}} Template:Pagelist
{{Catlist|1989|1990|1991|1992|1993|conjunction=&}} Template:Pagelist
{{Catlist|1989|1990|1991|1992|1993|separator=semicolon}} Template:Pagelist
{{Catlist|1989|1990|1991|1992|1993|separator=dot}} Template:Pagelist
{{Catlist|1989|1990|1991|1992|1993|separator=dash}} Template:Pagelist
{{Catlist|1989|1990|1991|1992|1993|separator=slash}} Template:Pagelist
{{Catlist|1989|1990|1991|1992|1993|separator=none}} Template:Pagelist

Parameters

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

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