Template:Reflist: Difference between revisions
Appearance
Pestergaines (talk | contribs) Template set up. |
m 1 revision |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<div class=" | <div class="reflist <!-- | ||
< | -->{{#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="<!-- | |||
-->{{#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 | |||
| upper-roman | |||
| lower-alpha | |||
| lower-greek | |||
| lower-roman = {{{group}}} | |||
| #default = decimal}}}}};"> | |||
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude> | |||
{{Documentation}} | |||
</noinclude> | |||
Latest revision as of 06:43, 25 January 2014
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
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.
| The above documentation is transcluded from Template:Reflist/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |