Template:Archive/doc
This is a documentation subpage for Template:Archive. It may contain usage information, categories and other content that is not part of the original template page. |
This template allows you to link to a Wayback Machine or archive.today capture, and also get the original URL and human-readable timestamp. It also automatically prioritizes the archive if the original is dead, and the original if it is still alive (this may not work for some time after the first edit).
Examples
Wayback Machine
Wikitext | Output |
---|---|
{{Archive | https://web.archive.org/web/20240610002929/https://example.com | Example}} |
Example, archived from the original on 10 June 2024 |
{{Archive | https://web.archive.org/web/202406100029/https://example.com | Example}} |
Example, archived from the original on 10 June 2024 |
{{Archive | https://web.archive.org/web/20240501/https://example.com | Example}} |
Example, archived from the original on 1 May 2024 |
{{Archive | https://web.archive.org/web/2002/https://example.com | Example}} |
Example, archived from the original in 2002 |
{{Archive | https://web.archive.org/web/20230731145239im_/https://i.redd.it/quiaie04cbfb1.png | Explanation of TCP}} |
Explanation of TCP, archived on 31 July 2023 |
A quick primer on TCP is available {{Archive | https://web.archive.org/web/20230731145239im_/https://i.redd.it/quiaie04cbfb1.png | here | inline=true}}. |
A quick primer on TCP is available here (archived on 31 July 2023). |
{{Archive | https://web.archive.org/web/20240610002929/https://example.com | Example | mini=1}} |
|
{{Archive | https://web.archive.org/web/20240416200222oe_/https://wayback-fakeurl.archive.org/yt/93qXvwDpRDY | Rain - How to Train Your Rabbit? }} |
Rain - How to Train Your Rabbit?, archived on 16 April 2024 |
archive.today
Wikitext | Output |
---|---|
{{Archive | https://archive.today/2029.12.31-235959/http://example.com | Example}} |
Example, archived from the original on 31 December 2029 |
{{Archive | https://archive.today/20190102/https://example.com | Example}} |
Example, archived from the original on 2 January 2019 |
An easy to use test site is {{Archive | https://archive.today/2029.12.31-235959/http://example.com | example.com | inline=1}}. |
An easy to use test site is example.com (archived from the original on 31 December 2029). |
{{Archive | https://archive.today/2029.12.31-235959/http://example.com | Example | mini=1}} |
Template data
This template allows you to link to a Wayback Machine or archive.today capture, and also get the original URL and human-readable timestamp
Parameter | Description | Type | Status | |
---|---|---|---|---|
Archive URL | 1 | no description
| URL | required |
Title/Link text | 2 | no description
| Content | required |
Inline | inline | Whether or not this template is used inline in a paragraph
| Boolean | optional |
Mini | mini | Whether or not to display the source URL as a superscript "[src]" instead of the long-form "archived from the original"
| Boolean | optional |