| Latest revision |
Your text |
| Line 1: |
Line 1: |
| <includeonly>{{#switch:{{{live|yes}}} | | <includeonly>[{{{url}}} {{{title}}}] ([[archive:{{{url}}}|web.archive.org backup link]])</includeonly> |
| |no|No|N=[[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{url|{{{1|}}}}}}|{{{title|{{{2|}}}}}}]]
| | <noinclude> |
| |yes|Y|Yes|#default=[{{{url|{{{1|}}}}}} {{{title|{{{2|}}}}}}] <small>([[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{url|{{{1|}}}}}}|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 == |
| Named parameters:
| | |
| <pre> | | <pre> |
| {{archivelink | | {{archivelink |
| | url = | | | url = |
| | title = | | | title = |
| | live =
| |
| | date =
| |
| }} | | }} |
| </pre>
| |
|
| |
| Positional parameters:
| |
| <pre>
| |
| {{archivelink|url|title}}
| |
| </pre> | | </pre> |
|
| |
|
| == Fields == | | == Fields == |
|
| |
|
| '''The first two parameters are required.''' | | '''Both fields are required.''' |
| | |
| * '''url''' or '''1''': Full URL of the link to the web page.
| |
| * '''title''' or '''2''': 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.
| |
| * '''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>
| |
|
| |
|
| [[de:{{FULLPAGENAME}}]]
| | * '''url''': Full URL of the link to the web page. |
| | * '''title''': The web page's title. |
|
| |
|
| <templatedata>
| |
| {
| |
| "params": {
| |
| "url": {
| |
| "label": "URL",
| |
| "description": "Full URL of the link to the web page.",
| |
| "type": "url",
| |
| "required": true,
| |
| "aliases": [
| |
| "1"
| |
| ]
| |
| },
| |
| "title": {
| |
| "label": "Title",
| |
| "description": "The web page's title.",
| |
| "type": "line",
| |
| "required": true,
| |
| "aliases": [
| |
| "2"
| |
| ]
| |
| },
| |
| "live": {
| |
| "label": "Live",
| |
| "description": "Site is still live outside of the Wayback Machine. 'Yes' by default. 'No' means that the site is offline, and only available via the Wayback Machine.",
| |
| "type": "string",
| |
| "suggestedvalues": [
| |
| "Yes",
| |
| "No"
| |
| ],
| |
| "default": "Yes",
| |
| "suggested": true
| |
| },
| |
| "date": {
| |
| "label": "Archive Date",
| |
| "description": "Specifies the archive date from the Wayback Machine URL, e.g. 20081011202746.",
| |
| "type": "line",
| |
| "suggested": true
| |
| }
| |
| },
| |
| "paramOrder": [
| |
| "url",
| |
| "title",
| |
| "live",
| |
| "date"
| |
| ],
| |
| "description": "Allows archived links to show up in the event an external website dies or is otherwise unavailable.",
| |
| "format": "inline"
| |
| }
| |
| </templatedata>
| |
| </noinclude> | | </noinclude> |