Difference between revisions of "Template:Archivelink"

From Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guide
(+ de)
(tweak)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>[{{{url}}} {{{title}}}] <small>([[archive:{{{url}}}|web.archive.org backup link]])</small></includeonly><noinclude>
+
<includeonly>{{#switch:{{{live}}}|
 +
|no
 +
|No
 +
|N=[[archive:{{{url}}}|{{{title}}}]]
 +
|yes
 +
|Y
 +
|Yes
 +
|#default=[{{{url}}} {{{title}}}] <small>([[archive:{{{url}}}|web.archive.org backup link]])</small>}}</includeonly><noinclude>
 
= Documentation =
 
= Documentation =
 
This template facilitates the inclusion of linking external websites and tying it into the Internet Wayback Machine's backup system within articles.
 
This template facilitates the inclusion of linking external websites and tying it into the Internet Wayback Machine's backup system within articles.
Line 9: Line 16:
 
| url =
 
| url =
 
| title =
 
| title =
 +
| live =
 
}}
 
}}
 
</pre>
 
</pre>
Line 18: Line 26:
 
* '''url''': Full URL of the link to the web page.
 
* '''url''': Full URL of the link to the web page.
 
* '''title''': The web page's title.
 
* '''title''': The web page's title.
 +
 +
'''Optional fields.'''
 +
 +
* '''live''': Site is still live ''outside'' of the Wayback Machine.
 +
** ''Yes'' by default, '''so there is no need to specify when calling out this template.'''
 +
** ''No'' means that the site is offline, and ''only'' available via the Wayback Machine.
  
 
[[de:{{FULLPAGENAME}}]]
 
[[de:{{FULLPAGENAME}}]]
  
 
</noinclude>
 
</noinclude>

Latest revision as of 12:34, 18 January 2021

Documentation

This template facilitates the inclusion of linking external websites and tying it into the Internet Wayback Machine's backup system within articles.

Usage

{{archivelink
| url =
| title =
| live =
}}

Fields

Both fields are required.

  • url: Full URL of the link to the web page.
  • title: The web page's title.

Optional fields.

  • live: Site is still live outside of the Wayback Machine.
    • Yes by default, so there is no need to specify when calling out this template.
    • No means that the site is offline, and only available via the Wayback Machine.