Difference between revisions of "Template:Link"

From IFWiki
Jump to: navigation, search
Line 2: Line 2:
 
<noinclude>
 
<noinclude>
 
<hr>
 
<hr>
The "link" template provides a way to store both the original URL and the URL of an archived snapshot of the page. If the original link should die, inserting the word "dead" in front of "link" will switch it over to the "dead link" template instead, which uses the archive URL.
+
The "link" template provides a way to store both the original URL and the URL of an archived snapshot of the page. If the original link should die, inserting the word "dead" in front of "link" will switch it over to the "dead link" template instead. The "dead link" template points to the archive URL.
  
 
If there is not already an archived snapshot available at the Internet Archive, requesting a snapshot while the link is live will ensure that at least one snapshot will be available later if the link dies.
 
If there is not already an archived snapshot available at the Internet Archive, requesting a snapshot while the link is live will ensure that at least one snapshot will be available later if the link dies.
  
 
To search for a snapshot of a page or take a new snapshot with minimal clicking, you can add [https://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine#JavaScript_bookmarklet bookmarklets] to your browser bookmarks.
 
To search for a snapshot of a page or take a new snapshot with minimal clicking, you can add [https://en.wikipedia.org/wiki/Help:Using_the_Wayback_Machine#JavaScript_bookmarklet bookmarklets] to your browser bookmarks.
 
+
<hr>
Arguments for this template:
+
====Arguments for this template:====
 
* <tt>'''url'''</tt> (required) the original link.
 
* <tt>'''url'''</tt> (required) the original link.
 
* <tt>'''archive'''</tt> (recommended): the full url of an archived snapshot of the link.
 
* <tt>'''archive'''</tt> (recommended): the full url of an archived snapshot of the link.
* link text (unnamed parameter): the text that appears on the wiki page (for instance, "Review").
+
* link text (optional, unnamed parameter): the text that appears on the wiki page (for instance, "Review").
 
+
<hr>
For example, when the "link" template is used, the following
+
====Example:====
 
+
The following
<tt><nowiki>{{link|url=http://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|archive=https://web.archive.org/web/20160608153033/http://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|The Mary Jane of Tomorrow}}</nowiki></tt>
+
 
+
shows up as
+
  
[http://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/ The Mary Jane of Tomorrow]
+
<tt><nowiki>{{link|url=https://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|archive=https://web.archive.org/web/20160608153033/http://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|The Mary Jane of Tomorrow}}</nowiki></tt>
  
and leads to the original link.
+
shows up as [http://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/ The Mary Jane of Tomorrow] and leads to the original link.
  
  

Revision as of 16:37, 8 June 2016

[{{{url}}} {{{1}}}]


The "link" template provides a way to store both the original URL and the URL of an archived snapshot of the page. If the original link should die, inserting the word "dead" in front of "link" will switch it over to the "dead link" template instead. The "dead link" template points to the archive URL.

If there is not already an archived snapshot available at the Internet Archive, requesting a snapshot while the link is live will ensure that at least one snapshot will be available later if the link dies.

To search for a snapshot of a page or take a new snapshot with minimal clicking, you can add bookmarklets to your browser bookmarks.


Arguments for this template:

  • url (required) the original link.
  • archive (recommended): the full url of an archived snapshot of the link.
  • link text (optional, unnamed parameter): the text that appears on the wiki page (for instance, "Review").

Example:

The following

{{link|url=https://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|archive=https://web.archive.org/web/20160608153033/http://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|The Mary Jane of Tomorrow}}

shows up as The Mary Jane of Tomorrow and leads to the original link.