Jump to content

Template talk:Redirect-distinguish-text

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

Error checking

[edit]

Nihiltres, you have never edited this one, but perhaps you could take a look. If this is used on itself (the redirecting page is the same as the article using the hatnote), there is no error. Other redirect hatnote templates notice this and put the article in Category:Articles with redirect hatnotes needing review. MB 17:01, 16 October 2021 (UTC)[reply]

Is that an error that actually occurs in the wild? {{Nihiltres |talk |edits}} 22:00, 16 October 2021 (UTC)[reply]
Nihiltres yes, I noticed it today in one article, Afro-Arabs. It had a redirect hatnote which was wrong because the article was just moved. In examining the hatnotes, I realized that the redirect-distinguish was FIXED by the same move, but wasn't flagged before the move. So I investigated and was able to reproduce the problem. Theoretically, this could have been the only occurrence, but in 6m article, there are probably a few more. MB 22:45, 16 October 2021 (UTC)[reply]
@MB: Done; if it doesn't turn up anything I'll push for removing the test, but it's probably worth at least leaving it a week or so and seeing if we get anything. {{Nihiltres |talk |edits}} 23:40, 19 October 2021 (UTC)[reply]
Nihiltres, It has identified four articles already. I don't understand why you would even have thought about removing the test. I find that many times, editors do not look at the hatnotes after performing a page move which causes a lot of these things. A similar test was added to {{otheruses}} recently, and there are new articles in Category:Articles with Template:Other uses targeting a nonexistent page at least weekly. I wonder if any other hatnote templates have similar undetected issues. MB 00:35, 20 October 2021 (UTC)[reply]
I was simply skeptical that a template with <400 transclusions would have enough errors to make the work of adding and maintaining error detection worthwhile, but I suppose it can't hurt that much. Speaking of maintaining error detection, the bit added to {{other uses}} should probably be merged into the module, as a design pattern I've intentionally maintained on hatnote templates is to avoid including logic at both the wikitext and Lua levels. I'll have to write some Lua code to do exactly that. {{Nihiltres |talk |edits}} 03:15, 20 October 2021 (UTC)[reply]
I hadn't checked/realized that there were only 400 transclusions. Maybe I was going out on a limb predicting that there would be more cases. So the four are likely all there are unless there is some big lag right now. I've fixed them now. As far as your other comments on the coding, I'll leave that to you since my coding days are long over. MB 04:29, 20 October 2021 (UTC)[reply]

Renaming

[edit]

I'm proposing renaming this template as part of a broader move to rename some hatnote templates for clarity. Please participate in the discussion at Wikipedia talk:Hatnotes#Template renaming for clarity. Thanks, {{Nihiltres |talk |edits}} 22:20, 16 October 2021 (UTC)[reply]

Prefixing "Not" with "It is"

[edit]

This is done on Template:Redirect-distinguish for a good reason, so can we do it here? Faster than Thunder (talk) 01:59, 11 February 2022 (UTC)[reply]

Optional second parameter

[edit]

Is there a reason why the scond parameter is optional rather than required? In what situation would the MOS support a hatnote that just said Articlename redirects here with no outgoing link? Belbury (talk) 16:15, 6 October 2024 (UTC)[reply]