Template:Wayback/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>K6ka (←Created page with ";Description :This template can be used in footnotes as an easy link to a page's entry at the [[wikipedia:Wayback Machine|Wayback Machine...") |
m (6 revisions imported: Import from https://sims.wikia.com) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
;Description |
;Description |
||
:This template can be used in [[Help:Cite|footnotes]] as an easy link to a page's entry at the [[wikipedia:Wayback Machine|Wayback Machine]]. This is especially important for fixing a dead link (a link whose target no longer exists). The Wayback Machine can "go back in time" and display a page at what it looked like during a particular time period. For example, at [ |
:This template can be used in [[Help:Cite|footnotes]] as an easy link to a page's entry at the [[wikipedia:Wayback Machine|Wayback Machine]]. This is especially important for fixing a dead link (a link whose target no longer exists). The Wayback Machine can "go back in time" and display a page at what it looked like during a particular time period. For example, at [https://web.archive.org/web/19990117032727/http://www.google.com/ this URL] we can see what Google looked like on January 17, 1999. Nostalgic, right? |
||
;Usage |
;Usage |
||
Line 6: | Line 6: | ||
<pre> |
<pre> |
||
{{Wayback|url=|title=|date |
{{Wayback|url=|title=|date=}} |
||
</pre> |
</pre> |
||
:'''url''' |
:'''url''' |
||
::This is for the URL of the page that is being referenced ''by'' the Wayback Machine - '''not the actual URL of the archive on the Wayback Machine'''. This template will automatically generate |
::This is for the URL of the page that is being referenced ''by'' the Wayback Machine - '''not the actual URL of the archive on the Wayback Machine'''. This template will automatically generate the full archive link using the URL you supply in this parameter. |
||
:'''date''' (optional but recommended) |
:'''date''' (optional but recommended) |
||
Line 17: | Line 17: | ||
::'''To find the timestamp''', go to the URL of the archived page. For example: |
::'''To find the timestamp''', go to the URL of the archived page. For example: |
||
:::<nowiki> |
:::<nowiki>https://web.archive.org/web/</nowiki><span style="color:#FF0000">20060529225355</span><nowiki>/http://sims.wikia.com/wiki/Main_Page</nowiki> |
||
::The numbers that are highlighted in red is the Wayback Machine archive timestamp. Copy that and paste it into the date parameter. |
::The numbers that are highlighted in red is the Wayback Machine archive timestamp. Copy that and paste it into the date parameter. |
||
Line 23: | Line 23: | ||
:'''title''' (optional but recommended) |
:'''title''' (optional but recommended) |
||
::The text label for the external link. If this is omitted, a generic 'Archive copy' label will be used. |
::The text label for the external link. If this is omitted, a generic 'Archive copy' label will be used. |
||
<!-- NOT WORKING - requires a template that doesn't exist on The Sims Wiki |
|||
:'''df''' (optional) |
:'''df''' (optional) |
||
::When a date is specified, set this to "yes" to output dates day-first (e.g. {{#time:j F Y}} rather than {{#time:F j, Y}}). |
::When a date is specified, set this to "yes" to output dates day-first (e.g. {{#time:j F Y}} rather than {{#time:F j, Y}}). |
||
--> |
|||
;Examples |
;Examples |
||
Link to page history, using a generic label |
'''Link to page history, using a generic label''' |
||
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page}}</nowiki> |
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page}}</nowiki> |
||
Line 34: | Line 34: | ||
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page}} |
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page}} |
||
Link to page history, using a title rather than the generic label |
'''Link to page history, using a title rather than the generic label''' |
||
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki}}</nowiki> |
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki}}</nowiki> |
||
Line 40: | Line 40: | ||
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki}} |
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki}} |
||
Link to page history using a title, and displaying a particular archived date (March 30, 2009 at 04:29:21) |
'''Link to page history using a title, and displaying a particular archived date (March 30, 2009 at 04:29:21)''' |
||
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki, a database for The Sims series that anyone can edit |date=20090330042921 }}</nowiki> |
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki, a database for The Sims series that anyone can edit |date=20090330042921 }}</nowiki> |
||
Line 46: | Line 46: | ||
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki, a database for The Sims series that anyone can edit |date=20090330042921 }} |
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki, a database for The Sims series that anyone can edit |date=20090330042921 }} |
||
;Credits |
|||
As above, but with DMY date ordering |
|||
:This template's code originated from the [[wikipedia:Template:Wayback|original version on Wikipedia]]. |
|||
<noinclude>[[Category:Template documentation]]</noinclude> |
|||
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki, a database for The Sims series that anyone can edit |date=20090330042921 |df=yes }}</nowiki> |
|||
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki, a database for The Sims series that anyone can edit |date=20090330042921 |df=yes }} |
|||
As above, but without title |
|||
<nowiki>{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |date=20090330042921 |df=yes }}</nowiki> |
|||
Produces: {{Wayback |url=http://sims.wikia.com/wiki/Main_Page |date=20090330042921 |df=yes }} |
Latest revision as of 00:57, 10 March 2019
- Description
- This template can be used in footnotes as an easy link to a page's entry at the Wayback Machine. This is especially important for fixing a dead link (a link whose target no longer exists). The Wayback Machine can "go back in time" and display a page at what it looked like during a particular time period. For example, at this URL we can see what Google looked like on January 17, 1999. Nostalgic, right?
- Usage
- This template has the following parameters:
{{Wayback|url=|title=|date=}}
- url
- This is for the URL of the page that is being referenced by the Wayback Machine - not the actual URL of the archive on the Wayback Machine. This template will automatically generate the full archive link using the URL you supply in this parameter.
- date (optional but recommended)
- The Internet Archive timestamp (YYYYMMDDhhmmss) for the date of the archived page that is to be displayed. If provided, the template will format the date and display it: Month-name, day-number, year. If omitted, the history of the referenced page will be listed instead. You must use the full 4 digits for the year, and 2 digits for month, day, hour minute and second. Use leading zeros if necessary, and use a 24 hour clock for the time.
- To find the timestamp, go to the URL of the archived page. For example:
- https://web.archive.org/web/20060529225355/http://sims.wikia.com/wiki/Main_Page
- The numbers that are highlighted in red is the Wayback Machine archive timestamp. Copy that and paste it into the date parameter.
- title (optional but recommended)
- The text label for the external link. If this is omitted, a generic 'Archive copy' label will be used.
- Examples
Link to page history, using a generic label
{{Wayback |url=http://sims.wikia.com/wiki/Main_Page}}
Produces: Archive copy at the Wayback Machine
Link to page history, using a title rather than the generic label
{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki}}
Produces: The Sims Wiki at the Wayback Machine
Link to page history using a title, and displaying a particular archived date (March 30, 2009 at 04:29:21)
{{Wayback |url=http://sims.wikia.com/wiki/Main_Page |title=The Sims Wiki, a database for The Sims series that anyone can edit |date=20090330042921 }}
Produces: The Sims Wiki, a database for The Sims series that anyone can edit at the Wayback Machine (archived March 30, 2009)
- Credits
- This template's code originated from the original version on Wikipedia.