Jump to content

Template:Reflist: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
Template set up.
 
m 1 revision
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="references-small" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; column-count:{{{1}}} }}};" |}}>
<div class="reflist <!--
<references /></div><noinclude>
-->{{#if: {{{1|}}}
 
    | columns {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
==Usage==
      | references-column-width
Use this template to create a reference list in an article.
      | references-column-count references-column-count-{{#if:1|{{{1}}}}} }}
 
    | {{#if: {{{colwidth|}}}
If used with no parameters, it will simply produce a reference list in a small font.
      | references-column-width }} }}" style="<!--
 
-->{{#if: {{{1|}}}
===Multiple columns===
    | {{#iferror: {{#ifexpr: {{{1|1}}} > 1 }}
Using <nowiki>{{reflist|2}}</nowiki> will create a two-column reference list, and <nowiki>{{reflist|3}}</nowiki> will create a three-column list.
      | {{column-width|{{#if:1|{{{1}}}}}}}
 
      | {{column-count|{{#if:1|{{{1}}}}}}} }}
Using <nowiki>{{reflist|colwidth=30em}}</nowiki> 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.
    | {{#if: {{{colwidth|}}}
 
      | {{column-width|{{{colwidth}}}}} }} }} list-style-type: <!--
Copied source and usage text from Wikipedia.
-->{{{liststyle|{{#switch: {{{group|}}}
 
    | upper-alpha
 
    | upper-roman
Also see [[Project:Templates|Templates]].
    | lower-alpha
 
    | lower-greek
[[Category:Templates]]</noinclude>
    | lower-roman = {{{group}}}
    | #default = decimal}}}}};">
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
{{Documentation}}
</noinclude>

Latest revision as of 06:43, 25 January 2014

Documentation icon Template documentation[view] [edit] [history] [purge]

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.