Template:Dead link/doc: Difference between revisions

From FamilySearch Wiki
(Remove other language)
(add note)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> <!--redirect regex: [Dd]ead[ _]+link|[Dd]l|[Dd]eadlink|[Cc]leanup-link|[Dd]l-s|404|[Bb]roken[ _]+link|[Bb]rokenlink -->  
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!--redirect regex: [Dd]ead[ _]+link|[Dd]l|[Dd]eadlink|[Cc]leanup-link|[Dd]l-s|404|[Bb]roken[ _]+link|[Bb]rokenlink -->
{{template shortcut|404|dl|broken link}}


Use {{tl|dead link}} when you find a [[WP:Linkrot|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.
== Usage  ==


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 <code>&lt;/ref&gt;</code> 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).
Use {{tl|dead link}} when you find a {{Wpd|WP:Linkrot|dead external link}} within a paragraph or a reference citation. Doing so will place a note by the URL and add the article to the [[:Category:Articles with dead external links]].
 
{{Note|This template can be used in any [[FamilySearch Wiki:Namespace|namespace]], however, only those in the article namespace will be added to the maintenance [[:Category:Articles with dead external links]].}}<br>
 
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 <code>&lt;/ref&gt;</code> 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).  


== Usage ==
;Common form (with current date)
;Common form (with current date)
<tt>{&#123;dead link|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}</tt>


===Optional parameters===
<tt>{{dead link|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}</tt>
;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: Given in month name followed by year for use by the categorization system. Use <code>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}</code> <br/>If you don't add a date parameter, a bot will date your entry with the month and year at a later time.
=== Optional parameters ===
;bot: [[WP:BOTS|Bot accounts]] will specify the |bot= parameter to notify the others that the page was tagged by an automated process. Set as <code>bot=ExampleBot</code>.
 
;url
:Provides a history of the linked page via {{Wpd|Wayback Machine}}. Set '''only''' if history actually exists, as otherwise it is misleading to users and editors.  
;date
:Given in month name followed by year for use by the categorization system. Use <code>date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}</code> <br>If you don't add a date parameter, a bot will date your entry with the month and year at a later time.  
;bot
:{{Wpd|WP:BOTS|Bot accounts}} will specify the |bot= parameter to notify the others that the page was tagged by an automated process. Set as <code>bot=ExampleBot</code>.
 
== Examples  ==


== Examples ==
*<code><nowiki><ref>{{cite web
*<code><nowiki><ref>{{cite web
|url=http://example.org
|url=http://example.org
Line 24: Line 30:
}} {{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: none repeat scroll 0% 0% white;"><ref>{{cite web|url=http://example.org|title=title|accessdate=2000-01-01}} {{ dead link|date=April 2005}}</ref></span>  
|url=http://example.org
*<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: none repeat scroll 0% 0% 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>
|title=title
 
|accessdate=2000-01-01
<references />
}} {{ dead link
 
|date=April 2005
=== Caveats  ===
}}</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>


<references />
*Avoid using free links (e.g. <code>http://example.org/{{dead link<nowiki></nowiki>}}</code>) as software unable 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 <tt>[ ] { | } &lt; &gt;</tt> character between the end of the external link and <nowiki>{{dead link}}</nowiki>, as they are often use to format text


=== Caveats ===
== See also  ==
* Avoid using free links (e.g. <code>http://example.org/{{dead link<nowiki />}}</code>) as software unable 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 <tt>[ ] { | } < ></tt> character between the end of the external link and <nowiki>{{dead link}}</nowiki>, as they are often use to format text


== See also ==
*{{tl|Wayback}}  
* {{tl|dead links}}
*{{tl|Registration required}}  
* {{tl|Wayback}}
*{{tl|Failed verification}}  
* {{tl|linkrot}}
*{{Wpd|WP:DEADREF|What to do when a reference link goes dead}}
* {{tl|Registration required}}
* {{tl|Failed verification}}
* [[WP:DEADREF|What to do when a reference link goes dead]]


=== Dead link tools ===
=== Dead link tools ===


*[[User:Dispenser/Checklinks|Checklinks]]  
*[[User:Dispenser/Checklinks|Checklinks]]  

Latest revision as of 21:49, 4 September 2012

Usage[edit source]

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 the Category:Articles with dead external links.


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).

Common form (with current date)

[dead link]

Optional parameters[edit source]

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
Given in month name followed by year for use by the categorization system. Use date=August 2025
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 will specify the |bot= parameter to notify the others that the page was tagged by an automated process. Set as bot=ExampleBot.

Examples[edit source]

  • <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, October 27, 2005. Retrieved June 5, 2008.</ref>
    [2]
  1. "title". http://example.org. Retrieved 2000-01-01. [dead link]
  2. Plunkett, John. "Sorrell accuses Murdoch of panic buying",[dead link] The Guardian, London, October 27, 2005. Retrieved June 5, 2008.

Caveats[edit source]

  • Avoid using free links (e.g. http://example.org/{{dead link}}) as software unable 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 use to format text

See also[edit source]

Dead link tools[edit source]