Editing Template:Archivelink
Template page
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{live | <includeonly>{{#switch:{{{live}}}| | ||
|no|No|N=[[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{url | |no | ||
|yes|Y|Yes|#default=[{{{url | |No | ||
}}</includeonly><noinclude> | |N=[[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{url}}}|{{{title}}}]] | ||
|yes | |||
|Y | |||
|Yes | |||
|#default=[{{{url}}} {{{title}}}] <small>([[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{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. | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{archivelink | {{archivelink | ||
| url = | | url = | ||
| title = | | title = | ||
| live = | | live = | ||
| date = | | date = | ||
}} | }} | ||
</pre> | </pre> | ||
== Fields == | == Fields == | ||
''' | '''Both fields are required.''' | ||
* '''url | * '''url''': Full URL of the link to the web page. | ||
* '''title | * '''title''': The web page's title. | ||
'''Optional fields.''' | '''Optional fields.''' | ||
* '''live''': Site is still live ''outside'' of the Wayback Machine. | * '''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.''' | ** ''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. | ** ''No'' means that the site is offline, and ''only'' available via the Wayback Machine. | ||
* '''date''': Specifies the date, which can typically be found in the URL. | * '''date''': Specifies the date, which can typically be found in the URL. | ||
** Example: '''20081011202746''' in the url <nowiki>https://web.archive.org/web/</nowiki>'''20081011202746'''<nowiki>/http://tviv.org/wiki/Battlestar_Galactica_(2003)/Flashlight</nowiki> | ** Example: '''20081011202746''' in the url <nowiki>https://web.archive.org/web/</nowiki>'''20081011202746'''<nowiki>/http://tviv.org/wiki/Battlestar_Galactica_(2003)/Flashlight</nowiki> | ||
[[de:{{FULLPAGENAME}}]] | [[de:{{FULLPAGENAME}}]] | ||
| Line 42: | Line 41: | ||
{ | { | ||
"params": { | "params": { | ||
"live": { | "live": { | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
| Line 68: | Line 47: | ||
"No" | "No" | ||
], | ], | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"date": { | "date": { | ||
"type": "line", | "type": "line", | ||
"suggested": true | "suggested": true | ||
}, | |||
"url": { | |||
"type": "url", | |||
"required": true | |||
}, | |||
"title": { | |||
"type": "line", | |||
"required": true | |||
} | } | ||
}, | }, | ||
"description": "Allows archived links to show up in the event an external website dies or is otherwise unavailable." | |||
"description": "Allows archived links to show up in the event an external website dies or is otherwise unavailable. | |||
} | } | ||
</templatedata> | </templatedata></noinclude> | ||
</noinclude> | |||