Jump to content

Template:Reflist: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m try again...
attempt copy of WP
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-small <!--
<references /></div><noinclude>
-->{{#if: {{{1|}}}
 
    | {{#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-{{{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|{{{1}}}}}
 
      | {{column-count|{{{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}}}}} }} }}">
Copied source and usage text from Wikipedia.
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div><noinclude>
 
{{documentation}}</noinclude>
 
<!--<div class="references-small" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; column-count:{{{1}}} }}};" |}}>
Also see [[Project:Templates|Templates]].
<references /></div>-->
 
[[Category:Mises Wiki templates]]</noinclude>

Revision as of 20:06, 7 January 2011

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.