Wikipedia talk:Tools/Navigation popups

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

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;'&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();

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.


  1. ^ 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 (/32), and your router doing network address translation to your internal network of about 256 addresses in a block like 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).


Maybe I misunderstand this option. I'd like to have a functionality like this: An WP-Article has a WP:SC, and the explanation of this Shortcut should appear in the popup.--Hlambert63 (talk) 15:14, 1 August 2020 (UTC)

Edit: If is not possible to activate it for all users (or to make it customizable), maybe it can be resolved by some function code (not only setting of a variable) in my Users common.js?--Hlambert63 (talk) 17:32, 1 August 2020 (UTC)

"Send thanks" tries to use revid "prev" instead of actual revid when called from another NavPops window[edit]

Example of send thanks bug

If, on Firefox 77.0.1 on Win10 (if it matters), from a contribs page like Special:Contributions/Lowercase_sigmabot_III, I hover over a diff link to get a NavPops diff popup, then hover over its actions menu, and then click on the "send thanks" item, it attempts to go to instead of . That is, it doesn't find the correct revid when called from a popup from a contribs page.

It works correctly when called from a popup from a page history.

I believe this is the same issue reported here and here. (Pinging Enterprisey, who may be familiar with it.) —[AlanM1 (talk)]— 21:14, 11 August 2020 (UTC)

Allows access to deleted edit summaries[edit]

Not sure if this is a bug or not. I was using popups to look at the edit contributions of User: and it shows the full edit summaries, including one which says "THAT's IT.!!!!! Kick you in the [redacted]". Going to Special:Contributions/ I find the corresponding edit summary is (edit summary removed).

It might be because I'm an admin that I can see the full edit summary with popups, or if this is a loopholes which affects all users. --Salix alba (talk): 11:36, 24 October 2020 (UTC)

If I use the above link and hover over "user/contributions", I see those 2 edit summaries from 2020-02-13 as "Hidden revision". -- Michael Bednarek (talk) 12:13, 24 October 2020 (UTC)
@Salix alba: Just a guess, but did you use popups to look at these edit summaries before they had been hidden? There may be some client-side caching involved. -- John of Reading (talk) 14:22, 24 October 2020 (UTC)
Nope, first time I've come across this IP and edits are from February. As Michael Bednarek and, John of Reading don't have sysop privileges and cant see the edit summaries it looks like it might just be admins which can see this. Seems link I can also see edit summaries for items which have been revision deleted in page histories.--Salix alba (talk): 18:57, 24 October 2020 (UTC)
I think this is actually a problem with mw:API. Popups uses the API with action=query&list=usercontribs and that also shows unredacted edit summaries. I've created a bug for this T266505. --Salix alba (talk): 20:03, 26 October 2020 (UTC)

Installation on third-party wiki[edit]

I've copy/pasted the code from MediaWiki:Gadgets-definition, MediaWiki:Gadget-popups.js and MediaWiki:Gadget-navpop.css to my own wiki, but the popups don't seem to look right. I've purged cache, and the wiki is on 1.35.0. What can I try to get it working right? -- Prod (Talk) 02:17, 18 November 2020 (UTC)

Usage on external non-wiki pages[edit]

Is it possible (or planned) to support this for external web pages? Whenever someone has a link to Wikipedia, it'd be great to have this kind of popup for a short preview before clicking and going into Wikipedia site. — Preceding unsigned comment added by (talk) 21:37, 11 January 2021 (UTC)

Incompatible with Page Previews[edit]

Is there any way to add an option to Navigation popups so that they're turned off for article space, and instead the Page Previews appear? I'd like to continue using the Page Previews feature but also use these Navigation popups for non-article previews/summaries. — Bilorv (talk) 01:44, 1 December 2020 (UTC)

Infoboxes with multiple images[edit]

What happens when the article has an infobox with multiple images? How does the software choose which image to use? See Wikipedia:Teahouse § Nepali Flag not being shown when hovering over a Nepal link and Template talk:Infobox country § Image order for the purpose of navigation previews. AnonQuixote (talk) 04:40, 11 January 2021 (UTC)

