Difference between revisions of "Ref"

From Sega Retro

 
Line 10: Line 10:
 
| archive.md
 
| archive.md
 
| archive.ph
 
| archive.ph
| archive.vn={{#vardefine:refshown|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}}}{{#if:{{{2|}}}|{{#vardefine:refarc|archive.today}}|[[Category:archive.today reference without original link]]}}
+
| archive.vn={{#vardefine:refshown|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}}}{{#if:{{{2|}}}|{{#vardefine:refarc|archive.today}}|[[Category:Archived reference without original link]]}}
 +
| ghostarchive.org={{#vardefine:refshown|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}}}{{#if:{{{2|}}}|{{#vardefine:refarc|Ghostarchive}}|[[Category:Archived reference without original link]]}}
  
 
|hiddenpalace.org={{#vardefine:refshown|Hidden Palace: {{#replace:{{#explode:{{{1|}}}|/|3}}|_|<nowiki /> <nowiki />}}}}
 
|hiddenpalace.org={{#vardefine:refshown|Hidden Palace: {{#replace:{{#explode:{{{1|}}}|/|3}}|_|<nowiki /> <nowiki />}}}}
Line 28: Line 29:
  
 
<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>
 +
 +
If the address is an archive.today or Ghostarchive link, add the original URL as a second parameter after the archive.today URL like so (add "2=" to the start of the second parameter if the URL contains an equals sign):
 +
 +
<tt><nowiki>{{ref|https://archive.is/12345|http://segaretro.org}}</nowiki></tt><br>
 +
<tt><nowiki>{{ref|https://ghostarchive.org/archive/12345|http://segaretro.org}}</nowiki></tt>
  
 
==See also==
 
==See also==

Latest revision as of 11:56, 3 August 2023

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}}

If the address is an archive.today or Ghostarchive link, add the original URL as a second parameter after the archive.today URL like so (add "2=" to the start of the second parameter if the URL contains an equals sign):

{{ref|https://archive.is/12345|http://segaretro.org}}
{{ref|https://ghostarchive.org/archive/12345|http://segaretro.org}}

See also

Examples

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.