Template talk:Dead link
This template was considered for deletion on 30 August 2024. The result of the discussion was "keep". |
Template:Dead link is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
|
|
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
permanence
[edit]If a cited url is both dead and previously unarchived, the template documentation says to use |fix-attempted=yes
. That essentially means that the [permanent dead link] is going to stay appended to that source for all time. Is my understanding of that accurate? — Fourthords | =Λ= | 18:52, 22 January 2024 (UTC)
Semi-protected edit request on 29 August 2024
[edit]This edit request to Template:Dead link/doc has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Infections are usually asymptomatic or cause a mild flu-like illness, with symptoms including fatigue, headache, muscle aches and fever. Many people then experience a second stage of the illness with symptoms such as a characteristic facial rash, often called a “slap” rash, followed by joint pain and swelling and a general body rash. ShahJahan99 (talk) 10:56, 29 August 2024 (UTC)
- This is not an edit request. --bonadea contributions talk 11:43, 29 August 2024 (UTC)
Subst
[edit]@Primefac, Izno, AP 499D25, HouseBlaster, and Sdkb: After the close of Wikipedia:Templates_for_discussion/Log/2024_August_30, I updated the docs to use subst: Special:Diff/1243135182/1244781426 but the results were unexpected, see the Examples section. This might be because Help:Substitution#Limitation says subst does not work inside ref tags. But that is where this template would most often be used. The TfD was probably closed in unintended error since the agreed solution is not practical? -- GreenC 04:40, 9 September 2024 (UTC)
- Done in by phab:T4700 again. Speaking for myself, I would support reopening the TFD so I can support deleting the template. I wouldn't object to a redirect to {{dead link}}. Best, HouseBlaster (talk • he/they) 04:49, 9 September 2024 (UTC)
- If substing ends up not working out due to technical limitations then I would prefer a deletion of the template rather than redirecting it to Template:Dead link again. Cheers, — AP 499D25 (talk) 05:58, 9 September 2024 (UTC)
- AnomieBOT can subst inside of ref tags, so I just added it to the category directly and will let it handle it. Primefac (talk) 11:54, 9 September 2024 (UTC)
- If substing ends up not working out due to technical limitations then I would prefer a deletion of the template rather than redirecting it to Template:Dead link again. Cheers, — AP 499D25 (talk) 05:58, 9 September 2024 (UTC)
Template-protected edit request on 16 November 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Consistency issues
[edit]Change the formatting of the title
attribute to prevent the no-break space from rendering where it is not needed in the hover tooltip. This will fix some style inconsistency between dead links with and without the |title=
parameter specified. To see the issue and my proposed solution, hover the "dead link" cleanup tags.
- The output from the template call
{{dead link|date=November 2024}}
gives: [dead link ]. - This currently renders as: [dead link].
- With fixed spacing, it would render like this: [dead link].
There are some other changes, such as removing the unnecessary <span>...</span>
tag just for white-space: nowrap
, as this can be applied to the <sup>
directly. I have also added the same {{#invoke:Check for unknown parameters|check}} as there is in {{Citation needed}} (modified with the differing template name, of course), though I don't know whether this is needed or wanted.
Outputs
|
---|
The template wikitext below produces the outputs:
{{Fix
| name = {{{name|Dead link}}}
| date = {{{date|}}}
| special = <sup class="noprint Inline-Template" style="white-space: nowrap;">[<i>{{#if: {{{url|}}}|[https://web.archive.org/web/*/{{{url}}} <span title="{{{title|This external link is {{#if:{{{fix-attempted|}}}|permanently }}dead or expired.}}}{{#if:{{{date|}}}| ({{{date}}})}}">dead link</span>]|[[Wikipedia:Link rot|<span title="{{{title|This external link is {{#if:{{{fix-attempted|}}}|permanently }}dead or expired.}}}{{#if:{{{date|}}}| ({{{date}}})}}">{{#if:{{{fix-attempted|}}}|permanent }}dead link</span>]]}}</i>]</sup>
| cat = {{#if:{{{fix-attempted|}}}|[[Category:Articles with permanently dead external links]]|[[Category:All articles with dead external links]]}}
| cat-date = Category:Articles with dead external links
}}
The following is a mock-up of the full wikitext: {{<includeonly>safesubst:</includeonly>#invoke:Unsubst||date=__DATE__ |$B= <!--{{Dead link}} begin-->{{Fix |name = {{{name|Dead link}}} |special = <sup class="noprint Inline-Template" style="white-space: nowrap;">[<i>{{#if: {{{url|}}}|[https://web.archive.org/web/*/{{{url}}} <span title="{{{title|This external link is dead or expired.}}}{{#if:{{{date|}}}| ({{{date}}})}}">dead link</span>]|[[Wikipedia:Link rot|<span title="{{{title|This external link is dead or expired.}}}{{#if:{{{date|}}}| ({{{date}}})}}">{{#if:{{{fix-attempted|}}}|permanent }}dead link</span>]]}}</i>]</sup> |date = {{{date|}}} |cat = {{#if:{{{fix-attempted|}}}|[[Category:Articles with permanently dead external links]]|[[Category:All articles with dead external links]]}} |cat-date = Category:Articles with dead external links }}<!--{{Dead link}} end-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages containing dead link template with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Dead link]] with unknown parameter "_VALUE_"|ignoreblank=y| date | name | reason }}}}<noinclude> {{Documentation}} <!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE; INTERWIKIS GO TO WIKIDATA, THANK YOU! --> </noinclude> I am not sure if there are other/better ways to simplify this template or reduce any repetition, so any suggested modifications or comments are very much welcome! Regardless of the other changes I propose, the main point for me is to fix the unwanted whitespace issue in the tooltip. |
Thanks in advance! — Thatgaypigeon (talk) 01:12, 17 November 2024 (UTC)
- I'm having difficulty seeing a difference in the above examples with and without the non-breaking space. -- GreenC 01:20, 17 November 2024 (UTC)
- Not done for now: please establish a consensus for this alteration before using the
{{Edit template-protected}}
template. And please place future suggestions of this type in the template's sandbox rather than on the template's talk page. Thank you for your consideration in this matter. P.I. Ellsworth , ed. put'er there 07:06, 17 November 2024 (UTC)