Template:Reflist/doc

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:08, 13 October 2024 (Created page with "{{Documentation}} __NOTOC__ Use this template to create a reference list in an article with a small font. For details on how to use references, see the reference guide. ==Usage== The basic usage requires no parameters: <pre>{{Reflist}}</pre> ===Quotes=== If the references contain a large number of quotes, to hide the quotes (and only the quotes) add <code>quotes=no</code>: <pre>{{Reflist|quotes=no}}</pre> ===Column wi..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Reflist.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Reflist invokes function reflist in Module:References using Lua.

Use this template to create a reference list in an article with a small font. For details on how to use references, see the reference guide.

Usage

The basic usage requires no parameters:

{{Reflist}}

Quotes

If the references contain a large number of quotes, to hide the quotes (and only the quotes) add quotes=no:

{{Reflist|quotes=no}}

Column width

The width of columns is controlled using the first unnamed parameter or colwidth. As an example, using {{Reflist|30em}} will allow the browser to dynamically choose the number of columns with widths of 30em. The width supports and of the standard CSS length units: px, pt, em, %. Choose a column width that's appropriate for the average width of the references on the page.

Groups

To list references in a group, add group=groupname:

{{Reflist|group=groupname}}

See here for more on reference groups.

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Creates a reference list in an article.

Template parameters

ParameterDescriptionTypeStatus
Groupgroup

Limits the references listed to a specified group.

Stringoptional
Quotesquotes

Hides quotes inside the reference list when set to "no".

Default
yes
Booleanoptional
Column width1 colwidth

Width of the columns. Supports standard CSS length units as input.

Default
1 if less than 11 references; otherwise 30em.
Example
25em
Lineoptional