Difference between revisions of "Template: References"

From A Wiki of Ice and Fire
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><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}}} }};" |}}>
+
<includeonly><div class="references-small"
 +
{{#if: {{{colwidth|}}}{{{1|}}}
 +
| style="-webkit-column-width:{{{colwidth|200px}}};
 +
            -moz-column-width:{{{colwidth|200px}}};
 +
                  column-width:{{{colwidth|200px}}};
 +
{{#if: {{{1|}}}
 +
  | -webkit-column-count:{{{1}}};
 +
      -moz-column-count:{{{1}}};
 +
            column-count:{{{1}}};
 +
}}"
 +
}}>
 
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div></includeonly><noinclude>{{documentation}}</noinclude>
 
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 23:40, 6 September 2018

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

This template creates a formatted list of references defined by <ref> tags and the {{ref}} template, within the body of the article.

Syntax

  • {{references}}: Adds a simple reference list.
  • {{references|X}}: Adds a reference list separated in X columns.
    • Note that the columns are minimum 150px wide by default. This can be overwritten with the colwidth parameter: {{references|X|colwidth=Y}}
  • {{References|X|refs=...}}: Allows you to define named references within the body of the template and link to them from the article. This can sometimes allow for an easier management of references i.e. all in one place.

Common usage

The references should be placed in the footnotes, at the bottom of the page, just before the categories. Simply copy-paste the code below there. If in doubt see any other page with the section already in place. For the common 2-column reference list, use:

==References and Notes==
{{references|2}}

See Also