Template:Link with archives/doc
Appearance
![]() | This is a documentation subpage for Template:Link with archives. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | This template may be substituted. |
![]() | This template uses Lua: |
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]{{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)
{{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}}
{{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|date-format=ISO}}
- ↳ As The World Turns, It Drags Space And Time (archived 2004-11-11, 2006-02-22 and 2008-06-19)
{{link with archives|http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html||20080619060938}}
{{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}}
{{link with archives|http://www.nasa.gov/home/hqnews/2004/oct/HQ_04351_time_drags.html}}
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:
- 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}}
- E.g.:
- 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}}
- E.g.:
- 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)
- E.g.:
- If you need more snapshots, repeat point #3
Subpages
[edit]- {{../snapshot}}
See also
[edit]