Difference between revisions of "Template: References"

From A Wiki of Ice and Fire
Jump to: navigation, search
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|}}}| 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></includeonly><noinclude>
+
{{#tag:references|{{{refs|}}}|group={{{group|}}}}}</div></includeonly><noinclude>
 
 
  
 
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.
 
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.
Line 9: Line 8:
 
* <nowiki>{{References|X}}</nowiki> - X sets the number of columns in used in the References list.
 
* <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  -->
 
<!-- * <nowiki>{{References|X|colwidth=YYY}}</nowiki>  dont use it  -->
 
+
* <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==
 
==Common Copy Paste Example==

Revision as of 00:49, 9 March 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.
  • {{References|X|refs=....}} - 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

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