Difference between revisions of "Ref"

From Sega Retro

Line 11: Line 11:
 
| 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:archive.today reference without original link]]}}
 +
 +
|hiddenpalace.org={{#vardefine:refshown|Hidden Palace: {{#replace:{{#explode:{{{1|}}}|/|3}}|_|<nowiki /> <nowiki />}}}}
 +
 
| {{#vardefine:refshown|{{{1|}}}}}
 
| {{#vardefine:refshown|{{{1|}}}}}
 
}}{{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}",&nbsp;}}{{#ifeq:{{#sub:{{{1|}}}|0|1}}|[|{{{1|}}}|[{{{1|}}} {{formatRefLink|1={{#var:refshown}}}}]}} {{#if:{{#var:refarc}}|({{#var:refarc}})}}| name="{{{1|}}}{{{quote|}}}" | group="{{#if:{{{group|}}}|{{{group|}}}}}"}}{{#switch:{{lc:{{fileext|{{{1|}}}}}}}
 
}}{{#tag: ref | {{#if:{{#var:quote}}|"{{#var:quote}}",&nbsp;}}{{#ifeq:{{#sub:{{{1|}}}|0|1}}|[|{{{1|}}}|[{{{1|}}} {{formatRefLink|1={{#var:refshown}}}}]}} {{#if:{{#var:refarc}}|({{#var:refarc}})}}| name="{{{1|}}}{{{quote|}}}" | group="{{#if:{{{group|}}}|{{{group|}}}}}"}}{{#switch:{{lc:{{fileext|{{{1|}}}}}}}
Line 30: Line 33:
 
==Examples==
 
==Examples==
 
*{{ref|http://www.google.com|quote=this is a quote}}
 
*{{ref|http://www.google.com|quote=this is a quote}}
 +
*{{ref|https://hiddenpalace.org/Young_Indiana_Jones_-_Instrument_of_Chaos_(Jan_28,_1994_prototype)}}
  
 
==References==
 
==References==

Revision as of 08:01, 6 March 2022

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

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.