Difference between revisions of "Template:Ref"

From ISFDB
Jump to navigation Jump to search
(From wikipedia ref)
 
(Transclude doc)
Line 1: Line 1:
 
<span class="reference plainlinksneverexpand" {{#ifeq:{{{noid}}}|noid||id="ref_{{{1}}}"}}><sup>{{#if:{{{2|}}}|[[#endnote_{{{1}}}|{{{2}}}]]|[{{fullurl:{{FULLPAGENAME}}}}#endnote_{{{1|}}}]}}</sup></span><noinclude>
 
<span class="reference plainlinksneverexpand" {{#ifeq:{{{noid}}}|noid||id="ref_{{{1}}}"}}><sup>{{#if:{{{2|}}}|[[#endnote_{{{1}}}|{{{2}}}]]|[{{fullurl:{{FULLPAGENAME}}}}#endnote_{{{1|}}}]}}</sup></span><noinclude>
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
{{{{PAGENAME}}/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 13:30, 13 September 2008

{{#if:|[[#endnote_{{{1}}}|{{{2}}}]]|[1]}}

Usage is {{ref|#}} at those points in the article where you want to cite a reference. You can site the same reference more than once if needed. You will need to manage the footnote or reference numbering or tags within an article yourself. The tags are not limited to numbers though using 1, 2, 3, ... is traditional.

To create the footnotes use {{note|#}} followed by the footnote text.
This is an example of some text with a reference.{{ref|1}}
...
== Footnotes ==
{{note|1}} Footnote text for the example.
The result is:
This is an example of some text with a reference.{{#if:|{{{2}}}|[2]}}
...
Footnotes
1. ^  Footnote text for the example.