|
|
| Line 1: |
Line 1: |
| {{redirect|Template:DL|the equivalent of the HTML {{tag|dl|o}} tag|Template:Glossary|"described" links|Template:Annotated link}}
| |
| {{Documentation subpage}}
| |
| <!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--><noinclude>
| |
| {{pp-template|small=yes}}</noinclude>{{High-use}}
| |
| <!-- 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|deadlink|dead|Broken link|broken}}
| |
|
| |
| This template is used to mark [[WP:Link rot|dead links]], either within a paragraph or within a [[WP:Citing sources |reference citation]]. Marking dead links signals to editors and to [[WP:Link rot]] bots that this link needs to be replaced with an archive link. Sometimes dead links can be repaired manually; see [[Link rot]] for suggestions. | | This template is used to mark [[WP:Link rot|dead links]], either within a paragraph or within a [[WP:Citing sources |reference citation]]. Marking dead links signals to editors and to [[WP:Link rot]] bots that this link needs to be replaced with an archive link. Sometimes dead links can be repaired manually; see [[Link rot]] for suggestions. |
|
| |
|
| Line 43: |
Line 36: |
| * The date-substitution template may be used to automatically generate the date, e.g., <code><nowiki>{{Dead link|{{subst:DATE}}}}</nowiki></code>. See [[Help:Substitution]] for more information. | | * The date-substitution template may be used to automatically generate the date, e.g., <code><nowiki>{{Dead link|{{subst:DATE}}}}</nowiki></code>. See [[Help:Substitution]] for more information. |
| * The <code>date=</code> parameter need not be added by the editor: if not entered, a [[Wikipedia:Bots|bot]] will soon add it. | | * The <code>date=</code> parameter need not be added by the editor: if not entered, a [[Wikipedia:Bots|bot]] will soon add it. |
|
| |
| == Examples ==
| |
| * <code><nowiki><ref>{{cite web |url=http://www.example.org |title=Web page title |website=Example.com |access-date=22 September 2012}} {{Dead link |date=September 2012}}</ref></nowiki></code> <br />→ <span style="background:white"><ref>{{cite web |url=http://www.example.org |title=Web page title |website=Example.com |access-date=22 September 2012}} {{Dead link |date=September 2012}}</ref></span>
| |
| * <code><nowiki><ref>{{cite news |title=Sorrell accuses Murdoch of panic buying |author=Plunkett, John |url=http://media.guardian.co.uk/site/story/0,14173,1601858,00.html |newspaper=[[The Guardian]] |date=27 October 2005 |access-date=22 September 2012}} {{Dead link}}</ref></nowiki></code> <br />→ <span style="background:white"><ref>{{cite news |title=Sorrell accuses Murdoch of panic buying |author=Plunkett, John |url=http://media.guardian.co.uk/site/story/0,14173,1601858,00.html |newspaper=[[The Guardian]] |date=27 October 2005 |access-date=22 September 2012}} {{Dead link}}</ref></span>
| |
|
| |
| {{Reflist}}
| |
|
| |
| === Caveats ===
| |
| * Avoid using free/bare links without a separator (e.g. <code><nowiki>http://www.example.org/{{Permanent dead link}}</nowiki></code>). Frequently software is unable to differentiate the URL from the template, and will interpret the template as a literal part of the URL. Add square brackets or a space separating the template from the URL. Correct: <code><nowiki>http://www.example.org/ {{Permanent dead link}}</nowiki></code> and Correct: <code><nowiki>[http://www.example.org/]{{Permanent dead link}}</nowiki></code>
| |
| * Avoid complicated formatting. Nesting inside another template is not generally supported.
| |
| * Avoid using <kbd>[ ] { | } < ></kbd> characters between the end of the external link and <nowiki>{{Permanent dead link}}</nowiki>, as they are often used to format text.
| |
|
| |
| == TemplateData ==
| |
| {{TemplateData header}}
| |
| <templatedata>
| |
| {
| |
| "description": "A template to indicate that the preceding URL is dead",
| |
| "params": {
| |
| "date": {
| |
| "label": "Month and year",
| |
| "description": "The month and year the URL was found to be dead, like \"June 2013\"",
| |
| "type": "string",
| |
| "autovalue": "August 2026",
| |
| "suggested": true
| |
| },
| |
| "bot": {
| |
| "label": "Bot name",
| |
| "description": "The name of the bot used to identify the dead link (not used by regular editors)",
| |
| "type": "wiki-user-name"
| |
| },
| |
| "url": {
| |
| "label": "Wayback URL",
| |
| "description": "The dead URL, used only if there is a Wayback Machine archive",
| |
| "type": "url"
| |
| },
| |
| "fix-attempted": {
| |
| "label": "Fix attempted",
| |
| "description": "Setting to 'yes' (or any non-blank value) indicates that no archive copy is available",
| |
| "type": "string",
| |
| "autovalue": "yes"
| |
| }
| |
| },
| |
| "format": "inline"
| |
| }
| |
| </templatedata>
| |
|
| |
| == See also ==
| |
| * {{Tl|Citations broken}}
| |
| * {{Tl|Cleanup bare URLs}} header
| |
| * {{Tl|Closed access}} and {{Tl|Open access}} citation flags
| |
| * {{Tl|Dead YouTube link}}
| |
| * {{Tl|Full citation needed}} (inline) to be used when a reference suffers from a more severe problem than a mere [[HTTP 404|broken link]]
| |
| * [[Wikipedia:Link rot|Link rot]]
| |
| * {{Tl|Permanent dead link}}
| |
| * {{Tl|Registration required}} citation flag
| |
| * {{Tl|Subscription or libraries}} citation flag for when a subscription or library access may be required
| |
| * {{Tl|Subscription required}} citation flag
| |
| * {{Tl|Webarchive}}
| |
| * [[WP:DEADREF|What to do when a reference link goes dead]]
| |
| * {{Tl|Website defunct}} to be used in place of the {{tl|URL}} parameter in infoboxes for defunct websites
| |
|
| |
| === Dead link tools ===
| |
| * Probably of historical interest only:
| |
| ** [[User:Dispenser/Checklinks|Checklinks]]
| |
| ** [[User:DeadLinkBOT|DeadLinkBOT]]
| |
| ** [[User:WebCiteBOT|WebCiteBOT]]
| |
|
| |
| {{Inline cleanup tags}}<includeonly>
| |
|
| |
| {{Sandbox other||
| |
| <!-- Categories below this line, please; interwikis at Wikidata -->
| |
| [[Category:External link maintenance templates]]
| |
| [[Category:Inline citation cleanup templates]]
| |
| }}</includeonly>
| |