Difference between revisions of "Ref"

From Sega Retro

Line 1: Line 1:
<includeonly><sup><span class="plainlinks" style="line-height:0.95em; font-size:0.95em;">[{{{1}}}]</span></sup></includeonly><noinclude>
+
<noinclude>
 
==Usage==
 
==Usage==
<tt><nowiki>{{ref|http://segaretro.org}}</nowiki></tt> returns {{ref|http://segaretro.org}}
+
<tt><nowiki>{{ref|http://segaretro.org}}</nowiki></tt> returns a footnote symbol that looks like this:{{ref|http://segaretro.org}}, and appends the website to the References section at the bottom of the page. If multiple references to the same URL are used in a single page, they will be combined into a single reference.
  
If the address contains an equals sign (=), add "1=" to the beginning of the address like so:
+
If the address contains an equals sign [=], add "1=" to the beginning of the address like so:
  
 
<tt><nowiki>{{ref|</nowiki>'''1='''<nowiki>http://segaretro.org/index.php?title=Example}}</nowiki></tt>
 
<tt><nowiki>{{ref|</nowiki>'''1='''<nowiki>http://segaretro.org/index.php?title=Example}}</nowiki></tt>
Line 10: Line 10:
 
* [[Template:Fileref]] for referencing files stored on the wiki and Retro CDN.
 
* [[Template:Fileref]] for referencing files stored on the wiki and Retro CDN.
  
[[Category:Sega Retro templates]]</noinclude>
+
==References==
 +
Since this template uses the <nowiki><ref></nowiki> tag, all pages that use this template will have an auto-generated references list appended to the end of the page. To prevent confusion, a <nowiki><references/></nowiki> tag should be added to the end of the page in a dedicated "References" section, such as this one.
 +
<references/>
 +
 
 +
[[Category:Sega Retro templates]]</noinclude><includeonly>{{#tag: ref | {{{1}}} | name="{{{1}}}"}}</includeonly>

Revision as of 10:23, 31 December 2015

Usage

{{ref|http://segaretro.org}} returns a footnote symbol that looks like this:[1], and appends the website to the References section at the bottom of the page. If multiple references to the same URL are used in a single page, they will be combined into a single reference.

If the address contains an equals sign [=], add "1=" to the beginning of the address like so:

{{ref|1=http://segaretro.org/index.php?title=Example}}

See also

References

Since this template uses the <ref> tag, all pages that use this template will have an auto-generated references list appended to the end of the page. To prevent confusion, a <references/> tag should be added to the end of the page in a dedicated "References" section, such as this one.