Template:Wayback: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "<includeonly><onlyinclude><span dir="{{Text-dir|ltr=ltr|rtl=rtl}}"><span style="user-select:none">link=|16px|web.archive.org </span>[https://web.arch...")
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><onlyinclude><span dir="{{Text-dir|ltr=ltr|rtl=rtl}}"><span style="user-select:none">[[File:icon-Wayback.png|link=|16px|web.archive.org]] </span>[https://web.archive.org/web/{{{time|9}}}/{{urlencode:{{{1|}}}|WIKI}} {{{2|{{{1|}}}}}}]</span></onlyinclude></includeonly>
<nowiki/><includeonly><onlyinclude>{{Advanced link
{{Todo|The quality of the icon leaves much to be desired. It's worth trying to make it less soapy.}}
| {{{show|}}}
| icon = icon-Wayback.png
| external =
| link = https://web.archive.org/web/{{urlencode:{{{1|}}}|WIKI}}
| name = {{{2|{{{1|Wayback Machine}}}}}}
}}</onlyinclude></includeonly>
 
{{Todo|The quality of the icon leaves much to be desired. It’s worth trying to make it less soapy.}}
{{Todo|Add to {{T|External link templates}}}}


== Usage ==
== Usage ==
Link to the latest archived version of the specified page
Link to the Wayback Machine website
 
{{Code|<nowiki>{{Wayback}}</nowiki>}} → {{Wayback}}
 
 
Link to the newest archived version of the specified page


{{Code|<nowiki>{{Wayback|https://developer.valvesoftware.com/wiki/Category:English}}</nowiki>}} → {{Wayback|https://developer.valvesoftware.com/wiki/Category:English}}
{{Code|<nowiki>{{Wayback|https://developer.valvesoftware.com/wiki/Category:English}}</nowiki>}} → {{Wayback|https://developer.valvesoftware.com/wiki/Category:English}}


Name to display instead of a link
Name to display instead of a link


{{Code|<nowiki>{{Wayback|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} → {{Wayback|https://developer.valvesoftware.com/wiki/Category: English|Category: English}}
{{Code|<nowiki>{{Wayback|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} → {{Wayback|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}
 
 
To specify the exact archived version of the site, copy the link from the wayback machine along with the numbers preceding the link to the site
 
{{Code|<nowiki>{{Wayback|20130502233022/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} → {{Wayback|20130502233022/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}
 
 
To specify the oldest version, you can add {{Code|0/}} before the link


You can specify the exact or approximate time of the saved site.
{{Code|<nowiki>{{Wayback|0/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}}
{{Note|The following statements may not be entirely correct, since the system for choosing the site version by specifying the date is based on how web.archive.org itself perceives it.}}
{{Wayback|0/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}
* The default value is 9, which leads to opening the most recently saved version of the site.
* If you specify {{Code|&#42;}} then a general page will open with all the marks when the site was saved.
* If you specify 0, the oldest saved version of the site will be opened.
* If you specify 2020, the latest version of the site saved in 2020 will open.
* If you need to indicate a more precise date, then all numbers must be written together, without dots or spaces. For example, the number {{Code|20220419113054}} means 2022 year, April, 19th, 11 hours, 30 minutes and 54 seconds. This is the full date format. It is not necessary to include all values. You can enter {{Code|202101}} and the last saved page for January 2021 will open.


{{Code|<nowiki>{{Wayback|time=0|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} → {{Wayback|time=0|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}


{{Code|<nowiki>{{Wayback|time=*|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} → {{Wayback|time=*|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}
No icon mode


{{Code|<nowiki>{{Wayback|time=2021|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} → {{Wayback|time=2021|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}
{{Code|<nowiki>{{Wayback|show=link|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} →  
{{Wayback|show=link|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}

Latest revision as of 02:28, 13 October 2025

Todo: The quality of the icon leaves much to be desired. It’s worth trying to make it less soapy.
Todo: Add to {{External link templates}}

Usage

Link to the Wayback Machine website

{{Wayback}}Icon-Wayback.png Wayback Machine


Link to the newest archived version of the specified page

{{Wayback|https://developer.valvesoftware.com/wiki/Category:English}}Icon-Wayback.png https://developer.valvesoftware.com/wiki/Category:English


Name to display instead of a link

{{Wayback|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}Icon-Wayback.png Category: English


To specify the exact archived version of the site, copy the link from the wayback machine along with the numbers preceding the link to the site

{{Wayback|20130502233022/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}Icon-Wayback.png Category: English


To specify the oldest version, you can add 0/ before the link

{{Wayback|0/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}Icon-Wayback.png Category: English


No icon mode

{{Wayback|show=link|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}Category: English