Actions

Template

Difference between revisions of "Ref"

From NEC Retro

(Created page with "<includeonly><sup><span class="plainlinks" style="line-height:0.95em; font-size:0.95em;">[{{{1}}}]</span></sup></includeonly><noinclude> ==Usage== <tt><nowiki>{{ref|http://nec...")
 
 
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://necretro.org}}</nowiki></tt> returns {{ref|http://necretro.org}}
 
<tt><nowiki>{{ref|http://necretro.org}}</nowiki></tt> returns {{ref|http://necretro.org}}
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:NEC 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:NEC Retro templates]]</noinclude><includeonly>{{#tag: ref | {{{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]]}}</includeonly>

Latest revision as of 17:37, 20 January 2017

Usage

{{ref|http://necretro.org}} returns [1]

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

{{ref|1=http://necretro.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.

  1. http://necretro.org