Template:Reflist/doc

From LabVIEW Wiki
Jump to: navigation, search
This is the documentation page for Template:Reflist.
When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.

This citation template provides formatting and organizational features for footnotes. It encapsulates the <references> tag to show the list of references. It adds support for sizing the column width, groups and list-defined references.

Parameters

There are no required parameters; if none are supplied, a single-column list will be generated if there are fewer than 10 references in the list. If you have more than 10 references, it will use columns of 30em wide if your device allows this.

Optional parameters are:

  • Unnamed parameter (must be the first one if used): the minimum width for each column of references, typically in ems. Syntax (for example) 30em with no space (i.e. not 30 em).
  • refs: used with list-defined references.
  • group: identifies by name the subset of references to be rendered; the value should correspond to that used inline, e.g., {{Reflist|group=groupname}} renders all references with groupname as the group name. There are five pre-defined group names that style the list differently.
  • liststyle: specifies the style used when the reference list is rendered. The default is a numbered list. When set, it will override the style set by the group parameter, without affecting group functionality.

Usage

  • <ref>Content</ref>[1]
  • <ref>Content</ref>[2]

{{reflist}}

  1. Content
  2. Content

You can optionally use the refs parameter to specify list-defined references.

  • <ref name="ref1" />[1]
  • <ref name="ref2" />[2]

{{reflist|refs=
<ref name="ref1">Content</ref>
<ref name="ref2">Content</ref>
}}

  1. Content
  2. Content