Template:Wayback

From Wikispooks
Jump to navigation Jump to search

Archive copy at the Wayback Machine

Template documentation[view] [edit] [history] [purge]

{{Wayback}} is intended to simplify the linking process to files at the Internet Archive "Wayback Machine".

When to use

Use this for External links to a relevant website that is no longer online.

When not to use

Avoid using this template for bibliographic citations. This template does not provide important bibliographic information, such as authors, publisher, or publication date.

The CS1 citation templates, such as {{Cite web}} and {{Cite news}}, all support archive links within them. To add an archive link to those templates, simply add |archive-url= with the URL to the Internet Archive (or other archiving service), and then add |archive-date= with the date and |dead-url=yes if the original link is dead.

Parameters

{{Wayback|url=}}

{{Wayback|url=|title=|date=}}

url
The URL of the link that is being referenced in the Internet Archives; not the link to the archive.org page, the template will automatically generate the full archive link using the URL of the referenced page.
title (optional)
The text label for the external link. If this is omitted, a generic 'Archive copy' label will be used.
date (optional, but recommended)
The Internet Archive timestamp (YYYYMMDDhhmmss) for the date of the archived page that is to be displayed. If provided, the Template will format the date and display it: Month-name, day-number, year. If omitted, the history of the referenced page will be listed instead. You must use the full 4 digits for the year, and 2 digits for month, day, hour minute and second. Use leading zeros if necessary, and use a 24 hour clock for the time.
df (optional)
When a date is specified, set this to "yes" to output dates day-first (e.g. 31 October 2024 rather than October 31, 2024).

Examples

Link to page history, using a generic label
{{Wayback |url=http://example.org/ }}
Archive copy at the Wayback Machine
Link to page history, using a title rather than the generic label
{{Wayback |url=http://example.org/ |title=Example Title }}
Example Title at the Wayback Machine
Link to page history using a title, and displaying a particular archived date (2005-01-07, at 12:30 pm and 45 seconds.)
{{Wayback |url=http://example.org/ |title=Example Title |date=20050107123045 }}
Example Title at the Wayback Machine (archived January 7, 2005)
As above, but with DMY date ordering
{{Wayback |url=http://example.org/ |title=Example Title |date=20050107123045 |df=yes }}
Example Title at the Wayback Machine (archived 7 January 2005)
As above, but without title
{{Wayback |url=http://example.org/ |date=20050107123045 |df=yes }}
Archived 7 January 2005 at the Wayback Machine

Redirects

See also

External links