Jump to content

Template:Link with archives/doc

From Wikipedia, the free encyclopedia

This template facilitates the creation of links that show their older versions archived on the Wayback Machine.

Usage

[edit]
Syntax
{{Link with archives|original URL|[text to show]|timestamp 1|timestamp 2| ... |timestamp N|[archive-date=...]}}

At least one timestamp should be provided. The timestamp is the number that appears before the original URL in the Wayback Machine URL – yellow in the following example:

https://web.archive.org/web/20080619060938/http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html

The |date-format= optional parameter controls the format in which the links to the archive are to be displayed. Recognized values are:

  • DMY gives d mmmm yyyy (e.g. 31 May 2007). This is the default format.
  • MDY gives mmmm d, yyyy (e.g. May 31, 2007)
  • YMD gives yyyy mmmm d (e.g. 2007 May 31)
  • ISO gives an ISO 8601 style yyyy-mm-dd (e.g. 2007-05-31)

Examples

[edit]

The template can also be written across multiple lines

{{Link with archives
	| http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html
	| As The World Turns, It Drags Space And Time
	| 20041111092435
	| 20060222051642
	| 20080619060938
}}

The code above yields:

As The World Turns, It Drags Space And Time (archived 11 November 2004, 22 February 2006 and 19 June 2008)

Tips for a quick usage

[edit]

For a quick usage you can follow these simple steps:

  1. Transclude the template with only the URL you need (one parameter)
    E.g.: {{link with archives|http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html}}
    http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html (search for an archived version of this page)
  2. Click on the link you provided, find the title of the page, and paste it as the second parameter
    E.g.: {{link with archives|http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html|As The World Turns, It Drags Space And Time}}
    As The World Turns, It Drags Space And Time (search for an archived version of this page)
  3. Click on “search for an archived version of this page” and find the best snapshot that suits you, then copy and paste the timestamp as the third parameter
    E.g.: {{link with archives|http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html|As The World Turns, It Drags Space And Time|20080619060938}}
    As The World Turns, It Drags Space And Time (archived 19 June 2008)
  4. If you need more snapshots, repeat point #3

Subpages

[edit]

See also

[edit]