Difference between revisions of "Template: References/doc"

From A Wiki of Ice and Fire
Jump to: navigation, search
(Created page with "This template creates a formatted list of references defined by <nowiki><ref>...</ref></nowiki> tags and the Ref template, wit...")
 
 
Line 1: Line 1:
This template creates a formatted list of [[Help:Referencing and Canon|references]] defined by <nowiki><ref>...</ref></nowiki> tags and the [[:Template:Ref|Ref]] template, within the body of the article.
+
This template creates a formatted list of [[Help:Referencing and Canon|references]] defined by {{code|<ref>}} tags and the {{code|{{tl|ref}}}} template, within the body of the article.
  
 
==Syntax==
 
==Syntax==
* <nowiki>{{References}}</nowiki> - will add a reference list with the default values.
+
* {{code|<nowiki>{{references}}</nowiki>}}: Adds a simple reference list.
* <nowiki>{{References|X}}</nowiki> - X sets the number of columns in used in the References list.
+
* {{code|<nowiki>{{references|X}}</nowiki>}}: Adds a reference list separated in {{code|X}} columns.
<!-- * <nowiki>{{References|X|colwidth=YYY}}</nowiki> dont use it  -->
+
**Note that the columns are minimum 150px wide by default. This can be overwritten with the {{code|colwidth}} parameter: {{code|<nowiki>{{references|X|colwidth=Y}}</nowiki>}}
* <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.  
+
* {{code|<nowiki>{{References|X|refs=...}}</nowiki>}}: 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 Copy Paste Example==
+
==Common usage==
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)
+
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:
  
 
<pre>
 
<pre>

Latest revision as of 15:27, 3 September 2018

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