![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||
|
![]() | Template:R avoided double redirect 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. |
To editor SiBr4: I've been testing this rcat so I can update its documentation to be more similar to other rcat /doc pages and with an eye toward inclusion in the index. This is a great template and module, long overdue. We never know when the issues will be resolved and double redirects allowed, and in the past I've used the |e#=
params in the {{Redr}} template to do what this template does, but this is far better. Just want to thank you very much for an excellent template! – Paine 00:33, 29 June 2015 (UTC)
To editor SiBr4: wondered why the "updated redirects" cat was removed, since it is standard practice to place rcats at the TOP of all the categories they populate. Painius 02:54, 9 September 2015 (UTC)
I think every time I've tried previewing a page with this template, I get an error message that the other page isn't a redirect. Invariably it is, and the template functions fine when I save. What's causing this? --BDD (talk) 21:50, 28 January 2016 (UTC)
#REDIRECT [[Occupation of the Malheur National Wildlife Refuge#People involved]] {{R avoided double redirect|LaVoy Finicum}}
and got the error message Error in Module:R avoided double redirect: This page is not a redirect. I'm reasonably certain that's the same message I saw before, and on several other occasions. Is the problem that "This page", i.e. the one I'm editing, isn't a redirect yet? That would explain it, but still means previewing this template is essentially useless. --BDD (talk) 16:50, 8 February 2016 (UTC)
this one on 5 February. In the case of Foliage-gleaner , there wasn't an error because the page was already a redirect before the addition of the template.
No edits that affect the template's error-giving behavior had been made sinceI just made this edit, which prevents an incorrect "not a redirect" error when creating a new redirect (though not when turning an existing non-redirect into a redirect). It's probably technically impossible to get the redirect data of the actual previewed version, so any such edits to prevent false-positive errors will create false negatives as I mentioned above. A note in the template documentation about the potential unreliability of the template in preview mode would help in any case (re. Paine). SiBr4 (talk) 23:34, 11 February 2016 (UTC)
This module fails with the message "page is not a redirect" when it is transcluded into a page that is marked for discussion at RfD (when indeed it is not a redirect). Si Trew (talk) 03:10, 26 March 2016 (UTC)
@Si: As you noted, that conclusion is technically correct. There is no simple way for the module to automatically determine if a page is an RfD-ed redirect, short of getting the page contents to search for the RfD template (then again, the same thing is already done to find the redirect target in Module:Redirect).
The error could be hackily avoided by setting either |thistarget=target article
or |noerror=1
. Both are, however, intended for demonstration of the template, and hence prevent categorization into the three Radr categories. If useful a similar parameter for use in mainspace could be added to the module. SiBr4 (talk) 22:06, 26 March 2016 (UTC)
The template should display the link of the alternative title in boldface. It's an important information and otherwise easily overlooked when several other templates are on the page. Rfassbind – talk
@SiBr4, Paine Ellsworth, and BDD: Some pages have been appearing in CAT:AVOID2RUPDATE even though the avoided double redirect target (i.e. {{R avoided double redirect|X}}) is indeed a redirect. I think it may have something to do with the history of the avoided double redirect target. I remedied two of said occurrences (viz. Baron Trump and Making televsion) by applying {{Redirect category shell}} (after some lengthy pondering on potential fixes). I'm not sure why that fixes it, or what is causing what appears to be a problem. — Godsy (TALKCONT) 06:53, 5 February 2017 (UTC)
Reference Pal Hermann : In some cases it's possible that the "other target", in this case Pál Hermann , will become an article by way of a page move. There was a recent Requested move on the target's talk page, Talk:Paul Hermann (composer)#Move review request 1 February 2018, that shows this is possible. I added text to Module:R avoided double redirect to fill that need. Happy Publishing! Paine Ellsworth put'r there 19:43, 18 February 2018 (UTC)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Please sync:
Changes:
|embed=
being passed along all the way to Module:Redirect template, from where this parameter was removed long ago. (It doesn't have any effect.)SD0001 (talk) 10:06, 6 March 2020 (UTC)
{{#ifeq:{{FULLPAGENAME}}|Wikipedia:Template messages/Redirect pages
to be changed to {{#ifeq:{{FULLPAGENAME}}|Wikipedia:Template index/Redirect pages
? If that was what you wanted, that has nothing to do with the issue above. Also, as I pointed out in linked discussion, a better solution would be to add a |doc=
parameter. While it requires a parameter, it's much more flexible in allowing other pages to use it and does not require changing code in tons of templates anytime a page name changes. --Gonnym (talk) 19:14, 6 March 2020 (UTC)
|doc=
instead of the index page? That sounds like a better long-term fix. Can you show in the sandbox how that should be implemented? PI Ellsworth ed. put'r there 23:40, 6 March 2020 (UTC){{If|eq}}
. Thank you for asking that though, as it seems the "eq" part was removed by accident. --Gonnym (talk) 08:35, 7 March 2020 (UTC)|doc=
parameter. If doc= is used, the template does not appear. Please see if I missed anything. --Gonnym (talk) 09:00, 7 March 2020 (UTC)
|doc=
parameter and the latter uses the "live" version of {{R avoided double redirect}}. We see that the |doc=
parameter does not seem to give the same result as the exclusion code in the "live version" of this rcat. In fact, this template's module is being invoked as can be seen by the added error message about the page not being a redirect. So it seems that, thus far, we must keep the exception code and not use the |doc=
parameter, don't you agree? As an aside, I found that the exclusion code, <includeonly>{{If|eq|{{FULLPAGENAME}}|Wikipedia:Template index/Redirect pages/sandbox||{{#invoke:R avoided double redirect|main|{{{1|}}}}}}}</includeonly>
, does work as expected. PI Ellsworth ed. put'r there 13:32, 7 March 2020 (UTC)
|doc=yes
parameter to Template:Tlrow/sandbox as that template is always used for documentation, so no need to even use an extra parameter. --Gonnym (talk) 14:49, 7 March 2020 (UTC)
{{Tlrow/sandbox|R avoided double redirect/sandbox|doc=yes}}
(which won't work anyways), as the template will handle the |doc=yes
part by itself. Try this again, with restoring the code you removed. --Gonnym (talk) 16:27, 7 March 2020 (UTC)
|doc=
parameter was used in the {{Tlrow}} template, then the exception code would not be necessary. I restored that code just as you had installed it, and it does appear to work to exclude the invoking of the module. So if it does what you originally intended, that was to remove the visual bug you noted at Template talk:Redirect template#Visual bug with R avoided double redirect, then this appears to be ready to go. Are you happy with it? PI Ellsworth ed. put'r there 16:52, 7 March 2020 (UTC)
"Use this rcat template on mainspace redirects only."
Why shouldn't this template be used in other namespaces, and do we need another template for other namespaces if there is any good reasons why this one shouldn't be used? WT79 (Speak to me | account info) 11:23, 7 June 2020 (UTC)
OK, right. No one is forcing me to do anything. Nobody is forced to revert vandalism, nobody is forced to care. Alas, nobody can force anybody else to do anything either, so if ya really want something to get done sometimes ya gotta do it yourself. I just realized that I've been around Wikipedia longer than this template has; this template has kind of snuck up on me. Its function is so far down on my to-do list of priorities that if it were up to me to implement this it would never get done. But I realize we all don't have the same priorities. I would be content if this template went about its business without bothering me, but, it hasn't done that (sorry), so here I am.
Template:R avoided double redirect and Module:R avoided double redirect were both created on 3 April 2015 by SiBr4. Was this just boldly done, or was there any discussion prior to its implementation? Was there any discussion about what namespace(s) it should support? It's never been a stand-alone template; the template has always been a shell around the module which does most of the work. After some digging, I've found that Template:Incorrect redirect template puts out that orange stop hand that's causing all the trouble. That template, in turn, is called by Module:Redirect template. Module:R avoided double redirect returns via:
return frame:expandTemplate({title="Redirect template", args={from=from,info=info,["main category"]=cat, name="From an avoided double redirect"}})
which is equivalent to {{Redirect template|main category=Avoided double redirects}}
The others could populate another, new category with the equivalent of: {{Redirect template|main category=Avoided double redirects|other category=Other avoided double redirects}}
but I'm not fluent enough in Lua to immediately know the syntax for coding that change in the module. – wbm1058 (talk) 19:30, 24 June 2020 (UTC)
Was this just boldly done, or was there any discussion prior to its implementation?
It's telling me to make an intentional redirect to the disambiguation page Kill Yourself.
The above has gotten a bit too heated for my taste. I've rewritten Module:R avoided double redirect/sandbox to clean up the overabundance of errors, to remove the mainspace-only restriction, and to work correctly when previewing. I also wound up revising many of the messages. You can see the results at Template:R avoided double redirect/testcases. Any objections to making that edit to the live module? Anomie⚔ 20:06, 24 June 2020 (UTC)
If and when A2 is expanded into a separate article, or its target article is renamed
" to "If A2 is expanded into a separate article or its target article is changed
? I support every other aspect off the change, apart from that single word 'changed'; it makes it sound as if, every time an edit (change) is made to the current target, the redirect should be recategorised! Apart from that – yes, I entirely support. WT79 (Speak to me | account info) 22:06, 24 June 2020 (UTC)
Anomie's version is now live. Thanks, wbm1058 (talk) 22:08, 25 June 2020 (UTC)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Please add {{template shortcut|R avoid 2R}}
to the top of the page, just inside the <noinclude>
tag. This can be seen at Template:R avoided double redirect/sandbox (sandbox version is identical apart from above shortcut and that it uses {{#invoke:R avoided double redirect/sandbox}}
instead of {{#invoke:R avoided double redirect}}
– beware of this if you simply copy across code from sandbox). Thanks, WT79 (speak to me | editing patterns | what I been doing) 16:28, 8 July 2020 (UTC)
In the more frequent usage of this template outside of testcases, a couple of errors have come to my attention:
{{#IFEXIST}}
magic word, but I don't know enough Lua to do this in the Module. Presumably the 'not the same target' error message would also need to be changed for the same reasons, not sure about the rest, they aren't so obvious.Sorry if that all sounds like a moan, a lot of hard work has gone into this template and it is almost always works very well – but still isn't perfect. WT79 (speak to me | editing patterns | what I been doing) 08:36, 9 July 2020 (UTC)
#REDIRECT [[Foobar]]
{{r avoided double redirect|Foo}}
|noerror=
was for. Fixed. Anomie⚔ 13:45, 9 July 2020 (UTC)I noticed that redirect pages with this template are marked as (redirect page; transclusion), instead of just (redirect page). An example is Francais; the mark can be seen here at Pages that link to "French language". Is this intended? — Goszei (talk) 05:21, 31 January 2021 (UTC)
![]() | This edit request to Module:R avoided double redirect has been answered. Set the |answered= parameter to no to reactivate your request. |
Three instances of links, split amongst lines 109, 122, and 130, do not have colons before their links, unlike all the other instances before it. This affects File:SNES Ogre Battle - The March of the Black Queen (Densetsu no Ōga Batoru) - Battle Screen.png . To fix it, just go to those lines and add the colon so it looks like lines 103 and 113: [["
to [[:"
-BRAINULATOR9 (TALK) 14:34, 8 July 2021 (UTC)
![]() | This edit request to Module:R avoided double redirect has been answered. Set the |answered= parameter to no to reactivate your request. |
I would like to sync this template's module with my revision of its sandbox (permalink, diff). I've slightly simplified the logic of the module (by replacing if a then else
with if not a then
), as well as making it a tad more clear by using elseif
in the errors block (which is possible because all of the if statements are guaranteed to return the function). The sandbox version produces the same result as the main version in all of the /testcases. {{Lemondoge|Talk|Contributions}} 23:28, 7 April 2023 (UTC)
You are invited to join the discussion at Wikipedia:Village pump (proposals) § Explicitly allow A2R to tag redirects that are related topics with another redirect. Aaron Liu (talk) 17:39, 5 January 2024 (UTC)
![]() | This edit request to Module:R avoided double redirect has been answered. Set the |answered= parameter to no to reactivate your request. |
− | This is a redirect from an alternative title | + | This is a redirect from an alternative title or related topic of (redirect page name), another redirect to the same article. |
See the discussion above, for which it seems like there's consensus. Aaron Liu (talk) 13:32, 6 January 2024 (UTC)
There's a display error using this template at Linewaiter's Gazette , which I think is caused by the apostrophe, as it displays properly without it. Would anyone care to address? Sdkb talk 18:27, 13 June 2024 (UTC)
![]() | This edit request to Module:R avoided double redirect has been answered. Set the |answered= parameter to no to reactivate your request. |
This module throws an error message, This page is not a redirect., when the page contains a RfD nomination header. The module should check for such, and not throw an error when a redirect has been nominated for RfD, as it confused editors, other Rcat template do not throw this error when a redirect has been nominated for RfD.
-- 64.229.88.34 (talk) 03:59, 10 September 2024 (UTC)
![]() | This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Description of suggested change:
Diff:
− | + | CHANGED_TEXT |
180.129.63.46 (talk) 16:53, 7 October 2024 (UTC)
Getting Error in Module:R avoided double redirect: This page is not a functioning redirect – possibly disabled by RfD.
for target ANSTI machine, which seems to be a functioning redirect. See ANSTI breathing machine. Cheers, · · · Peter Southwood (talk): 07:35, 13 October 2024 (UTC)
Hello,
It looks like backlinks are not added by this template. Is there any reason why this isn't done? I know this is due to a plainklinked external URL which doesn't add backlinks, in order to add redirect=no
to the URL. I'm not sure what the best way to work around this would be, as I only know of using the parser function #ifexists
to force a backlink without a visual display.
My use case of this is to find the avoided double redirects to a given page, though there are potentially other ways to do this (though ideally I wouldn't make full text searches).
Thoughts? ~ Eejit43 (talk) 23:56, 23 June 2025 (UTC)
![]() | This edit request to Module:R avoided double redirect has been answered. Set the |answered= parameter to no to reactivate your request. |
In regards to the above section, please make the following change to Module:R avoided double redirect to add back backlinks to the intended target. This probably isn't the most elegant solution, but it should work just fine.
Line 3: | Line 3: |
local function noredir(page) | local function noredir(page) |
local link = page:fullUrl("redirect=no") | local link = page:fullUrl("redirect=no") |
return "<span class=\"plainlinks\">[" .. link .. " " .. page.fullText .. "]</span>" | return "<span class=\"plainlinks\">[" .. link .. " " .. page.fullText .. "]</span><span style=\"display: none\">[[" .. page.fullText .. "]]</span>" |
end | end |
~ Eejit43 (talk) 02:14, 26 June 2025 (UTC)