Template:Reflist/doc

Revision as of 15:32, 22 March 2024 by Jayden (talk | contribs) (Created page with "{{Documentation}} __NOTOC__ Use this template to create a reference list in an article with a small font. ==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 width=== The width of columns is controlled using the first unnamed parameter or <code>colwidth</code>. As an exampl...")
(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.

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

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