Template:Wayback/doc: Difference between revisions

m
6 revisions imported: Import from https://sims.wikia.com
sims>K6ka
No edit summary
m (6 revisions imported: Import from https://sims.wikia.com)
 
(4 intermediate revisions by 2 users not shown)
Line 1:
;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 [httphttps://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
Line 6:
 
<pre>
{{Wayback|url=|title=|date=|df=}}
</pre>
 
:'''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 a the full archive link using the URL you supply in this parameter.
 
:'''date''' (optional but recommended)
Line 17:
::'''To find the timestamp''', go to the URL of the archived page. For example:
 
:::<nowiki>httphttps://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.
Line 23:
:'''title''' (optional but recommended)
::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)
::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
'''Link to page history, using a generic label'''
Line 45:
 
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 }}
 
'''As above, but with DMY date ordering'''
 
<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 }}
 
;Credits
:This template's code originated from the [[wikipedia:Template:Wayback|original version on Wikipedia]].
<noinclude>[[Category:Template documentation]]</noinclude>