Welcome to Wars Wiki! |
---|
Welcome to Wars Wiki. Please log in or create an account to make changes. |
Template:Reflist: Difference between revisions
From Wars Wiki
Jump to navigationJump to search
(Created page with "<references /><noinclude> Category:Reference templates</noinclude>") |
(Updated reference template code) |
||
Line 1: | Line 1: | ||
<references | <div class="references-small" style="font-size:10pt;<!-- | ||
-->{{#if: {{{1|}}} | |||
| columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} | |||
| references-column-width | |||
| references-column-count references-column-count-{{#if:1|{{{1}}}}} }} | |||
| {{#if: {{{colwidth|}}} | |||
| references-column-width }} }}" style="font-size:10pt;<!-- | |||
-->{{#if: {{{1|}}} | |||
| {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }} | |||
| {{column-width|{{#if:1|{{{1}}}}}}} | |||
| {{column-count|{{#if:1|{{{1}}}}}}} }} | |||
| {{#if: {{{colwidth|}}} | |||
| {{column-width|{{{colwidth}}}}} }} }} list-style-type: <!-- | |||
-->{{{liststyle|{{#switch: {{{group|}}} | |||
| upper-alpha | |||
| lower-alpha = {{{group}}} | |||
| #default = decimal}}}}};"> | |||
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>{{Doc}}</noinclude> |
Latest revision as of 16:14, 24 June 2023
This page has been transcluded from Template:Reflist/doc.
Usage[edit source]
Use this template to create a reference list in an article.
If used with no parameters, it will simply produce a reference list in a small font.
Multiple columns[edit source]
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.
Copied source and usage text from Wikipedia through Wookieepedia.