Template talk:Redirect-distinguish-text

Latest comment: 2 years ago by Faster than Thunder in topic Prefixing "Not" with "It is"
WikiProject iconRedirect Template‑class
WikiProject iconThis page is within the scope of WikiProject Redirect, a collaborative effort to improve the standard of redirects and their categorization on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Note: This banner should be placed on the talk pages of project, template and category pages that exist and operate to maintain redirects.
This banner is not designed to be placed on the talk pages of most redirects and almost never on the talk pages of mainspace redirects. For more information see the template documentation.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.

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