Template:Wayback: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><onlyinclude><span class="plainlinks" 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>
<nowiki/><includeonly><onlyinclude>{{Advanced link
| {{{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|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 oldest 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
Line 11: Line 25:
{{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 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
 
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}}
{{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
{{Code|<nowiki>{{Wayback|0/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}</nowiki>}} →
{{Wayback|0/https://developer.valvesoftware.com/wiki/Category:English|Category: English}}
No icon mode
{{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