close
Sayahna Sayahna
Search

Difference between revisions of "Template:Reflist"


(Created page with "<div class="references-small" {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1...")
m (1 revision)
 
(2 intermediate revisions by 2 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}}} }};" |}}>
+
<div class="reflist <!--
{{{list| {{#tag:references|{{{refs|}}}|group={{{group|}}}}} }}}
+
-->{{#if: {{{1|}}}
</div><noinclude>{{Documentation}}</noinclude>
+
    | 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 07:26, 22 August 2014

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

This citation template provides formatting and organizational features for footnotes. It encapsulates the <references /> tag used by the cite.php MediaWiki extension to show the list of references as defined by <ref> tags. It adds support for a reduced font size, columns, groups.

If you don't use any of the additional features, then it produces the same output as the simpler and slightly faster <references /> tag.

Parameters

  • First unnamed parameter:
column-count: a natural number specifying fixed columns into which the reference list is to be rendered. Example: |2|.
column-width: a typographic unit of measurement such as em, specifying the width for the reference list columns. Example: |30em|.
  • refs: used with named references (e.g., <ref name=name />); it specifies a list of some or all named references used in the article.
  • group: identifies by name the subset of references to be rendered; the value should correspond to that used inline, e.g., {{Reflist|group=groupname}} renders all references with groupname as the group name (<ref>).
  • liststyle: specifies the style used when the reference list is enumerated; if none is specified, the default is to render a numbered list.
  • close=1: forces the reference list to close and render all references defined to that point; see the section on multiple uses for details.

Usage

Lorem ipsum.<ref>Source name, access date, etc.</ref>
Lorem ipsum dolor sit amet.<ref>Source name, access date, etc.</ref>

==References==
{{Reflist}}

gives:

Lorem ipsum.[1] Lorem ipsum dolor sit amet.[2]

References

  1. Source name, access date, etc.
  2. Source name, access date, etc.