Template:Reflist: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
No edit summary
m (Protected "Template:Reflist": High traffic page ([Edit=Allow only KHWiki staff] (indefinite) [Move=Allow only KHWiki staff] (indefinite)))
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<div class="references-small" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}} }};" |}}>
<includeonly><div class="reflist" style="{{#if:{{{1|}}}|column-count:{{{1}}}|{{#if:{{{colwidth|}}}|column-width:{{{colwidth}}}}}}}">
<references /></div>
{{#tag:references||group={{{group|}}}|responsive={{#if:{{{1|{{{colwidth|}}}}}}|0}}}}</div></includeonly><noinclude>
[[Category:Utility templates]]
== 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.
 
=== 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: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.