This page is protected against editing.

Template:Wayback

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

archive copy at the Wayback Machine

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Wayback/doc.

This template generates a link to archived pages or page histories at the Internet Archive Wayback Machine (https://web.archive.org).

Usage

{{Wayback |1= |2= |date= }}

Template parameters

ParameterDescriptionDefaultStatus
1
site
url
URLOriginal URL of the web page that archived. Example: http://example.org/ (the template automatically generates the full archive link).emptyrequired
2
title
titleThe text label for the external link.archive copyoptional
datetimestampThe timestamp (YYYYMMDDhhmmss) of the archived page that is to be displayed, or * to list all archives. For example, if the archived URL is http://web.archive.org/web/20020121085054/http://example.org/ then the timestamp is 20020121085054.*optional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This template generates a link to archived pages or page histories at the Internet Archive Wayback Machine (https://web.archive.org).

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
URL1 site url

Original URL of the web page that archived. Example: http://example.org/ (the template automatically generates the full archive link).

URLrequired
title2 title

The text label for the external link.

Default
archive copy
Lineoptional
timestampdate

The timestamp (YYYYMMDDhhmmss) of the archived page that is to be displayed, or * to list all archives. For example, if the archived URL is http://web.archive.org/web/20020121085054/http://example.org/ then the timestamp is 20020121085054.

Default
*
Lineoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Example

{{Wayback|http://example.org/}}

renders as:

Localization

English  français  Deutsch  italiano  magyar  português  বাংলা  العربية  македонски  +/−

This template makes use of {{Autotranslate}} and the translate extension.


Additional 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
{{Wayback |url= http://example.org/ |title= Example Title }}
Example Title at the Wayback Machine
Link to archived page for a specific date
{{Wayback |url= http://example.org/ |title= Example Title |date= 20020121085054 }}
Example Title at the Wayback Machine
Link with "archived" as the link title
{{Wayback |url= http://example.org/ |title= no |date= 20020121085054 }}
archived at the Wayback Machine