Template:Reflist: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly><div class="reflist" style="font-size: 90%; column-width: 30em; -moz-column-width: 30em; -webkit-column-width: 30em; list-style-type: decimal;"> <references /> </div></includeonly><noinclude> == Usage == Place <nowiki>{{reflist}}</nowiki> under the References header to generate the page bibliography. </noinclude>" |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><div class="reflist" style="font-size: 90%; | <includeonly><div class="reflist" style="font-size: 90%; {{#if:{{{1|}}}|column-count: {{{1|}}}|column-width: 30em;}}"> | ||
<references /> | <references {{#if:{{{refs|}}}|responsive="0"}} />{{#if:{{{refs|}}}|{{{refs|}}}}} | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
== | == Template:Reflist == | ||
Place <nowiki>{{ | Renders the references list in a compact multi-column layout. Place directly under the <code>== References ==</code> heading. | ||
=== Parameters === | |||
{| class="wikitable" | |||
! Parameter !! Description !! Example | |||
|- | |||
| (none) || Auto-columns at 30em width (recommended) || <code>{{Tl|Reflist}}</code> | |||
|- | |||
| <code>1</code> (positional) || Force a specific column count || <code><nowiki>{{Reflist|2}}</nowiki></code> | |||
|- | |||
| <code>refs</code> || Named ref definitions || See below | |||
|} | |||
=== Examples === | |||
Basic: | |||
<pre>== References == | |||
{{Reflist}}</pre> | |||
Force two columns: | |||
<pre>{{Reflist|2}}</pre> | |||
With named refs: | |||
<pre>{{Reflist|refs= | |||
<ref name="boinc">{{Cite web |url=https://boinc.berkeley.edu |title=BOINC |access-date=2026-05-18}}</ref> | |||
}}</pre> | |||
Then in the article body: <code><ref name="boinc" /></code> | |||
[[Category:Citation templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 17:48, 20 May 2026
Template:Reflist
Renders the references list in a compact multi-column layout. Place directly under the == References == heading.
Parameters
| Parameter | Description | Example |
|---|---|---|
| (none) | Auto-columns at 30em width (recommended) | {{Reflist}}
|
1 (positional) |
Force a specific column count | {{Reflist|2}}
|
refs |
Named ref definitions | See below |
Examples
Basic:
== References ==
{{Reflist}}
Force two columns:
{{Reflist|2}}
With named refs:
{{Reflist|refs=
<ref name="boinc">{{Cite web |url=https://boinc.berkeley.edu |title=BOINC |access-date=2026-05-18}}</ref>
}}
Then in the article body: <ref name="boinc" />