Template:Wayback

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

archive copy

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
Template data
<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.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


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

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

Deutsch  English  français  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
Link to page history using a title
{{Wayback |url= http://example.org/ |title= Example Title }}
Example Title
Link to archived page for a specific date
{{Wayback |url= http://example.org/ |title= Example Title |date= 20020121085054 }}
Example Title
Link with "archived" as the link title
{{Wayback |url= http://example.org/ |title= no |date= 20020121085054 }}
archived