Actions

Template

Difference between revisions of "Ref"

From Sonic Retro

(Updated to use the ref tag.)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>{{SegaRetroTemplate}}
 
==Usage==
 
==Usage==
<tt><nowiki>{{ref|http://segaretro.org}}</nowiki></tt> returns a footnote{{ref|http://segaretro.org}}, and appends the website to the References section at the bottom of the page.
+
<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:
Line 14: Line 14:
 
<references/>
 
<references/>
  
[[Category:Sonic Retro templates]]</noinclude><includeonly>{{#tag: ref | {{{1}}} | name="{{{1}}}"}}</includeonly>
+
[[Category:Sonic Retro templates]]</noinclude><includeonly>{{#tag: ref | {{FormatRef|{{{1}}}}} | name="{{{1}}}" | group="{{#if:{{{group|}}}|{{{group}}}|}}"}}{{#ifeq:{{#pos:{{{1}}}|.pdf}}|||[[Category:External PDF reference]]}}{{#ifeq:{{#pos:{{{1}}}|.PDF}}|||[[Category:External PDF reference]]}}{{#ifeq:{{#pos:{{{1}}}|.txt}}|||[[Category:External TXT reference]]}}{{#ifeq:{{#pos:{{{1}}}|.TXT}}|||[[Category:External TXT reference]]}}{{#ifeq:{{#pos:{{{1}}}|.jpg}}|||[[Category:External JPEG reference]]}}{{#ifeq:{{#pos:{{{1}}}|.JPG}}|||[[Category:External JPEG reference]]}}{{#ifeq:{{#pos:{{{1}}}|.jpeg}}|||[[Category:External JPEG reference]]}}{{#ifeq:{{#pos:{{{1}}}|.JPEG}}|||[[Category:External JPEG reference]]}}{{#ifeq:{{#pos:{{{1}}}|.cpp}}|||[[Category:External source code references]]}}{{#ifeq:{{#pos:{{{1}}}|.hpp}}|||[[Category:External source code references]]}}{{RefSiteCheck|{{{1}}}}}</includeonly>

Revision as of 12:55, 2 April 2019

Segaretro-round.svg This template has been manually copied from Sega Retro, specifically Template:Ref
Technical restrictions prevent this template from being shared across multiple wikis. In the medium term, any changes should be made to the Sega Retro variant first, before manually copying the contents back here. As this is not an automatic process, this version of the template might also be out of date.

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.