Jump to content

Template talk:Dead link

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

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)[reply]

Semi-protected edit request on 29 August 2024

[edit]

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)[reply]

This is not an edit request. --bonadea contributions talk 11:43, 29 August 2024 (UTC)[reply]

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)[reply]

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)[reply]
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)[reply]
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)[reply]

Template-protected edit request on 16 November 2024

[edit]

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=December 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;">&#91;<i>{{#if: {{{url|}}}|[https://web.archive.org/web/*/{{{url}}} <span title="{{{title|This external link is {{#if:{{{fix-attempted|}}}|permanently&nbsp;}}dead or expired.}}}{{#if:{{{date|}}}|&nbsp;({{{date}}})}}">dead link</span>]|[[Wikipedia:Link rot|<span title="{{{title|This external link is {{#if:{{{fix-attempted|}}}|permanently&nbsp;}}dead or expired.}}}{{#if:{{{date|}}}|&nbsp;({{{date}}})}}">{{#if:{{{fix-attempted|}}}|permanent&nbsp;}}dead link</span>]]}}</i>&#93;</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)[reply]

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)[reply]
In the first two examples at the top, the "title" attribute in the resulting HTML creates a link tooltip when hovered on desktop. There is currently a redundant (and ugly) additional space at the beginning of the tooltip that is inconsistent with similar templates. To see the difference, you need to hover over the "dead link" text in the examples. :)
— Thatgaypigeon (talk) 09:57, 7 December 2024 (UTC)[reply]
 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)[reply]
Thanks for the response. I didn't intentionally place the topic on this page, I just used the built-in "Request edit" button, as this is a protected template. (The page message also says "Substantial changes should first be proposed and discussed here on this page.") However, I am not fully familiar with the edit request process. Thanks for linking the corresponding information page for edit requests; I see now I should have merely added the topic instead of requesting an edit. However, I also don't think that my main reason for adjusting the template (removing the unwanted extra space) would be a substantial or controversial change and therefore doesn't need a consensus. The edit request information page states uncontroversial changes "such as correcting typographical errors" don't need to establish a consensus.
I don't know what the reason is as to why this edit request is denied, unless there is something I'm missing. I believe my edit (at least the main one of removing the extra space) meets all the considerations laid out on that page. Is it merely improper procedure? If so, is there a specific place I should go to propose this change or discuss the topic, or can the discussion be continued here?
Thanks in advance! :)
— Thatgaypigeon (talk) 10:15, 7 December 2024 (UTC)[reply]
Thank you for your explanation, editor Thatgaypigeon! This issue is clearer to me now. It seems to be a browser-specific problem, because I checked this in four browsers and saw the different spacing only in FireFox. My Chrome, AOL and Edge browsers do not show any difference when I hover over "dead link" in the above three examples. And sorry, but I do not find the tiny extra space at the beginning in FireFox to be "ugly" – I in fact didn't hardly notice it at all. As for consensus, I'm concerned that while I am not an expert in this type of template, your other proposed changes in addition to the removal of the non-breaking space apparently need discussion before using the {{edit template-protected}} template. This is the talk page for such a discussion, and editors then usually plant neutral pointers on other appropriate talk pages that welcome other editors to this page's discussion. This might seem somewhat of a hassle to you, but we template editors tend to be very careful with templates that are used on so many WP pages. Thanks again! P.I. Ellsworth , ed. put'er there 18:19, 7 December 2024 (UTC)[reply]
I hadn't considered it is a browser-specific issue. I am seeing the space on Firefox too, so your conclusion seems correct. Maybe "ugly" was a strong word, but removing it would be an improvement, albeit one that may go unnoticed for the most part. Consistency and a clean user interface are always nice.
I also see now how the other changes I proposed would need further review (I am used to working on smaller wikis where these kinds of changes are usually passed through without much issue), and I agree that these changes would need appropriate discussion. I'm not quite so worried about the hassle (in fact, I rather love learning about the inner-workings and procedures of Wikipedia and its content), but rather a bit confused about the preferred approach. What do you suggest I should do? As I say, I didn't manually edit the template into here (I didn't even format it with the 'Outputs' box), I simply used the button at the top of the page, typed in my proposal and submitted. I see now that it added the {{edit template-protected}} template to the page (and I'm assuming that's what notified you). This was not intentional, though perhaps I should have been a little more attentive to what the box at the top suggested.
Should I create a new discussion topic (without an edit request) for this? Should I submit a new edit request with the sole change of removing the non-breaking space? Should the discussion continue here, if re-opening the edit request to gather consensus is a possibility?
Thanks again for your feedback and help!
— Thatgaypigeon (talk) 21:02, 9 December 2024 (UTC)[reply]