Jump to content

Template:Dead link

From Wikimedia Commons, the free media repository

[dead link]

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Dead link/doc.

This template is used to mark dead links. A link is provided to the reference page on Wikipedia or, if specified, to the corresponding subpage on https://web.archive.org.

Usage

{{Dead link |title= |date= }}

Append this template directly after the link that no longer works, e.g. https://commons.wikimedia.org[dead link].

Template parameters

ParameterDescriptionDefaultStatus
titletitleThis is the text that will appear as a pop-up when the mouse is moved over the text.emptyoptional
datecalendar dateDate specified in extended format according to 8601 format in the form YYYY-MM-DD.emptyoptional
urlURLWeb address of the now death external link.emptyoptional
wayback-dateWayback Machine (calendar date)Date in ISO format on which the web page was saved on Wayback Machine.emptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This template is used to mark dead links. A link is provided to the reference page on Wikipedia or, if specified, to the corresponding subpage on https://web.archive.org.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
calendar datedate

Date specified in extended format according to 8601 format in the form YYYY-MM-DD.

Suggested values
2025-04-30
Dateoptional
titletitle

This is the text that will appear as a pop-up when the mouse is moved over the text.

Lineoptional
URLurl

Web address of the now death external link.

URLoptional
Wayback Machine (calendar date)wayback-date

Date in ISO format on which the web page was saved on Wayback Machine.

Dateoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

Relies on:

See also

Localization

This template is not intended to be localized.

This template always uses the translations of its templates. {{Dead link/I18n}} is an exception. This integration is used to create the pop-up when moved the mouse-over the text.

Examples

  • {{Dead link}}
[dead link]
  • {{Dead link|title=A text to appear in the pop-up}}
[dead link] (shows a pop-up with the text when mouse-over)
  • {{Dead link|date=2025-04-30}}
[dead link] (shows a pop-up with the date when mouse-over)
  • {{Dead link|title=A text to appear in the pop-up|date=2025-04-30}}
[dead link] (shows a pop-up with the text and the date when mouse-over)
  • {{Dead link|url=https://commons.wikimedia.org/wiki/Template:Dead_link|title=Dead link|date=2025-04-30}}
[ dead link ] (shows a pop-up with the text and the date when mouse-over, and also links to the Internet Archive webpage that corresponds to the URL provided)
  • {{Dead link|url=https://commons.wikimedia.org/wiki/Template:Dead_link|wayback-date=20241001085105}}
[ dead link ] (Links to a specific snapshot (specified via wayback-date) of the provided URL on the Internet Archive (providing a link to https://web.archive.org/web/{{{wayback-date}}}/{{{url}}}))
  • {{Dead link|fix-attempted=yes}}
[dead link]: Set this to "yes" if you have tried unsuccessfully to find an archived copy, or a copy with a different URL. Note that a link that is not in the Internet Archive (Wayback machine) can very often be found, e.g. by a search for the full title, in quotes, on the original Web site or the Internet at large, if the Wayback machine fails.