Template:Refn
Description[edit source]
This template is used to create footnotes. It is an alternative to using <ref></ref>
tags, which suffer from some technical limitations, such as the inability to use the pipe trick or substitution. Most frequently, this template is used to nest footnotes, i.e. adding footnotes within a footnote, which is not possible with <ref></ref>
tags alone.
Usage[edit source]
{{refn|group=groupname|name=name|Contents of the footnote}}
- group - see Help:Cite#Footnote groups
- name - see Help:Cite#Footnote names
- Contents of the footnote - place the contents of your footnote here
Examples[edit source]
You type | You get |
---|---|
An example.{{refn|group=note|name=first|A note.<ref>An included reference.</ref>}} Another example.{{refn|group=note|Another note.<ref>Another included reference.</ref>}} A third example.{{refn|group=note|The third note.<ref>The reference in the third note.</ref>}} Repeating the first example.{{refn|group=note|name=first}} ==Notes== <references group="note" /> ==References== <references /> |
An example.[note 1] Another example.[note 2] A third example.[note 3] Repeating the first example.[note 1] |
Errors[edit source]
If the reference or note content is missing, then There are <ref>
tags on this page without content in them will be displayed.
If the note content contains an equal sign (=
), the equal sign will be interpreted as setting off a named parameter and cause an error. This can be worked around by explicitly defining the numbered parameter. For example:
You type | You get |
---|---|
{{refn|1+1=2}} |
There are |
{{refn|1= 1+1=2}} |
|
Credits[edit source]
This template's code was taken from the English Wikipedia.