Popups shows the flag when I hover over Nepal for me. -- Michael Bednarek (talk) 06:49, 11 January 2021 (UTC)
This is a weird case that I have brought up, the flag shows when Navigation popups are on in Preferences-Gadgets, but when it is off then the emblem gets shown instead for some odd reason. PyroFloe (talk) 09:44, 11 January 2021 (UTC)
We have two preview features with different functionality. This talk page is for "Navigation popups" at Special:Preferences#mw-prefsection-gadgets. It shows the flag for Nepal. The other feature is "Enable page previews" at Special:Preferences#mw-prefsection-rendering. Logged out users get that. The feature is mw:Page Previews, previosuly called Hovercards. It shows the image chosen by mw:Extension:PageImages#Image choice. It shows the emblem for Nepal because PageImages uses code which rejects images displayed with a width ≤ 119px. The flag is displayed at 90px because it's relatively tall but displayed with around the same height as the emblem next to it. The emblem is displayed at 120px so it's exactly allowed by PageImages. PrimeHunter (talk) 11:30, 11 January 2021 (UTC)

revert with New wikitext mode can't generate summary automatically[edit]

revert with the beta feature New wikitext mode can't generate summary automatically, it will show a edit page and a blank summary. Is there a solution? --LaMagiaaa (talk) 14:41, 26 January 2021 (UTC)

Classify block[edit]

It same now "blocked someone contribs from editing some namespaces/pages" and "block users". But only "has blocks" may cause misunderstanding. --LaMagiaaa 19:37, 19 February 2021 (UTC)

Redirect fixer changes initial lowercase to uppercase[edit]

I have set window.popupFixRedirs = true; to enable the redirect fixer. In [1] popups changed solid Earth to Solid earth. It's the right target but I think it should change to solid earth and not use the canonical form with initial uppercase letter when the original link used lowercase. At least in this example where the only difference in the redirect is the case. If Foo redirects to Bar then it's more uncertain whether foo should change to bar or Bar, but I guess bar is more likely to be correct. PrimeHunter (talk) 00:18, 18 March 2021 (UTC)

feature request: ability to detect arguments in {{Wiktionary}} when disambiguating links[edit]

I know there is an option to link to the article of the same name on Wiktionary when disambiguating links. However, there are probably cases where a different form of a word would be more appropriate when linking to Wiktionary. For example, the new disambiguation page incision uses {{Wiktionary}} to also link to the Wiktionary articles for incise and incised. It would be nice if this tool could detect these additional terms and add them to the list of choices. Just an idea. Ixfd64 (talk) 04:26, 21 March 2021 (UTC)

Feature request:Images[edit]

A picture thumbnail is necessarily small. Pleasant if it could pop up at, say, twice or maybe even thrice the size, without clicking to make it fill the window. Jim.henderson (talk) 11:49, 28 March 2021 (UTC)

Have you tried to play with the configuration parameters popupImageSize or popupImageSizeLarge? -- Michael Bednarek (talk) 12:45, 28 March 2021 (UTC)

Feature request: preserve ^ or sup (power of 10) and preview anchors with sup[edit]

Preserve ^ or sup tags (or convert sup into ^) for power of 10: see preview for Googol, the 10100 (10^100) turns into 10100. Related pages: Template:Large_numbers (sup), pl:Szablon:Wielkie_liczby (^). Sidenote: math tags seem to preserve ^ (Skewes's number).

Preview anchors with sup: if the anchor have sup tags, that entire section doesn't display (see previews for numbers of Trillion - Decillion in Template:Large_numbers).

Bonus task: If I put anchor in a table cell, the preview shows only that cell - can the preview be expanded to entire row?

Any pointers for those tasks would be welcomed - can it be done with custom filter? And if not, on what parts of the code should I be looking at?. MarMi wiki (talk) 15:18, 23 April 2021 (UTC)

Feature request: Page Views link[edit]

Can you add Page views link, like this? --Alex Blokha (talk) 10:30, 17 June 2021 (UTC)