Template:Reflist

Template page
Revision as of 00:50, 17 January 2023 by Momo (talk | contribs) (Created page with "<includeonly><templatestyles src="Template:Reflist/styles.css" /><div class="reflist <!-- -->{{#if:{{{1|}}}{{{colwidth|}}}|reflist-columns references-column-width}} <!-- -->{{#switch:{{{group|}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=reflist-{{{group}}}}} <!-- -->{{#if:{{{1|}}}|{{#iferror:{{#ifexpr: {{{1|1}}} > 1 }}||{{#switch:{{{1|}}}|1=|2=reflist-columns-2|#default=reflist-columns-3}} }}}}" <!-- end class -->{{#if:{{{1|}}}{{{colwidth|}}}{{{liststy...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template provides formatting and organizational features for footnotes. It encapsulates the <references/> tag used by the Extension:Cite to show the list of references as defined by <ref> tags. It adds support for sizing the column width, groups.

TemplateData

This template displays the list of footnotes at the end of an article and provides additional formatting and organizing options. After hitting "Apply changes" and turning back to VE read mode, you will not see the references list. After hitting "Publish page" and turning back to normal read mode the reference list will reappear with the changes applied, see T53146.

Template parameters

ParameterDescriptionTypeStatus
Columns / Column width1 colwidth

Two modes supported. First mode (deprecated): integer number of fixed columns into which the reference list is to be rendered. Second mode: typographic unit of measurement such as 'em', specifying the width for the reference list columns, e.g. '33em'; spaced '33&nbsp;em' will not be recognized

Default
1 if < 11 references; otherwise 30em
Stringoptional
Liststyleliststyle

Specifies the style used when the reference list is enumerated; accepts any valid CSS value defined for list-style-type

Default
decimal
Stringoptional
Groupgroup

Group is an identifier which restricts the references that are shown. Without this parameter, this template only shows references with no group identifier. With a group identifier specified, only references with a matching group identifier are handled. The rest are left alone.

Stringoptional
List of referencesrefs

Provides a space to define named references for use in the article. References defined in this space are not shown unless used somewhere in the article.

Stringoptional

See also