Template:Ref/doc: Difference between revisions

From FrathWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''The ref/note family of templates was imported from [[Wikipedia:Wikipedia|Wikipedia]].'''
And hence they should probably be edited only by re-importing them.
== Usage ==
== Usage ==


The ref/note family of templates was imported from [[Wikipedia:Wikipedia|Wikipedia]].
Please see the documentation at [[Wikipedia:Template:Ref]]
 
=== An example ===
Actually an illustration says more than a thousand words.
 
This Wikicode:
 
<pre>
<nowiki>{{ref|1|2|3|4}}
 
{{ref label|1|2|3|4}}


Please see the documentation at [[Wikipedia:Template:Ref]]
{{ref harvard|1|2|3|4}}
 
{{ref harv|1|2|3|4}}
 
{{note|1|2|3|4}}
 
{{note label|1|2|3|4|5}}
</nowiki></pre>
 
Produces this HTML:
 
    &lt;p&gt;&lt;sup class=&quot;reference plainlinks nourlexpansion&quot; id=&quot;ref_1&quot;&gt;&lt;a href=&quot;#endnote_1&quot; title=&quot;&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
    &lt;p&gt;&lt;span class=&quot;reference&quot;&gt;&lt;sup id=&quot;ref_13&quot;&gt;&lt;a href=&quot;#endnote_13&quot; title=&quot;&quot;&gt;[2]&lt;/a&gt;&lt;/sup&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;p&gt;&lt;span class=&quot;reference&quot; id=&quot;ref_13&quot;&gt;&lt;a href=&quot;#endnote_13&quot; title=&quot;&quot;&gt;(2)&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
    &lt;p&gt;&lt;sup&gt;&lt;span class=&quot;reference&quot; id=&quot;ref_13&quot;&gt;&lt;a href=&quot;#endnote_13&quot; title=&quot;&quot;&gt;(2)&lt;/a&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/p&gt;
    &lt;p&gt;&lt;cite id=&quot;endnote_1&quot; style=&quot;font-style: normal;&quot;&gt;&lt;a href=&quot;#ref_1&quot; title=&quot;&quot;&gt;&lt;b&gt;^2&lt;/b&gt;&lt;/a&gt;&lt;/cite&gt;&amp;nbsp;&lt;/p&gt;
    &lt;p&gt;&lt;cite id=&quot;endnote_13&quot;&gt;&lt;a href=&quot;#ref_13&quot; title=&quot;&quot;&gt;&lt;b&gt;&lt;sup&gt;3&lt;/sup&gt;&lt;/b&gt;&lt;/a&gt;&amp;nbsp;4&lt;/cite&gt;&amp;nbsp;&lt;/p&gt;
 
 
[[Category:Reference—note templates]]

Latest revision as of 09:12, 18 November 2009

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>