Template:Link

From IFWiki

This template provides a way to store the original URL and/or the URL of an archived snapshot of a web page.

If there is not already an archived snapshot available at the Internet Archive, requesting a snapshot while the link is live will increase the odds 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, see Wikipedia's Help:Using the Wayback Machine page.

Arguments

  • url: Specifies the live URL.
  • deadurl: If you know a URL is dead then change url to deadurl.
  • archive: Specifies the full URL of an archived snapshot of the page (for instance, from the Internet Archive).
  • text (or unnamed parameter): The text that appears on the link (for instance, "Review").

Format

Live links:

  • {{link | url=https://www.original-link.com | archive=https://www.archived-version.com | Link Text}} or
  • {{link | url=https://www.original-link.com | archive=https://www.archived-version.com | text=Link Text}}

Dead links:

  • {{link | deadurl=https://www.original-link.com | archive=https://www.archived-version.com | Link Text}} or
  • {{link | deadurl=https://www.original-link.com | archive=https://www.archived-version.com | text=Link Text}}

Examples

Wikitext Displayed as Explanation
{{link|url=https://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|The Mary Jane of Tomorrow}}


Equivalent to [https://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/ The Mary Jane of Tomorrow]

The Mary Jane of Tomorrow Just url parameter. Normal link.
{{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}} The Mary Jane of Tomorrow Both url and archive parameters present. The link goes to the original URL, and the archive parameter is ignored for now.
{{link|deadurl=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}} The Mary Jane of Tomorrow (archive) You've noticed that the link is dead, so changed url to deadurl. The archive parameter is now used instead. Marked as (archive).
{{link|deadurl=https://emshort.wordpress.com/2016/06/05/the-mary-jane-of-tomorrow/|The Mary Jane of Tomorrow}} The Mary Jane of Tomorrow (dead link 🔍) No url or archive parameter. No link is created. Marked as (dead link), with a search icon that you can click to search for the dead url on the Internet Archive.