Difference between revisions of "Template: References"

From A Wiki of Ice and Fire
Jump to: navigation, search
m (cat)
 
(3 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"
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div></includeonly><noinclude>
+
{{#if: {{{colwidth|}}}{{{1|}}}
 
+
| style="-webkit-column-width:{{{colwidth|200px}}};
This template creates a formatted list of [[Help:Referencing and Canon|References]] defined by <nowiki><ref>...</ref></nowiki> tags and [[:Template:Ref|Ref]] Template, within the body of the article.
+
            -moz-column-width:{{{colwidth|200px}}};
 
+
                  column-width:{{{colwidth|200px}}};
==Syntax==
+
{{#if: {{{1|}}}
* <nowiki>{{References}}</nowiki> - will add a reference list with the default values.
+
  | -webkit-column-count:{{{1}}};
* <nowiki>{{References|X}}</nowiki> - X sets the number of columns in used in the References list.
+
      -moz-column-count:{{{1}}};
<!-- * <nowiki>{{References|X|colwidth=YYY}}</nowiki>  dont use it  -->
+
            column-count:{{{1}}};
* <nowiki>{{References|X|refs=....}}</nowiki> - Allows you to define named references within the body the template(and link to them from article), to allow easier management of references i.e. all in one place.
+
}}"
 
+
}}>
==Common Copy Paste Example==
+
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div></includeonly><noinclude>{{documentation}}</noinclude>
The refernces 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(99% of the articles)
 
<pre>
 
==References and Notes==
 
{{references|2}}
 
</pre>
 
 
 
 
 
==See Also==
 
* [[Template:Citation needed]]
 
* [[Template:Ref]]
 
* [[Template:Notes]]
 
 
 
[[Category:Cross-reference templates| ]]</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