The wiki has recently been updated. Please contact me by talk page or email if you encounter any issues.

Template:Ref harv: Difference between revisions

From FrathWiki
Jump to navigationJump to search
m (1 revision: Current ref/note template system from Wikipedia)
 
m (Protected "Template:Ref harv": The ref/note family of templates was imported from Wikipedia. And hence they should probably be edited only by re-importing them. ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<sup><span class="reference" {{#ifeq:{{{noid}}}|noid||id="ref_{{{1}}}{{{3}}}"}}>[[#endnote_{{{1}}}{{{3}}}|<nowiki>(</nowiki>{{{2}}}<nowiki>)</nowiki>]]</span></sup><noinclude>[[Category:Citation templates|{{PAGENAME}}]][[Category:Inline templates|{{PAGENAME}}]]</noinclude>
<sup><span class="reference" {{#ifeq:{{{noid}}}|noid||id="ref_{{{1}}}{{{3}}}"}}>[[#endnote_{{{1}}}{{{3}}}|<nowiki>(</nowiki>{{{2}}}<nowiki>)</nowiki>]]</span></sup><noinclude>
{{Documentation|Template:Ref/doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

Latest revision as of 09:48, 18 November 2009

[[#endnote_{{{1}}}{{{3}}}|({{{2}}})]]

[edit] Template documentation

The ref/note family of templates was imported from Wikipedia.

And hence they should probably be edited only by re-importing them.

Usage

Please see the documentation at Wikipedia:Template:Ref

An example

Actually an illustration says more than a thousand words.

This Wikicode:

{{ref|1|2|3|4}}

{{ref label|1|2|3|4}}

{{ref harvard|1|2|3|4}}

{{ref harv|1|2|3|4}}

{{note|1|2|3|4}}

{{note label|1|2|3|4|5}}

Produces this HTML:

   <p><sup class="reference plainlinks nourlexpansion" id="ref_1"><a href="#endnote_1" title="">2</a></sup></p>
   <p><span class="reference"><sup id="ref_13"><a href="#endnote_13" title="">[2]</a></sup></span></p>
   <p><span class="reference" id="ref_13"><a href="#endnote_13" title="">(2)</a></span></p>
   <p><sup><span class="reference" id="ref_13"><a href="#endnote_13" title="">(2)</a></span></sup></p>
   <p><cite id="endnote_1" style="font-style: normal;"><a href="#ref_1" title=""><b>^2</b></a></cite>&nbsp;</p>
   <p><cite id="endnote_13"><a href="#ref_13" title=""><b><sup>3</sup></b></a>&nbsp;4</cite>&nbsp;</p>