Difference between revisions of "Template:Dead link/doc"

From blackwiki
Jump to navigation Jump to search
imported>Rich Farmbrough
imported>Rich Farmbrough
(Date formats)
Line 13: Line 13:
  
 
;Common form (with current date)
 
;Common form (with current date)
<tt>{&#123;dead link|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}</tt>
+
<tt>{&#123;Dead link|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}</tt>
  
 
===Optional parameters===
 
===Optional parameters===
Line 20: Line 20:
 
;bot: [[WP:BOTS|Bot accounts]] specify the |bot= parameter as a sign that the tag was added by an automated process.  Set as <code>bot=<bot name></code>.
 
;bot: [[WP:BOTS|Bot accounts]] specify the |bot= parameter as a sign that the tag was added by an automated process.  Set as <code>bot=<bot name></code>.
  
== Examples ==
+
==Examples==
*<code><nowiki><ref>{{cite web
+
*<code><nowiki><ref>{{Cite web
 
|url=http://example.org
 
|url=http://example.org
 
|title=title
 
|title=title
Line 27: Line 27:
 
}} {{dead link
 
}} {{dead link
 
|date=April 2005
 
|date=April 2005
}}</ref></nowiki></code><br/>→ <span style="background:white"><ref>{{cite web
+
}}</ref></nowiki></code><br/>→ <span style="background:white"><ref>{{Cite web
 
|url=http://example.org
 
|url=http://example.org
 
|title=title
 
|title=title
 
|accessdate=2000-01-01
 
|accessdate=2000-01-01
}} {{ dead link
+
}} {{Dead link
 
|date=April 2005
 
|date=April 2005
 
}}</ref></span>
 
}}</ref></span>
*<code><nowiki><ref>Plunkett, John. [http://media.guardian.co.uk/site/story/0,14173,1601858,00.html "Sorrell accuses Murdoch of panic buying"],{{dead link}} ''The Guardian'', London, October 27, 2005. Retrieved June 5, 2008.</ref></nowiki></code><br/>→ <span style="background:white"><ref>Plunkett, John. [http://media.guardian.co.uk/site/story/0,14173,1601858,00.html "Sorrell accuses Murdoch of panic buying"],{{dead link}} ''The Guardian'', London, October 27, 2005. Retrieved June 5, 2008.</ref></span>
+
*<code><nowiki><ref>Plunkett, John. [http://media.guardian.co.uk/site/story/0,14173,1601858,00.html "Sorrell accuses Murdoch of panic buying"],{{dead link}} ''The Guardian'', London, 27 October 2005. Retrieved 5 June 2008.</ref></nowiki></code><br/>→ <span style="background:white"><ref>Plunkett, John. [http://media.guardian.co.uk/site/story/0,14173,1601858,00.html "Sorrell accuses Murdoch of panic buying"],{{Dead link}} ''The Guardian'', London, 27 October 2005. Retrieved 5 June 2008.</ref></span>
  
 
<references />
 
<references />
Line 58: Line 58:
  
 
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 +
 
[[Category:External link maintenance templates|{{PAGENAME}}]]
 
[[Category:External link maintenance templates|{{PAGENAME}}]]
 
[[Category:External link templates|{{PAGENAME}}]]
 
[[Category:External link templates|{{PAGENAME}}]]

Revision as of 16:16, 13 October 2010

Usage

Use {{Dead link}} when you find a dead external link within a paragraph or a reference citation. Doing so will place a note by the URL and add the article to one of the Category:Articles with dead external links categories.

Append this template directly after the link or template, leaving the original link intact. Not doing so will prevent detection from automated tools. This tag should be placed just before the </ref> that contains the dead link. The notice will then appear in the footnote reference (instead of in the body of the text, which is not recommended).

In citations that contain multiple URLs (e.g. chapterurl and url), where links are formed by the template and thus cannot be followed by the dead link template, the above instruction is inadequate.


Common form (with current date)

{{Dead link|date=January 2026}}

Optional parameters

url
Provides a history of the linked page via Wayback Machine. Set only if history actually exists, as otherwise it is misleading to users and editors.
date
Month name followed by year, for use by the categorization system. Use date=January 2026
If you don't add a date parameter, a bot will date your entry with the month and year at a later time.
bot
Bot accounts specify the |bot= parameter as a sign that the tag was added by an automated process. Set as bot=<bot name>.

Examples

  • <ref>{{Cite web |url=http://example.org |title=title |accessdate=2000-01-01 }} {{dead link |date=April 2005 }}</ref>
    [1]
  • <ref>Plunkett, John. [http://media.guardian.co.uk/site/story/0,14173,1601858,00.html "Sorrell accuses Murdoch of panic buying"],{{dead link}} ''The Guardian'', London, 27 October 2005. Retrieved 5 June 2008.</ref>
    [2]
  1. "title". Retrieved 2000-01-01. Check date values in: |accessdate= (help)[dead link]
  2. Plunkett, John. "Sorrell accuses Murdoch of panic buying",[dead link] The Guardian, London, 27 October 2005. Retrieved 5 June 2008.

Caveats

  • Avoid using free links (e.g. http://example.org/{{dead link}}) as software unable to handle templates may read an incorrect link. Add brackets if necessary.
  • Avoid complicated formatting. Nesting inside a template is generally not supported well.
  • Avoid using [ ] { | } < > character between the end of the external link and {{dead link}}, as they are often used to format text

See also

Dead link tools