This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 15 sections are present. |
This page is for discussing Navigation popups and reporting bugs you encounter with it. Please be aware that the original author of Popups (Lupin) is no longer active on Wikipedia. All issues are handled at the discretion of other experienced editors. Note that this project has an associated Phabricator project where implementation-related discussion happens.
Not sure how to explain your problem clearly? Read How to Report Bugs Effectively for some general pointers.
Some common questions are answered in the FAQ.
Hint/tooltip glitches
[edit]Good day,
The altering of the action object property in the getPrintFunction function, in these two cases (lines 5679 and 5688):
case 'unwatch': case 'watch':
this.print=magicWatchLink; this.action=this.id+'&autowatchlist=1&autoimpl=' + popupString('autoedit_version') + '&actoken='+autoClickToken(); break;
case 'delete':
this.print=wikiLink; this.action='delete';
if (this.article.namespaceId()==pg.nsImageId) {
var img=this.article.stripNamespace();
this.action+='&image='+img;
and its use for retreiving the i18n tooltip in the wikiLink function (line 6174):
var hint=popupString(l.action + 'Hint'); // revertHint etc etc etc
result in tooltips with url code between the action term and 'Hint', like: un|watch for any watch/unwatch, and delete for images (hover to see). I guess the altering of action needs to be moved to the switch statement in the wikiLink function (starting at line 6178).
Another one is email user – the i18n key 'EmailuserHint' (line 7049) needs a capital U.
With kind regards — Mar(c). 12:20, 7 January 2019 (UTC)
IPv6 /64 ranges
[edit]It would be useful if links for IPv6 addresses (in contributions and watchlists), when moused over, could have an option to produce a list of contributions for the /64 range to which the address belongs instead of just the specific /128 address.[1]
One way to do this would be by splitting the link into two pieces, like this:
When you mouse over the left side, you should get the contribs for the 2A02:C7F:202:7500::0/64 range (which currently doesn't work). When you mouse over the right side, you get the contribs for just the specific 2A02:C7F:202:7500:14B3:9AA7:46A3:B9E0/128 address.
References
- ^ As I understand it, IPv6 addresses are typically allocated in /64 blocks for each user by the provider. E.g., instead of your ISP allocating you a single IPv4 address of 189.201.223.245 (/32), and your router doing network address translation to your internal network of about 256 addresses in a block like 192.168.1.0/24 in a private use range, for IPv6 they will allocate 2A02:C7F:202:7500::0/64 to you and your internal network devices are assigned their addresses from that block (2A02:C7F:202:7500::0 through 2A02:C7F:202:7500:FFFF:FFFF:FFFF:FFFF).
Navigation popup in visual diff
[edit]Since some weeks in german WP the visual diff view is active. But there the navigation popups dont work. They works only if I switch to the old wikitext mode. Is there a bug, or must I do some settings? Technical (I am web developer): It seems to me, there exists no event listeners for mouse movement.--Hlambert63 (talk) 17:42, 18 April 2023 (UTC)
- It’s not implemented. Patches welcome —TheDJ (talk • contribs) 18:09, 18 April 2023 (UTC)
- I think it should be implemented in visual diffs, not NavPopups, so I reported it at phab:T335199. —Tacsipacsi (talk) 16:28, 21 April 2023 (UTC)
- @Tacsipacsi Yes, I would think so.
- BTW: Today in 2 Diffs it worked, but at other didnt work. Dont know why.--Hlambert63 (talk) 14:13, 22 April 2023 (UTC)
- It might be a race condition: if the visual diff loads first, by the time NavPopups loads, the diff is there and therefore the popups are added; however, if NavPopups loads first, it doesn’t find the visual diff on load, and later it doesn’t check it again (due to visual diffs not notifying it by firing the hook). —Tacsipacsi (talk) 00:43, 23 April 2023 (UTC)
- @Tacsipacsi When the timing is the reason: Is it possible to load or re-ping / restart the NavPopups later in my Users common.js? (currently I activated it via a checkbox in my Settings)
- At the console I saw, my common.js is called late, and if its too early, I'll find a way to defer a subfunction for a few seconds. Hlambert63 (talk) 18:16, 29 December 2023 (UTC)
- @Tacsipacsi I meant, not I will find a way, but I could find a way for this, but I dont know, what function I must call to reload or restart NavPopups to re-establish the mouse-event-listeners.--Hlambert63 (talk) 13:19, 1 June 2024 (UTC)
- It might be a race condition: if the visual diff loads first, by the time NavPopups loads, the diff is there and therefore the popups are added; however, if NavPopups loads first, it doesn’t find the visual diff on load, and later it doesn’t check it again (due to visual diffs not notifying it by firing the hook). —Tacsipacsi (talk) 00:43, 23 April 2023 (UTC)
I have found a 2nd bug: In Visual Diff the links to references leads to the article diff, I'd expect a link to the ref in ref-section (but it may be a collision with other popup-tools / -settings! – sorry *streichel* – I know a bulk of incoming bugs! ;-) )--Hlambert63 (talk) 18:04, 4 June 2023 (UTC)
Not working on Wikispecies
[edit]This template script recently stopped working, for me at least (I've asked, but have had no response from other users there), on Wikispecies. I cannot figure out why. Can anyone help, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 14:02, 23 December 2023 (UTC)
- @Pigsonthewing You can load popups from enwiki directly. E.g. you can load like this. -- Nux (talk) 17:16, 23 December 2023 (UTC)
- @Nux: Thank you. That's a useful work-around, but I'd still like to identify and fix the issue, for the benefit of others. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 17:41, 23 December 2023 (UTC)
This is stil an issue. Can anyone assist, please? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 16:53, 6 June 2024 (UTC)
- @Pigsonthewing. I'm able to reproduce. I'm getting a WP:CONSOLEERROR which is surely the root cause.
jQuery.Deferred exception: Cannot read properties of undefined (reading 'join') TypeError: Cannot read properties of undefined (reading 'join') at setTitleBase (https://species.wikimedia.org/w/load.php?lang=en&modules=ext.gadget.Navigation_popups&skin=vector&version=10j03:116:944)
. - Rather than trying to debug that, the easiest fix is probably to ask an English Wikispecies interface administrator to copy past the contents of the following enwiki pages to the corresponding English Wikispecies pages: MediaWiki:Gadget-popups.js, MediaWiki:Gadget-navpop.css. Hope that helps. –Novem Linguae (talk) 17:02, 6 June 2024 (UTC)
- Thank you. Wikispecies, like Commons, is language-independent, but maybe User:Koavf will kindly oblige? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:13, 6 June 2024 (UTC)
Done Let me know if more is needed. ―Justin (koavf)❤T☮C☺M☯ 21:23, 6 June 2024 (UTC)
- It's working for me now. This is probably fixed :) –Novem Linguae (talk) 03:47, 7 June 2024 (UTC)
- ―Justin (koavf)❤T☮C☺M☯ 03:56, 7 June 2024 (UTC)
Resolved
- It's working for me now. This is probably fixed :) –Novem Linguae (talk) 03:47, 7 June 2024 (UTC)
- Thank you. Wikispecies, like Commons, is language-independent, but maybe User:Koavf will kindly oblige? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 21:13, 6 June 2024 (UTC)
Feature request: Support for colored text
[edit]Hello!
I've come up with a potential upgrade that could make NavPopups even better than they already are:
Having preview popups support colored text would be a win! This would not find any uses in the mainspace, but would be quite useful in showing an accurate preview of people's user pages that include specially formatted/colored text.
Any thoughts?
Cheers, Cocobb8 (💬 talk • ✏️ contribs) 20:11, 27 March 2024 (UTC)
Add edit summaries to reverts
[edit]Currently, the "revert" function does not allow users to add an edit summary explaining the revert. Only the default edit summary (Revert to revision xxxxxxxxxx dated yyyy-mm-dd hh:mm:ss by User using popups) can be used.
My question is: Would it be possible to modify Navigation Popups to allow users to put more information in the edit summary, in addition to what already exist? Unexplained reverts are bad for Wikipedia, especially when a good faith edit is reverted without reason in the edit summary. InTheAstronomy32 (talk) 12:11, 25 April 2024 (UTC)
Wiki tags are always excluded
[edit]Howdy, may I ask a hopefully simple question. At the moment, any text between any wiki tags is always excluded from the navigation popup. This applies to standard tags like <span>
but also to self-defined tags used in a small private extension. <span>
is a very common way to modify the appearance of text, e.g. <span style="color:#FF0000">
but of course we would like to see the spanned text within the popup. Is there a way, or will there be plans, to define a list of wiki tags/html tags that will simply be stripped off the article without also removing the embedded content text? 2003:C2:3F21:FD00:FD5B:946E:6956:E8CF (talk) 10:46, 3 May 2024 (UTC)
- Too bad that there's no support. 2003:C2:3F3F:4A00:893D:E160:9A20:A609 (talk) 14:48, 23 May 2024 (UTC)
Make it bigger ?
[edit]For the longest time, popups has been 350px wide as a maximum. Is it time to raise the width to 500px perhaps ? —TheDJ (talk • contribs) 11:16, 24 June 2024 (UTC)
- No objections here. But it's more limiting and frustrating that a popup only seems to be shown below the link, even when it's on the bottom of the screen. -- Michael Bednarek (talk) 12:05, 24 June 2024 (UTC)
- +1 to a box-size increase. (And perhaps the font-size, afterwards?) Quiddity (talk) 19:49, 24 June 2024 (UTC)
- You can change font by overriding existing CSS:
div.navpopup { font-size: 14px;}
- Perhaps width logic can be modified to allow something similar... Though I think there where some options that influence width (so it might be dynamic...). Not sure. Nux (talk) 21:12, 24 June 2024 (UTC)
- Yeah, I already do it for myself (and similar at non-Wikimedia wikis), but perhaps others might appreciate it? As we grow older, things look smaller! Quiddity (talk) 21:23, 24 June 2024 (UTC)
Property values on Wikidata
[edit]On Wikidata, when a user hovers over the value of a property, it would be useful if the popup displayed the description of the linked item, in the user's preferred language, if present.
For example, on Black Sabbath (Q47670), the value of location of formation (P740) is Birmingham (Q2256), whose description in English is currently "city in West Midlands, England". the title is useful for disambiguating the target from others with the same name, such as the one in Alabama. A null description would alert the user that one is required, at Wikidata.
Similarly, here on Wikipedia (and other projects), for a link to Wikidata, like d:Q2256, the popup could display the title (and possibly also the description). Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:03, 1 September 2024 (UTC)
CJK zapped by default is terrible policy
[edit]Whenever I hover over an item that shows the name of somebody in their native language, your app or whatever zaps it, as if "I'm not interested in those funny foreign characters". Well, that is the whole point of me wanting to see the mouseover. For instance, hover over Kawahara Keiga. We see "Kawahara Keiga ( , also known as..." You see that "( ,"? That's where the silliness occured. Jidanni (talk) 21:38, 18 October 2024 (UTC)
- It has nothing to do with “funny foreign characters”: simply all templates are removed, whether they contain Japanese text, English text or non-text content. This is a known limitation, and one that’s unfortunately not likely to go away in the near future. —Tacsipacsi (talk) 08:44, 19 October 2024 (UTC)
Bug: Popup uses HTML em and strong in place of i and b
[edit]Example: monkfruit
- From page:
<i><b>Siraitia grosvenorii</b></i>, also known as <b>monkfruit</b>, <i><b>luo han guo</b></i>, or <b>Swingle fruit</b> ...
- From popup:
<strong><em>Siraitia grosvenorii</em></strong>, also known as <strong>monkfruit</strong>, <strong><em>luo han guo</em></strong>, or <strong>Swingle fruit</strong> ...
The problem is that <i>
and <b>
are formatting tags while <em>
and <strong>
are semantic tags. They're not interchangeable even though the result looks the same in most cases. Myself, I have a CSS rule for <em>
so that I can tell it apart from regular italics.
— W.andrea (talk) 19:18, 22 February 2025 (UTC)
- Copied comment to MediaWiki talk:Gadget-popups.js. I might have found the problem in the source code too. — W.andrea (talk) 19:46, 22 February 2025 (UTC)
Thanks to latest edit does not work
[edit]Hello,
When I hover over a link to a page, then hover over "actions", "most recent edit", then finally "send thanks", it does not work. Clicking it brings me to https://en.wikipedia.org/w/index.php?title=Special:Thanks/cur. Myrealnamm (💬Let's talk · 📜My work) 14:20, 27 April 2025 (UTC)
- @Myrealnamm. Unable to reproduce. Is the thanks button in the popup or somewhere else? Is this only on one page or on all pages? –Novem Linguae (talk) 17:52, 27 April 2025 (UTC)
- @Novem Linguae
Popups tool thanks bug - Yes, it is in popups, and it happens on all pages. If I hover, say, your username (which is linked), under actions --> most recent edit --> actions --> send thanks, it does not work, but brings me to the invalid page linked above. Myrealnamm (💬Let's talk · 📜My work) 19:44, 27 April 2025 (UTC)
- Ah I see. I'm able to reproduce now. This gadget isn't really maintained. But now that this is easy to reproduce maybe it'll attract someone interested in writing a patch. –Novem Linguae (talk) 22:09, 27 April 2025 (UTC)
- @Novem Linguae
Special:Block
[edit]The latest Tech news includes:
Gadgets and user scripts that interact with Special:Block may need to be updated to work with the new manage blocks interface. Please review the developer guide for more information. If you need help or are unable to adapt your script to the new interface, please let the team know on the talk page. [1]
Is this gadget likely to be affected? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 11:16, 20 May 2025 (UTC)
- Good question. Just now I went to Pigsonthewing -> User -> Block to see what it did. It redirects to https://en.wikipedia.org/w/index.php?title=Special:Block&ip=Pigsonthewing. That form will be updated to support multiblocks around June 2. Since blocking just redirects to that form instead of having something built in, I think popups will be unaffected. Thank you for checking. –Novem Linguae (talk) 18:08, 20 May 2025 (UTC)
External link color in dark mode
[edit]Hi! When using dark mode, I find the color for external links (#36b) pretty hard to read. Could the contrast be improved? Other link colors are fine. As far as I can see, it should be --color-progressive (#88a3e8) instead. Thanks, XanonymusX (talk) 19:42, 28 June 2025 (UTC)
- I've never seen a popup with an external link. Can you give an example? -- Michael Bednarek (talk) 02:31, 29 June 2025 (UTC)
- Pretty much all the popups that preview footnotes with a weblink. XanonymusX (talk) 17:21, 30 June 2025 (UTC)
- Here, popups omit all footnotes, viz: a popup of Dutch East India Company shows, "The United East India Company ( ; VOC ), commonly known as the Dutch East India Company, was a chartered trading company and one of the first joint-stock companies in the world. Established on 20 March 1602 by the" ... "trade activities in Asia." Note that the 2 footnotes after "world", and single footnotes after "1602" and "Asia." are not shown, and consequently the external links in those footnotes aren't shown, either. -- Michael Bednarek (talk) 00:08, 1 July 2025 (UTC)
- Here's a screenshot of what I see for a popup of a random citation: phab:F62753939 showing citation #4 at Leavenworth Riverfront Community Center (with both Page Previews and Navpopups, because I have both enabled as a frequent software-tester!). I believe that is what XanonymusX is describing. HTH. Quiddity (talk) 01:11, 1 July 2025 (UTC)
- Thanks, the screenshot is very helpful, as page previews shows the expected color! XanonymusX (talk) 07:24, 1 July 2025 (UTC)
- Here's a screenshot of what I see for a popup of a random citation: phab:F62753939 showing citation #4 at Leavenworth Riverfront Community Center (with both Page Previews and Navpopups, because I have both enabled as a frequent software-tester!). I believe that is what XanonymusX is describing. HTH. Quiddity (talk) 01:11, 1 July 2025 (UTC)
- Here, popups omit all footnotes, viz: a popup of Dutch East India Company shows, "The United East India Company ( ; VOC ), commonly known as the Dutch East India Company, was a chartered trading company and one of the first joint-stock companies in the world. Established on 20 March 1602 by the" ... "trade activities in Asia." Note that the 2 footnotes after "world", and single footnotes after "1602" and "Asia." are not shown, and consequently the external links in those footnotes aren't shown, either. -- Michael Bednarek (talk) 00:08, 1 July 2025 (UTC)
- Pretty much all the popups that preview footnotes with a weblink. XanonymusX (talk) 17:21, 30 June 2025 (UTC)
- Probably has to be fixed somewhere here MediaWiki:Gadget-navpop.css#L-197 —TheDJ (talk • contribs) 07:14, 1 July 2025 (UTC)
- I didn't get it that the complaint was about popups to citations within a page, which I almost never use. Apologies for my off-topic babbling. -- Michael Bednarek (talk) 07:27, 1 July 2025 (UTC)
Image popups
[edit]I no longer have popups when hovering on images, can't figure out why. - FlightTime (open channel) 17:37, 6 July 2025 (UTC)
- @FlightTime: I still see them (just tried it out on a topic above). Could you be more specific?
- Do you experience this on enwiki or somewhere else?
- If on enwiki, can you confirm that the image in that above topic doesn’t work either?
- Do you see any JS errors?
- Did you enable any gadgets or user scripts lately? At least for the gadgets, can you try disabling them one by one to see if the issue persists? (You can do it with user scripts as well, but that leaves behind a lot of edits.)
- Tacsipacsi (talk) 19:53, 6 July 2025 (UTC)
- @Tacsipacsi: I'll have to research the steps you brought up, that will take awhile, but thanx for the reply. I can ping you here if I find anything, if you don't mind. Cheers, - FlightTime (open channel) 20:27, 6 July 2025 (UTC)
- I went through and disabled all .js and .css pages and still not working. Will work on gadgets next. If it turns out to be a gadget interfering, then I shouldn't be the only one. - FlightTime (open channel) 22:56, 6 July 2025 (UTC)
Try WP:SAFEMODE first before you go to the trouble of bisecting all your gadgets. If the error remains in safemode, then it is not a gadget and is something else (browser plugins, etc.)–Novem Linguae (talk) 00:33, 7 July 2025 (UTC)- I also thought about this, but I didn’t suggest it because it doesn’t really work: NavPopups itself is also a gadget, so if one goes in safe mode, NavPopups will also be disabled, AFAIK without any possibility for getting it back other than issuing manual JavaScript commands (or disabling safe mode). —Tacsipacsi (talk) 20:59, 8 July 2025 (UTC)
- Oops. Duh. Never mind :) –Novem Linguae (talk) 23:06, 8 July 2025 (UTC)
- I also thought about this, but I didn’t suggest it because it doesn’t really work: NavPopups itself is also a gadget, so if one goes in safe mode, NavPopups will also be disabled, AFAIK without any possibility for getting it back other than issuing manual JavaScript commands (or disabling safe mode). —Tacsipacsi (talk) 20:59, 8 July 2025 (UTC)
- I went through and disabled all .js and .css pages and still not working. Will work on gadgets next. If it turns out to be a gadget interfering, then I shouldn't be the only one. - FlightTime (open channel) 22:56, 6 July 2025 (UTC)
Multiblocks are not shown properly
[edit]Navigation popups does not seem to handle multi-blocked accounts properly. For instance, if you hover over User talk:NishantXavier, it will not say they are blocked, despite the account being multiblocked. It should instead show a message like "Has multiple blocks" (with the partial block message being changed to "Partially blocked" to prevent confusion). OutsideNormality (talk) 04:45, 11 July 2025 (UTC)