Template:Archivelink: Difference between revisions
Template page
More languages
More actions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{live}}} | <includeonly>{{#switch:{{{live|yes}}} | ||
|no | |no|No|N=[[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{url|{{{1|}}}}}}|{{{title|{{{2|}}}}}}]] | ||
|No | |yes|Y|Yes|#default=[{{{url|{{{1|}}}}}} {{{title|{{{2|}}}}}}] <small>([[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{url|{{{1|}}}}}}|web.archive.org backup link]])</small> | ||
|N=[[archive:{{#if:{{{date|}}}|{{{date}}}/}}{{{url}}}|{{{title}}}]] | }}</includeonly><noinclude> | ||
|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 == | ||
Named parameters: | |||
<pre> | <pre> | ||
{{archivelink | {{archivelink | ||
| url = | | url = | ||
| title = | | title = | ||
| live = | | live = | ||
| date = | | date = | ||
}} | }} | ||
</pre> | |||
Positional parameters: | |||
<pre> | |||
{{archivelink|url|title}} | |||
</pre> | </pre> | ||
== Fields == | == Fields == | ||
''' | '''The first two parameters are required.''' | ||
* '''url''': Full URL of the link to the web page. | * '''url''' or '''1''': Full URL of the link to the web page. | ||
* '''title''': The web page's title. | * '''title''' or '''2''': 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 41: | Line 42: | ||
{ | { | ||
"params": { | "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": { | "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", | "type": "string", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Yes, No" | "Yes", | ||
] | "No" | ||
], | |||
"default": "Yes", | |||
"suggested": true | |||
}, | }, | ||
"date": { | "date": { | ||
" | "label": "Archive Date", | ||
"description": "Specifies the archive date from the Wayback Machine URL, e.g. 20081011202746.", | |||
"type": "line", | |||
"type": " | "suggested": true | ||
" | |||
} | } | ||
}, | }, | ||
"description": "Allows archived links to show up in the event an external website dies or is otherwise unavailable." | "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> | </templatedata> | ||
</noinclude> | |||
Latest revision as of 01:03, 10 August 2025
Documentation
editThis template facilitates the inclusion of linking external websites and tying it into the Internet Wayback Machine's backup system within articles.
Usage
editNamed parameters:
{{archivelink
| url =
| title =
| live =
| date =
}}
Positional parameters:
{{archivelink|url|title}}
Fields
editThe first two parameters 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 https://web.archive.org/web/20081011202746/http://tviv.org/wiki/Battlestar_Galactica_(2003)/Flashlight
Allows archived links to show up in the event an external website dies or is otherwise unavailable.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| URL | url 1 | Full URL of the link to the web page. | URL | required |
| Title | title 2 | The web page's title. | Line | required |
| Live | live | 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.
| String | suggested |
| Archive Date | date | Specifies the archive date from the Wayback Machine URL, e.g. 20081011202746. | Line | suggested |