17,232
edits
m (1 revision: Yayz) |
m (Protected "Template:Reflist": high traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class=" | <includeonly><div class="reflist" style="{{#if:{{{1|}}}|column-count:{{{1}}}|{{#if:{{{colwidth|}}}|column-width:{{{colwidth}}}}}}}"> | ||
< | {{#tag:references||group={{{group|}}}|responsive={{#if:{{{1|{{{colwidth|}}}}}}|0}}}}</div></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
Use this template to | Use this template to add a list of references and citations to an article's "References" section. | ||
Using < | === Automatic mode === | ||
Using <code><nowiki>{{reflist}}</nowiki></code> will create a single-column list if there are 10 references or fewer, and a responsive multi-column list if there are more than 10 items. The number of columns will vary depending on the browser's width. | |||
Using < | === Specific parameters === | ||
Using <code><nowiki>{{reflist|2}}</nowiki></code> will create a two-column reference list, and <code><nowiki>{{reflist|3}}</nowiki></code> will create a three-column list. | |||
Using <code><nowiki>{{reflist|colwidth=30em}}</nowiki></code> will allow the browser to automatically choose the number of columns based on the width of the web browser. Choose a column width that's appropriate for the average width of the references on the page. | |||
[[Category:Reference templates | [[Category:Reference templates]]</noinclude> | ||
</noinclude> |