Difference between revisions of "Template: References"

From A Wiki of Ice and Fire
Jump to: navigation, search
(added some basic documentation)
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}}} }};" |}}>
+
<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}}} }};" |}}>
<references /></div><noinclude>
+
<references /></div></includeonly><noinclude>
  
This template creates a formatted list of [[Help:Referencing and Canon|References]] using the <code><nowiki><references /></nowiki></code> tag.
+
 
See also [[Template:Notes]].
+
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.
 +
 
 +
==Syntax==
 +
* <nowiki>{{References}}</nowiki> - will add a reference list with the default values.
 +
* <nowiki>{{References|X}}</nowiki> - X sets the number of columns in used in the References list.
 +
<!-- * <nowiki>{{References|X|colwidth=YYY}}</nowiki> dont use it  -->
 +
 
 +
 
 +
==Common Copy Paste Example==
 +
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:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 10:37, 4 February 2012


This template creates a formatted list of References defined by <ref>...</ref> tags and Ref Template, within the body of the article.

Syntax

  • {{References}} - will add a reference list with the default values.
  • {{References|X}} - X sets the number of columns in used in the References list.


Common Copy Paste Example

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)

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


See Also