Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Link with archives/doc

From Wikipedia, the free encyclopedia

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

Usage

[edit]
Syntax
{{Link with archives|original URL|label|timestamp|date-format=...}}

The original URL and the timestamp have to be provided. The timestamp is the number that appears before the original URL in the Wayback Machine URL – as 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
}}

The code above yields:

As The World Turns, It Drags Space And Time (archived 11 November 2004)

See also

[edit]