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

From blackwiki
Jump to navigation Jump to search
(Templates)
imported>Koveras
m (Undid revision 444780684 by 208.54.39.171 (talk))
Line 1: Line 1:
tp://example.org
+
{{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 -->
 +
{{Template shortcut|404|dl|Broken link}}
 +
 
 +
==Usage==
 +
Use {{Tl|Dead link}} when you find a [[WP:Linkrot|dead link]] to a website within a paragraph or a [[WP:CITE|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.  If the citation contains multiple URLs (e.g. chapterurl and url) in a template, and only one is broken, you can use <code><nowiki><!-- hidden text --></nowiki></code> to explain which one is broken.
 +
 
 +
If the article uses [[WP:Footnotes|clickable footnotes]], then this tag should be placed just before the <code>&lt;/ref&gt;</code> that contains the dead link. The notice will then correctly appear in the reference section (instead of in the body of the text, which is not recommended).
 +
 
 +
Avoid using this template to identify dead [[WP:External links]] that are ''not'' used as references for article content.  Instead, dead external links should normally be removed.  See [[WP:EL#What_can_be_done_with_a_dead_external_link|the guideline for External links]].
 +
 
 +
;Common form (with current date)
 +
<tt>{&#123;Dead link|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}</tt>
 +
 
 +
===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 <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: [[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==
 +
*<code><nowiki><ref>{{Cite web
 +
|url=http://example.org
 
|title=title
 
|title=title
|accessdate=2011-08-15
+
|accessdate=2000-01-01
}} {{Dead linki
+
}} {{Dead link
}}<>Org
+
|date=April 2005
*<code><nowiki><ref>Plunkett, John. [http:/guardian..lL "Sorrell accuses Murdoch of panic buying"],{{Dn'', London, 27 October 2005. Retrieved 5 June 2010
+
}}</ref></nowiki></code><br/>→ <span style="background:white"><ref>{{Cite web
*References
+
|url=http://example.org
 +
|title=title
 +
|accessdate=2000-01-01
 +
}} {{Dead link
 +
|date=April 2005
 +
}}</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 />
  
 
===Caveats===
 
===Caveats===
*Avoid using payed links (e.g. <code>http://example.org/{{Dead link<nowiki />}}</code>) as software unable to handle templates may read an incorrect link. Add brackets if necessary.
+
* Avoid using free links (e.g. <code>http://example.org/{{Dead link<nowiki />}}</code>) as software unable to handle templates may read an incorrect link. Add brackets if necessary.
* Avoid Formatting. Nesting outside is generally not supported.   
+
* Avoid complicated formatting. Nesting inside a template is generally not supported well.   
* Avoid using <org>[ ] { | } < ></org> character between the end of the external link and <nowiki>{{Dead link}}</nowiki>, as they are often used to format text
+
* Avoid using <tt>[ ] { | } < ></tt> character between the end of the external link and <nowiki>{{Dead link}}</nowiki>, as they are often used to format text
  
 
==See also==
 
==See also==
|Dead link templates}}
+
* {{Tl|Dead link header}}
*Cleanup-All links}}
+
* {{Tl|Cleanup-link rot}} header
*All Headers
+
* {{Tl|Registration required}} citation flag
*All Formats
+
* {{Tl|Subscription required}} citation flag
*Registration not required For citation flag
+
* {{Tl|Failed verification}} citation flag
*No Subscription required}}  
+
* [[WP:DEADREF|What to do when a reference link goes dead]]
*Never Ignore}} Citation Flags
+
* {{Tl|Wayback}}
* [[Php:DEADREF|What to do when a reference link goes dead]]
+
* {{Tl|WebCite}}
+
 
 +
===Dead link tools===
 +
* [[User:Dispenser/Checklinks|Checklinks]]
 +
* [[User:DeadLinkBOT|DeadLinkBOT]]
 +
* [[User:WebCiteBOT|WebCiteBOT]]
  
 +
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
  
===Dead link tools===
+
[[Category:External link maintenance templates|{{PAGENAME}}]]
*Guests:Dispenser/ChecklinsChecklinks]]
+
[[Category:External link templates|{{PAGENAME}}]]
* [[Spam:Template Links
+
[[Category:Inline cleanup templates|{{PAGENAME}}]]
? desktop
 
  
<includeonly><!-- CATEGORIES AND ExternalWIKIS HERE, THANKS -->[[Category:External link  Templates|{{PAGENAME}}]]
+
[[ar:قالب:وصلة مكسورة]]
[[Category:External link Templates|{{PAGENAME}}]]
+
[[cy:Nodyn:Dolen marw]]
[[Category:Noline Cleanup
+
[[de:Vorlage:Toter_Link]]
*bg:Vorlage:Dead Toter_Links]]
+
[[es:Plantilla:Enlace no disponible]]
*En:Enlace no? disponible
+
[[fa:الگو:پیوند مرده]]
*Id:Sablon:Halott link]]
+
[[fr:Modèle:Lien brisé]]
*En:Templat:Dead Links
+
[[hu:Sablon:Halott link]]
*En:Template:Dead Links
+
[[id:Templat:Dead link]]
*en:Template:Dead Links
+
[[it:Template:Collegamento interrotto]]
Templates
+
[[lv:Template:Dead link]]
*ru:Templat:Dead Links]]
+
[[lt:Šablonas:Neveikianti nuoroda]]
*en:Szablon:Martwy Dead links]]
+
[[ja:Template:リンク切れ]]
*Us:Predefinição:Keep Dead
+
[[ka:თარგი:მკვდარი ბმული]]
*ru:Template Dead Links
+
[[ko:틀:죽은 바깥 고리]]
*bg:Dead Links
+
[[mk:Шаблон:Мртва врска]]
*uk:Dead Links
+
[[ms:Templat:dead link]]
 +
[[pl:Szablon:Martwy link]]
 +
[[pt:Predefinição:dead link]]
 +
[[ru:Шаблон:Недоступная ссылка]]
 +
[[simple:Template:dead link]]
 +
[[sl:Predloga:Slepa povezava]]
 +
[[sr:Шаблон:Mrtav]]
 +
[[fi:Malline:Vanhentunut linkki]]
 +
[[sv:Mall:Dead link]]
 +
[[tr:Şablon:Ölü bağlantı]]
 +
[[uk:Шаблон:Недоступне посилання]]
 +
</includeonly>

Revision as of 13:30, 14 August 2011

Usage

Use {{Dead link}} when you find a dead link to a website 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. If the citation contains multiple URLs (e.g. chapterurl and url) in a template, and only one is broken, you can use <!-- hidden text --> to explain which one is broken.

If the article uses clickable footnotes, then this tag should be placed just before the </ref> that contains the dead link. The notice will then correctly appear in the reference section (instead of in the body of the text, which is not recommended).

Avoid using this template to identify dead WP:External links that are not used as references for article content. Instead, dead external links should normally be removed. See the guideline for External links.

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