Template:Refn: Difference between revisions

From LifeWiki
Jump to navigation Jump to search
Template (from Wikipedia) to allow nested references
 
Documentation
Line 1: Line 1:
<includeonly>{{#if:{{{name|}}}|{{#tag:ref|{{{1|{{{refn|}}}}}}|name={{{name|}}}|group={{{group|}}}}}|{{#tag:ref|{{{1|{{{refn|}}}}}}|group={{{group|}}}}}}}</includeonly>
<includeonly>{{#if:{{{name|}}}|{{#tag:ref|{{{1|{{{refn|}}}}}}|name={{{name|}}}|group={{{group|}}}}}|{{#tag:ref|{{{1|{{{refn|}}}}}}|group={{{group|}}}}}}}</includeonly><noinclude>__NOTOC__
This template can be used to add footnotes to articles, separate from references. Footnotes can be separated into different groups.
 
To add footnotes, first add the notes themselves in the following manner:
 
:<tt><nowiki>Lorem ipsum dolor sit amet.{{refn|group=note|Consectetur adipiscing elit.}}</nowiki></tt>
 
Then add a footnote section:
 
:<tt><nowiki>==Notes==</nowiki></tt>
:<tt><nowiki><references group="note" /></nowiki></tt>
 
Footnotes will appear in the article text as follows:
 
:Lorem ipsum dolor sit amet.<sup>[[#cite_note-1|[note 1]]]</sup>
:[...]
:<h2>Notes</h2>
:#[[#cite_ref-1|↑]] Consectetur adipiscing elit.
 
To use different groups of footnotes, simply pass different values for the <tt>group=</tt> parameter, and add one <tt>references</tt> section for each group. See the [[Catagolue]] article for an example.
 
</noinclude>

Revision as of 11:42, 14 September 2017

This template can be used to add footnotes to articles, separate from references. Footnotes can be separated into different groups.

To add footnotes, first add the notes themselves in the following manner:

Lorem ipsum dolor sit amet.{{refn|group=note|Consectetur adipiscing elit.}}

Then add a footnote section:

==Notes==
<references group="note" />

Footnotes will appear in the article text as follows:

Lorem ipsum dolor sit amet.[note 1]
[...]

Notes

  1. ↑ Consectetur adipiscing elit.

To use different groups of footnotes, simply pass different values for the group= parameter, and add one references section for each group. See the Catagolue article for an example.