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...")
 
m (Corrected this template taking into account user opinions)
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>
<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/{{#iferror:{{#ifexpr:{{#titleparts:{{{1|}}}|1|1}}}}|0/}}{{urlencode:{{{1|}}}|WIKI}} {{{2|{{{1}}}}}}]</span></onlyinclude></includeonly>
{{Todo|The quality of the icon leaves much to be desired. It's worth trying to make it less soapy.}}
{{Todo|The quality of the icon leaves much to be desired. It’s worth trying to make it less soapy.}}


== Usage ==
== Usage ==
Link to the latest archived version of the specified page
Link to the oldest 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}}
Line 9: Line 9:
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}}


You can specify the exact or approximate time of the saved site.
To indicate the exact archived version of the site, copy the link from the wayback machine along with the numbers preceding the link to the site
{{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.}}
* 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|20130502233022/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} → {{Wayback|20130502233022/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}}
 
{{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}}

Revision as of 01:57, 24 June 2024

Todo: The quality of the icon leaves much to be desired. It’s worth trying to make it less soapy.

Usage

Link to the oldest archived version of the specified page

{{Wayback|https://developer.valvesoftware.com/wiki/Category:English}}web.archive.org https://developer.valvesoftware.com/wiki/Category:English

Name to display instead of a link

{{Wayback|https://developer.valvesoftware.com/wiki/Category:English|Category: English}}web.archive.org Category: English

To indicate 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}}web.archive.org Category: English