Difference between revisions of "Ref"

From Sega Retro

(improved archive stuff)
m
Line 1: Line 1:
 
<includeonly>{{clearvar|refdomain|refshown|refdate|refarc}}{{#vardefine:refdomain|{{#explode:{{#explode:{{{1|}}}|//|1}}|/|0}}}}{{#switch:{{#var:refdomain}}
 
<includeonly>{{clearvar|refdomain|refshown|refdate|refarc}}{{#vardefine:refdomain|{{#explode:{{#explode:{{{1|}}}|//|1}}|/|0}}}}{{#switch:{{#var:refdomain}}
| web.archive.org={{#vardefine:refshown|http{{#explode:{{{1|}}}|/http|1}}}}{{#vardefine:refdate|{{#explode:{{{1|}}}|/|4}}}}{{#switch:{{#var:refdate}}
+
| web.archive.org={{#vardefine:refshown|htt{{#explode:{{{1|}}}|/htt|1}}}}{{#vardefine:refdate|{{#explode:{{{1|}}}|/|4}}}}{{#switch:{{#var:refdate}}
 
|*={{#vardefine:refarc|Wayback Machine}}
 
|*={{#vardefine:refarc|Wayback Machine}}
 
|{{#vardefine:refarc|Wayback Machine: {{#sub:{{#var:refdate}}|0|4}}-{{#sub:{{#var:refdate}}|4|2}}-{{#sub:{{#var:refdate}}|6|2}} {{#sub:{{#var:refdate}}|8|2}}:{{#sub:{{#var:refdate}}|10|2}}}}
 
|{{#vardefine:refarc|Wayback Machine: {{#sub:{{#var:refdate}}|0|4}}-{{#sub:{{#var:refdate}}|4|2}}-{{#sub:{{#var:refdate}}|6|2}} {{#sub:{{#var:refdate}}|8|2}}:{{#sub:{{#var:refdate}}|10|2}}}}

Revision as of 23:59, 8 September 2020

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.