Template:Reflist: Difference between revisions
From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
m (Text replacement - "\[\[Category:([^|]+)\|{{PAGENAME}}\]\]" to "Category:$1") |
m (Protected "Template:Reflist": High traffic page ([Edit=Allow only KHWiki staff] (indefinite) [Move=Allow only KHWiki staff] (indefinite))) |
||
(One intermediate revision by the same user 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 add a list of references and citations to an article's "References" section. | |||
=== 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. | ||
{{reflist}} | |||
</ | |||
=== 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. | ||
{{reflist|2}} | |||
</ | 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:Utility templates]]</noinclude> | [[Category:Utility templates]]</noinclude> |
Latest revision as of 00:38, 31 May 2023
Usage
Use this template to add a list of references and citations to an article's "References" section.
Automatic mode
Using {{reflist}}
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.
Specific parameters
Using {{reflist|2}}
will create a two-column reference list, and {{reflist|3}}
will create a three-column list.
Using {{reflist|colwidth=30em}}
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.