Template:Reflist/doc
Lua error in Module:Effective_protection_level at line 64: attempt to index field 'ext' (a nil value). {{#ifeq:doc |doc
|
{{#ifeq:show |show
|
| icon | This is a documentation subpage for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if:|
|{{#ifexist:Template:Reflist
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
| File:Lua-Logo.svg | This template uses Lua: |
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
| File:Edit-copy.svg | See this information on copying this template and modifying it for use on another wiki. |
| Warning | This template is used on approximately 6,520,000 pages, or roughly 463068% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
| File:Cascade-protection-shackle.svg | This template can only be edited by administrators because it is transcluded onto one or more cascade-protected pages. |
| {{#if: |[[File:{{{image}}}|40px|Notice|alt=]]}} | {{#if: | ' }}This page gives technical details for the {{reflist}} template. For a full overview of this template in use, see Help:Footnotes. | {{#if: |{{{imageright}}} |{{#if: |Error: no shortcuts were specified and the |msg= parameter was not set.}} }} |
{{#ifeq:Template:Editnotices|{{ safesubst:#if:
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Reflist/doc}}|1}}
| {{ safesubst:#if:|{{{1}}}|Template:Reflist/doc}}
}}|}}
This citation template provides formatting and organizational features for footnotes. It encapsulates the {{#switch:s
|c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|references|references}}{{#if:| {{{attribs}}}}} }}{{#switch:s |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:references|!--||>}}... }}{{#switch:s |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:references|!--|-->|</references>}} }}tag used by the Cite{{#ifeq: |bug| bug list}} MediaWiki extension to show the list of references as defined by{{#switch:o |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|ref|ref}}{{#if:| {{{attribs}}}}} }}{{#switch:o |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:ref|!--||>}}... }}{{#switch:o |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:ref|!--|-->|</ref>}} }}tags. 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 30 em 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)
|{{SAFESUBST:#if:|=}}30emwith no space (i.e. not|{{SAFESUBST:#if:|=}}30 em). Note that this replaces colwidth—see § Obsolete parameters. - refs: used with List-defined references. This parameter is not compatible with VisualEditor, but the equivalent syntax using
{{#switch:pair
|c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|references|references}}{{#if:| {{{attribs}}}}} }}{{#switch:pair |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:references|!--||>}}... }}{{#switch:pair |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:references|!--|-->|</references>}} }}is. It is recommended to use{{#switch:pair |c|close = |e|empty|s|single|v|void |o|open |p|pair = <{{#if:|references|references}}{{#if:| {{{attribs}}}}} }}{{#switch:pair |c|close = |e|empty|s|single|v|void = /> |o|open = > |p|pair = {{#ifeq:references|!--||>}}... }}{{#switch:pair |e|empty|s|single|v|void |o|open = |c|close |p|pair = {{#ifeq:references|!--|-->|</references>}} }}instead for 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 ({{#switch:o
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|ref|ref}}{{#if:group="groupname"| group="groupname"}}
}}{{#switch:o
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:o
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}). There are five pre-defined group names that style the list differently. See § Grouped references below.
- 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
|{{SAFESUBST:#if:group|group=}}parameter, without affecting group functionality. See § List styles below.
Usage
| Markup | Renders as
}}{{#if:Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}}| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}} | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}}</syntaxhighlight> | pre = Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
== References ==
{{reflist}}
|
#default = < style="">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}}</> }} | padding:;}} "| Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> {{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. | other | #default = References
}} {{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}{{#if:| 1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
|
style="column-width: calc( 0.9 * {{{1}}} );"}} | style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references> |
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
}}{{#if:| | |
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }} |
| Markup | Renders as
}}{{#if:Lorem ipsum. Lorem ipsum dolor sit amet. == References == {{refbegin}} * reference 1 * reference 2 {{refend}}| | |||||||||||||||
| padding:;}} "| {{#switch:
|
none = Lorem ipsum. Lorem ipsum dolor sit amet. == References == {{refbegin}} * reference 1 * reference 2 {{refend}} | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Lorem ipsum. Lorem ipsum dolor sit amet. == References == {{refbegin}} * reference 1 * reference 2 {{refend}}</syntaxhighlight> | pre = Lorem ipsum. Lorem ipsum dolor sit amet.
== References ==
{{refbegin}}
* reference 1
* reference 2
{{refend}}
|
#default = < style="">Lorem ipsum. Lorem ipsum dolor sit amet. == References == {{refbegin}} * reference 1 * reference 2 {{refend}}</> }} | padding:;}} "| Lorem ipsum. Lorem ipsum dolor sit amet. {{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. | other | #default = References
}} 1 }}
|
30em}} | column-width: 30em
}}
}}
|
{{#if: | column-width: 30em
}} }}">
}}{{#if:| | |
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }} |
| Markup | Renders as
}}{{#if:Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}} {{refbegin}} * reference 1 * reference 2 {{refend}}| | ||||||||||||||||||
| padding:;}} "| {{#switch:
|
none = Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}} {{refbegin}} * reference 1 * reference 2 {{refend}} | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}} {{refbegin}} * reference 1 * reference 2 {{refend}}</syntaxhighlight> | pre = Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
== References ==
{{reflist}}
{{refbegin}}
* reference 1
* reference 2
{{refend}}
|
#default = < style="">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist}} {{refbegin}} * reference 1 * reference 2 {{refend}}</> }} | padding:;}} "| Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> {{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. | other | #default = References
}} {{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}{{#if:| 1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
|
style="column-width: calc( 0.9 * {{{1}}} );"}} | style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references> |
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
1 }}
|
30em}} | column-width: 30em
}}
}}
|
{{#if: | column-width: 30em
}} }}">
}}{{#if:| | |
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }} |
Columns
{{reflist|30em}} (for example) instructs the browser to create as many columns as possible (of width at least 30 em, in this example) given the width of the display window. (Units supported are em, ex, in, cm, mm, pt, pc, px, but em is almost always used.) There must not be a space between the number and the unit. Percent is not supported.
Choose a width appropriate to the typical width of the references:
- Automatic columns (default when no width is specified): Where there are only a few {{#ifeq:y|y|footnotes|Footnotes}}; see, e.g., Silver State Arena (23:05, 28 December 2012)
- 30em: Where there are many footnotes plus a page-width Bibliography subsection: see, e.g., Ebola virus disease (02:02, 12 January 2018)
- 20em: Where {{#ifeq:y|y|shortened|Shortened}} footnotes are used; see, e.g., NBR 224 and 420 Classes (13:32, 1 August 2011).
Example
| Markup | Renders as
}}{{#if:Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist|15em}}| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist|15em}} | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist|15em}}</syntaxhighlight> | pre = Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>
== References ==
{{reflist|15em}}
|
#default = < style="">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> == References == {{reflist|15em}}</> }} | padding:;}} "| Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref> {{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. | other | #default = References
}} {{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}{{#if:15em| 1 }}|mw-references-columns|{{#switch:15em|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if: 15em
|
style="column-width: calc( 0.9 * 15em );"}} | style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references> |
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
}}{{#if:| | |
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }} |
The syntax {{reflist|2}} (for example), which specifies two columns of equal width regardless of the available display width, is deprecated. When you use 1 the template produces a single column; using 2 will act as if you specified 30em; using higher column counts will act as if you specified 25em.
List-defined references
A list of references defined within {{reflist}} using the |{{SAFESUBST:#if:refs|refs=}} parameter can be converted to use the {{#switch:pair
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|references|references}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:references|!--||>}}...
}}{{#switch:pair
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:references|!--|-->|</references>}}
}} container.
This template's |{{SAFESUBST:#if:refs|refs=}} syntax is not compatible with the VisualEditor, and {{#switch:pair
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|references|references}}{{#if:| {{{attribs}}}}}
}}{{#switch:pair
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:references|!--||>}}...
}}{{#switch:pair
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:references|!--|-->|</references>}}
}} should be used instead.
Grouped references
References can be grouped into separate sections (for explanatory notes, table references, and the like) via group=:
{{#switch:open
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|ref|ref}}{{#if:group="groupname"| group="groupname"}}
}}{{#switch:open
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:open
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}
where groupname is (for example) notes or sources. The group name need not be enclosed in quotes; this differs from the footnote marker where quotes are required if the group name includes a space.
Each group used in the article must have a matching reference list:
{{Reflist|group=groupname}}
Predefined groups
There are predefined group names that automatically set the labels in the footnote markers and the reference list to other styles. Thus, setting {{reflist|group=lower-alpha}} will set the group to lower-alpha and will style the reference list with lower alpha characters. The matching footnote marker can be formed by {{#switch:pair
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|ref|ref}}{{#if:group="lower-alpha"| group="lower-alpha"}}
}}{{#switch:pair
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:ref|!--||>}}...
}}{{#switch:pair
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:ref|!--|-->|</ref>}}
}}. This is made easier by a series of templates to set the group/label styles for the footnote marker and the reference list:
{{#section:Help:Footnotes|pregrouptable}}
List styles
As noted in § Predefined groups, there are predefined groups that automatically add list styling. Using the listed templates is more convenient than using |{{SAFESUBST:#if:liststyle|liststyle=}}.
Reference lists are by default numbered lists. By using the |{{SAFESUBST:#if:liststyle|liststyle=}} parameter, you can control how the list is rendered. For example, using |{{SAFESUBST:#if:liststyle|liststyle=}}upper-roman will result in references being labeled with Roman numerals instead of decimal numbers. The parameter accepts any valid CSS value defined for list-style-type.
It is possible to use |{{SAFESUBST:#if:liststyle|liststyle=}} so that the labels for the footnote marker and the reference list marker differ. This should be used with care as it can be confusing to readers. For example:
| Markup | Renders as
}}{{#if:<ref group="note">Reference</ref> {{reflist|group=note|liststyle=lower-alpha}} | | |||||||
| padding:;}} "| {{#switch:
|
none = <ref group="note">Reference</ref> {{reflist|group=note|liststyle=lower-alpha}} | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"><ref group="note">Reference</ref> {{reflist|group=note|liststyle=lower-alpha}} </syntaxhighlight> | pre = <ref group="note">Reference</ref>
{{reflist|group=note|liststyle=lower-alpha}}
|
#default = < style=""><ref group="note">Reference</ref> {{reflist|group=note|liststyle=lower-alpha}} </> }} | padding:;}} "| <ref group="note">Reference</ref> {{#switch:lower-alpha|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}{{#if:| 1 }}|mw-references-columns|{{#switch:|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if:
|
style="column-width: calc( 0.9 * {{{1}}} );"}} | style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="note" responsive="0"></references> |
<references group="note" responsive="1"></references>
}}{{#switch:lower-alpha|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
}}{{#if:| |
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | |||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }} |
Interaction with images
{{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other
| #default =
}} In the unusual case of an image being placed to the left of a reference list, layout problems may occur on some browsers. This can be prevented by using the columns feature.
Technical details
Font size
The font size should reduce to 90% for almost all browsers, but may appear to show at 100% for very old browsers, such as early versions of Internet Explorer.<ref group="general" name="fontsize" /> As of December 21, 2010, the standard {{#switch:single
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|references|references}}{{#if:| {{{attribs}}}}}
}}{{#switch:single
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:references|!--||>}}...
}}{{#switch:single
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:references|!--|-->|</references>}}
}} tag has the same font styling. The smaller font may be disabled through Preferences{{#switch: gadgets
|0 |user profile= → User profile |1 |appearance= → Appearance |2 |date and time= → Date and time |3 |editing= → Editing |4 |recent changes= → Recent changes |5 |watchlist= → Watchlist |6 |search= → Search |8 |pending changes= → Pending changes |9 |gadgets= → ⧼prefs-gadgets⧽ |10 |notifications= → ⧼prefs-echo⧽ |11 |beta|beta features= → ⧼prefs-betafeatures⧽ |7 |12 |misc= → Misc |banners= → ⧼prefs-centralnotice-banners⧽
}}{{#if:⧼gadget-NoSmallFonts⧽| → {{#switch:Gadgets/⧼gadget-NoSmallFonts⧽ |User profile/User profile=User profile |User profile/Basic information=Basic information |User profile/Internationalisation=Internationalisation |User profile/Signature=Signature |User profile/Email options=Email options |User profile/QuickSurvey extension=⧼prefs-quicksurveyext⧽ |User profile/User page=⧼prefs-userpage⧽ |User profile/Newcomer editor features=⧼prefs-homepage⧽ |User profile/Invitation lists=⧼prefs-campaignevents-invitations⧽
|Appearance/Appearance=Appearance |Appearance/Skin=Skin |Appearance/Skin preferences=Skin preferences |Appearance/Reading preferences=⧼prefs-reading⧽ |Appearance/Date format=Date format |Appearance/Time offset=Time offset |Appearance/Files=Files |Appearance/Diffs=Diffs |Appearance/Advanced options=Advanced options |Appearance/Math=⧼prefs-math⧽ |Appearance/Languages=⧼prefs-languages⧽
|Editing/Editing=Editing |Editing/General options=General options |Editing/Editor=Editor |Editing/Preview=Preview |Editing/Accessibility=⧼prefs-accessibility⧽ |Editing/Discussion pages=Discussion pages |Editing/Developer tools=Developer tools
|Recent changes/Recent changes=Recent changes |Recent changes/Display options=Display options |Recent changes/Advanced options=Advanced options |Recent changes/Changes shown=Changes shown |Recent changes/Pending changes=⧼prefs-flaggedrevs-ui⧽ |Recent changes/Revision scoring on Recent changes and Related changes=⧼prefs-ores-rc⧽
|Watchlist/Watchlist=Watchlist |Watchlist/Edit watchlist=Edit watchlist |Watchlist/Display options=Display options |Watchlist/Advanced options=Advanced options |Watchlist/Changes shown=Changes shown |Watchlist/Watched pages=Watched pages |Watchlist/Token=Token |Watchlist/Revision scoring on Watchlist and Contributions=⧼prefs-ores-wl⧽
|Search/Search=Search |Search/General=General |Search/Search completion=⧼prefs-completion⧽ |Search/Advanced Search=⧼prefs-advancedsearch⧽
|Gadgets/Gadgets=⧼prefs-gadgets⧽ |Gadgets/Browsing=⧼gadget-section-browsing⧽ |Gadgets/Watchlist=⧼gadget-section-watchlist⧽ |Gadgets/Editing=⧼gadget-section-editing⧽ |Gadgets/Appearance=⧼gadget-section-appearance⧽ |Gadgets/Advanced=⧼gadget-section-advanced⧽ |Gadgets/Maintenance and administration=⧼gadget-section-maintenance⧽ |Gadgets/Testing and development=⧼gadget-section-test⧽ |Gadgets/Template gadgets=⧼gadget-section-template-gadgets⧽ |Gadgets/Utility modules=⧼gadget-section-modules⧽
|Banners/Banners=⧼prefs-centralnotice-banners⧽ |Banners/Banner types to display=⧼prefs-centralnotice-display-banner-types⧽
|Beta features/Beta features=⧼prefs-betafeatures⧽
|Notifications/Notifications=⧼prefs-echo⧽ |Notifications/Email options=⧼prefs-emailsettings⧽ |Notifications/Notify me about these events=⧼prefs-echosubscriptions⧽ |Notifications/Cross-wiki notifications=⧼prefs-echocrosswiki⧽ |Notifications/Muted users=⧼prefs-blocknotificationslist⧽ |Notifications/Muted pages for page link notifications=⧼prefs-mutedpageslist⧽
|#default = ⧼gadget-NoSmallFonts⧽ }}|}}{{#if:| = {{{3}}}|{{#if:| → Template:MediaWiki checkbox {{{uncheck}}}|{{#if:| → Template:MediaWiki checkbox {{{check}}}|}}}}}}.
Browser support for columns
| Property | Internet Explorer |
Firefox | Safari | Chrome | Opera |
|---|---|---|---|---|---|
| column-width column-count |
≥ 10 (2012) |
≥ 1.5 (2005) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
| columns | ≥ 10 (2012) |
≥ 9 (2011) |
≥ 3 (2007) |
≥ 1 (2008) |
≥ 11.1 (2011) |
| break-before break-after break-inside |
≥ 10 (2012) |
≥ 65 (2019) |
≥ 10 (2016) |
≥ 65 (2016) |
≥ 15 (2013) |
Multiple columns are generated by using CSS. Almost all browsers should support the multi-column property and will show multiple columns with {{reflist}}.<ref group="general" name="stuffandnonsense" /><ref group="general" name="w3org1" /><ref name="mdncols" group="general"/>
These browsers support CSS columns:
- Gecko-based browsers such as Mozilla Firefox
- WebKit browsers such as Safari
- Blink-based browsers such as Microsoft Edge, Opera, and Google Chrome
- Internet Explorer from version 10 onward
These browsers do not support CSS columns:
- Microsoft MSHTML-based browsers including Internet Explorer up to version 9<ref group="general" name="msdn" />
- Very old Opera through to version 11
Widows and orphans
The use of columns can result in widows and orphans, where a citation at the bottom of a column may be split to the top of the next column. MediaWiki:Common.css includes CSS rules to prevent list items from breaking between columns. Widows may still show in extreme circumstances, such as a reference list formatted in columns where only a single reference is defined.
{{#if: ||+ {{{title}}}}} {{#if: || Markup | Renders as
}}{{#if:Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet. == References == {{reflist|10em}}| | ||||||||||||||
| padding:;}} "| {{#switch:
|
none = Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet. == References == {{reflist|10em}} | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet. == References == {{reflist|10em}}</syntaxhighlight> | pre = Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.
== References ==
{{reflist|10em}}
|
#default = < style="">Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet. == References == {{reflist|10em}}</> }} | padding:;}} "| Lorem ipsum.<ref>Source name, access date, etc.</ref> Lorem ipsum dolor sit amet. {{safesubst:#switch: {{safesubst:#if:
|
{{{demospace}}} | main | other
}} }} |
main = Per WP:PSEUDOHEADING fake headings should not be used in articles. | other | #default = References
}} {{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}{{#if:10em| 1 }}|mw-references-columns|{{#switch:10em|1=|2=mw-references-columns reflist-columns-2|#default=mw-references-columns reflist-columns-3}} }}" {{#if: 10em
|
style="column-width: calc( 0.9 * 10em );"}} | style="column-width: calc( 0.9 * {{{colwidth}}} );"}} }}><references group="" responsive="0"></references> |
<references group="" responsive="1"></references>
}}{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=}}
}}{{#if:| | |
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }}{{#if:| | ||||||||||
| padding:;}} "| {{#switch:
|
none = | syntaxhighlight = <syntaxhighlight lang="wikitext" inline="1" style="" class="markup-markup"></syntaxhighlight> | pre = | #default = < style=""></> }} | padding:;}} "| }} |
Customizing the view
By editing your CSS, the personal appearance of the reference list can be customized. From Preferences, select the Appearance tab, then on the selected skin select Custom CSS. After editing and saving, follow the instructions at the top of the page to purge. See Wikipedia:Skin#Customisation (advanced users) for more help.
Font size
The font size for all reference lists defaults to 90% of the standard size. To change it, add:
<syntaxhighlight lang="css"> ol.references, .mw-parser-output div.refbegin {
font-size: 90%;
} </syntaxhighlight>
Change 90% to the desired size.
Columns
To disable columns, add:
<syntaxhighlight lang="css"> .mw-references-columns, .references-column-width {
column-width: auto !important;
} </syntaxhighlight>
To override the minimum width of columns, add:
<syntaxhighlight lang="css"> .mw-references-columns, .references-column-width {
column-width: 24em !important;
} </syntaxhighlight> Change the "24em" as necessary for your environment.
Column dividers
To add dividers (rules) between columns, add:
<syntaxhighlight lang="css"> .mw-references-columns, .references-column-width {
column-rule: 1px solid #aaa;
} </syntaxhighlight>
You can alter the appearance of the dividers by changing the values.
Perennial suggestions
Collapsing and scrolling
There have been a number of requests to add functionality for a collapsible or scrolling reference list. These requests have not been fulfilled due to issues with readability, accessibility, and printing. The applicable guidelines are at MOS:SCROLL. Links between the inline cite and the reference list do not work when the reference list is enclosed in a collapsed box.
To display the reference list in a scrollbox or collapsed per user, see Help:Reference display customization.
For discussion on previous attempts to do this with a template, see the discussions for Scrollref and Refbox.
Including the section title
There have been suggestions to include section header markup such as == References ==. This is inadvisable because:
- There is no standard section name .
- When transcluded, the article will have an edit link that will confusingly open the template for editing.
Obsolete parameters
These parameters are no longer in use:
- colwidth: Same as specifying a column-width for the first unnamed parameter. Replaced by width as unnamed first parameter.
Articles using unsupported parameters are tracked in {{#if:|{{{name}}}|Category:Pages using reflist with unknown parameters}} (1).
Template data
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AReflist%7CReflist%7CReflist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Reflist|Template:Reflist|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AReflist%7CReflist%7CReflist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AReflist%7CReflist%7CReflist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Reflist|Template:Reflist|Template:Reflist}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}}.
|#default=[1]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AReflist%7CReflist%7CReflist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Reflist|Template:Reflist|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AReflist%7CReflist%7CReflist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AReflist%7CReflist%7CReflist%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Reflist|Template:Reflist|Template:Reflist}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}}.
|#default=[2]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Reflist|its|this}} TemplateData}} }}}}
TemplateData for Reflist
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{safesubst:#if:{{safesubst:#ifeq:doc|sandbox|1}}{{safesubst:#ifeq:doc|doc|1}}||
}} | other | #default = }} <templatedata> { "description": "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.", "params": { "1": { "label": "Column width", "type": "string", "required": false,
"description": "Typographic unit of measurement such as 'em', specifying the width for the reference list columns, e.g. '33em'; spaced '33 em' will not be recognized. The syntax {{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=
}}{{#if:2|
| {{#iferror: {{#ifexpr: 2 > 1 }} |style="column-width: calc( 0.9 * 2 );"}}
| {{#if: |style="column-width: calc( 0.9 * {{{colwidth}}} );"}}
}}><references group="" responsive="0"></references>|
}} (for example), which specifies two columns of equal width regardless of the available display width, is deprecated. When you use 1 the template produces a single column; using 2 will act as if you specified 30em; using higher column counts will act as if you specified 25em.",
"default": " 1 if < 11 references; otherwise 30em", "aliases": [ "colwidth" ], "example": "33em" }, "liststyle": { "label": "Liststyle", "type": "string", "required": false, "description": "Specifies the style used when the reference list is enumerated; accepts any valid CSS value defined for list-style-type", "default": "decimal", "suggestedvalues": [ "lower-roman", "upper-roman", "lower-alpha", "upper-alpha", "lower-greek" ] }, "group": { "label": "Group", "type": "string", "required": false, "description": "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." }, "refs": { "label": "List of references", "type": "content", "required": false, "description": "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. This parameter is not compatible with the VisualEditor; <references>...</references> should be used instead.", "deprecated": true } } } </templatedata>
Limitations
Do not use {{reflist}} or other templates or modules that use {{#tag:references}} in numbered or unnumbered lists if the list is inside an HTML div tag. See the talk page (permalink) for examples and details.
- {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = File:X mark.svg No }} — : {{reflist}}
- {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = File:X mark.svg No }} — * {{reflist}}
- {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = File:X mark.svg No }} — # {{reflist}}
- {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = File:Yes check.svg Yes }} — {{reflist}}
See also
- Wikipedia:Citing sources – style guide for the citation of sources
- Wikipedia:Citation templates – templates for use with references
- Help:Shortened footnotes
- {{notelist}} and {{efn}} – templates for use with footnotes
- {{refbegin}} and {{refend}} – format reference lists
- {{#if:|Phabricator: }}{{#if:T53260|{{#ifeq:T|T|T53260|TT53260}}{{#if:| ({{{label1}}})}}|Phabricator}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{2}}}|{{{2}}}]]|[[Phabricator:T{{{2}}}|T{{{2}}}]]}}{{#if:| ({{{label2}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{3}}}|{{{3}}}]]|[[Phabricator:T{{{3}}}|T{{{3}}}]]}}{{#if:| ({{{label3}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{4}}}|{{{4}}}]]|[[Phabricator:T{{{4}}}|T{{{4}}}]]}}{{#if:| ({{{label4}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{5}}}|{{{5}}}]]|[[Phabricator:T{{{5}}}|T{{{5}}}]]}}{{#if:| ({{{label5}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{6}}}|{{{6}}}]]|[[Phabricator:T{{{6}}}|T{{{6}}}]]}}{{#if:| ({{{label6}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{7}}}|{{{7}}}]]|[[Phabricator:T{{{7}}}|T{{{7}}}]]}}{{#if:| ({{{label7}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{8}}}|{{{8}}}]]|[[Phabricator:T{{{8}}}|T{{{8}}}]]}}{{#if:| ({{{label8}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{9}}}|{{{9}}}]]|[[Phabricator:T{{{9}}}|T{{{9}}}]]}}{{#if:| ({{{label9}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{10}}}|{{{10}}}]]|[[Phabricator:T{{{10}}}|T{{{10}}}]]}}{{#if:| ({{{label10}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{11}}}|{{{11}}}]]|[[Phabricator:T{{{11}}}|T{{{11}}}]]}}{{#if:| ({{{label11}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{12}}}|{{{12}}}]]|[[Phabricator:T{{{12}}}|T{{{12}}}]]}}{{#if:| ({{{label12}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{13}}}|{{{13}}}]]|[[Phabricator:T{{{13}}}|T{{{13}}}]]}}{{#if:| ({{{label13}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{14}}}|{{{14}}}]]|[[Phabricator:T{{{14}}}|T{{{14}}}]]}}{{#if:| ({{{label14}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{15}}}|{{{15}}}]]|[[Phabricator:T{{{15}}}|T{{{15}}}]]}}{{#if:| ({{{label15}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{16}}}|{{{16}}}]]|[[Phabricator:T{{{16}}}|T{{{16}}}]]}}{{#if:| ({{{label16}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{17}}}|{{{17}}}]]|[[Phabricator:T{{{17}}}|T{{{17}}}]]}}{{#if:| ({{{label17}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{18}}}|{{{18}}}]]|[[Phabricator:T{{{18}}}|T{{{18}}}]]}}{{#if:| ({{{label18}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{19}}}|{{{19}}}]]|[[Phabricator:T{{{19}}}|T{{{19}}}]]}}{{#if:| ({{{label19}}})}}}}{{#if:|{{#iferror:{{#expr:1}}
|{{#switch:{{{1}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
|{{#switch:{{{2}}}
|fig=
|en=
|em=
|thin=
|hair=
|
}}
}}• {{#ifeq:T|T|[[Phabricator:{{{20}}}|{{{20}}}]]|[[Phabricator:T{{{20}}}|T{{{20}}}]]}}{{#if:| ({{{label20}}})}}}}{{#if:| ({{{label}}})}} – Support editing {{#switch:s
|c|close =
|e|empty|s|single|v|void
|o|open
|p|pair = <{{#if:|references|references}}{{#if:| {{{attribs}}}}}
}}{{#switch:s
|c|close =
|e|empty|s|single|v|void = />
|o|open = >
|p|pair = {{#ifeq:references|!--||>}}...
}}{{#switch:s
|e|empty|s|single|v|void
|o|open =
|c|close
|p|pair = {{#ifeq:references|!--|-->|</references>}}
}} tags to set multi-column display on/off
Variants
- {{template reference list}} – version of reflist for use in templates
- {{reflist-talk}} and {{sources-talk}} – for use in talk page sections and other non-mainspace pages
References
{{#switch:{{{liststyle}}}|upper-alpha|upper-roman|lower-alpha|lower-greek|lower-roman=
}}{{#if:|
| {{#iferror: {{#ifexpr: 1 > 1 }} |style="column-width: calc( 0.9 * {{{1}}} );"}}
| {{#if: |style="column-width: calc( 0.9 * {{{colwidth}}} );"}}
}}><references group="general" responsive="0"><ref group="general" name="fontsize">See User:Edokter/fonttest for a comparison of font sizes for various browsers; see previous discussions on changing the font size to resolve the IE issue.</ref> <ref group="general" name="stuffandnonsense">"CSS3 Multi-Column Thriller". December 30, 2005. Retrieved November 24, 2006.</ref> <ref group="general" name="w3org1">"CSS3 module: Multi-column layout". W3C. December 15, 2005. Retrieved November 24, 2006.</ref> <ref group="general" name="msdn">"CSS Compatibility and Internet Explorer: Multi-column Layout". Microsoft Docs. Microsoft Developer Network. Retrieved 2021-03-19.</ref>
<ref name="mdncols" group="general">"columns - CSS: Cascading Style Sheets | MDN". MDN Web Docs. 21 June 2023. Retrieved 6 February 2024.</ref></references>|
<references group="general" responsive="1"><ref group="general" name="fontsize">See User:Edokter/fonttest for a comparison of font sizes for various browsers; see previous discussions on changing the font size to resolve the IE issue.</ref> <ref group="general" name="stuffandnonsense">"CSS3 Multi-Column Thriller". December 30, 2005. Retrieved November 24, 2006.</ref> <ref group="general" name="w3org1">"CSS3 module: Multi-column layout". W3C. December 15, 2005. Retrieved November 24, 2006.</ref> <ref group="general" name="msdn">"CSS Compatibility and Internet Explorer: Multi-column Layout". Microsoft Docs. Microsoft Developer Network. Retrieved 2021-03-19.</ref>
<ref name="mdncols" group="general">"columns - CSS: Cascading Style Sheets | MDN". MDN Web Docs. 21 June 2023. Retrieved 6 February 2024.</ref></references>}}