Jump to content

Wikipedia talk:Tools/Navigation popups

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

This is an old revision of this page, as edited by Leag (talk | contribs) at 13:12, 1 April 2014 (→‎disambig not working, and other odd behaviour). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

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.


List of places Popups is used

A quick list of all the places I can find that use Popups; a few notable exceptions; plus annotations.

Foreign language Wikipedias
Foreign language sister projects
  • (?) (Is there an easy way to generate a complete list?)
English/International sister projects
js notes css notes
meta (mw.loader.load) css @import
mediawiki (mw.loader.load) css @import
commons (mw.loader.load) css
outreach css @import
wiktionary (importScriptURI) popups_importStylesheetURI
wikidata (mw.loader.load) css @import
wikibooks (js renamed) css
wikisource (mw.loader.load) css
wikivoyage (mw.loader.load) css @import (css renamed)
wikiversity css (css renamed)
beta Wikiversity css (css renamed)
wikinews (js renamed) (mw.loader.load) css
foundation (mw.loader.load) css
simple English Wikipedia (js renamed) (mw.loader.load) css @import
wikimania2014 css
wikimania2013 css
wikimania2011 css
wikimania2010 css
wikimania2009 css
wikimania2008 css
Testwiki css
Test2wiki css
en.wikipedia.beta.wmflabs css
Not installed on
Question
Possibly some or all of the installations that are not currently using mw.loader.load should be updated to do so? A few seem to be importing Lupin's version still, too. Eg. eo.

(Feel free to add items/annotations to the above list.) –Quiddity (talk) 21:51, 20 October 2013 (UTC)[reply]

Optimally I think every other site should load/import from here, but whatever works for them is fine with me. A number of external sites have switched to loading it from here now with the recent deprecation of old unsupported functions, that's the most important thing IMO since a number of security holes were fixed here recently. Whether they use importScript or loader.load or Lupin/popups.js is less important IMO, not sure whether importScript is ever going to be removed, and Lupin's loader will probably be supported indefinitely since I think it's used on non-WMF-sites as well.
Amalthea 10:34, 15 November 2013 (UTC)[reply]


Gadget Disabled?

I suddenly discovered that this gadget was disabled, while I have had it enabled forever. Is there a reason, or is this just a bug? Webhat (talk) 23:57, 7 November 2013 (UTC)[reply]

It seems to be having trouble. I notice two problems. First is that user contribs are all showing undefined in the popup window. Second, hovering over the user or talk link should show the user's status (e.g. sysop, number of edits, etc.). -- Mufka (u) (t) (c) 00:03, 8 November 2013 (UTC)[reply]
I've been having the same problem; is there something on my end I need to do to fix this? SpencerT♦C 00:56, 8 November 2013 (UTC)[reply]
Hmm. It appears to be working now. I didn't do anything. -- Mufka (u) (t) (c) 01:02, 8 November 2013 (UTC)[reply]
It wasn't working again, then I cleared my browser cache and it works now. SpencerT♦C 01:56, 8 November 2013 (UTC)[reply]
If you're running into the undefined issue, you just need to clear your cache and it'll work again. Some of the underlying MediaWiki JS is changing, so cache refreshes are needed. Legoktm (talk) 04:33, 8 November 2013 (UTC)[reply]
A number of deprecated site functions were removed two days ago which broke popups. It was quickly repaired, but since you (WebhatMufkaSpencer) are all importing the script manually from your user scripts instead of using the gadget in your preferences a cache bypass was necessary to get the fixed version. Amalthea 08:52, 8 November 2013 (UTC)[reply]
I have cleared my cache and it has helped. But only here on en:wiki, unfortunately not on Commons and cs:wiki. What should I do moreover? Thanks --Packa (talk) 17:26, 8 November 2013 (UTC)[reply]
@Packa: On both commons and cswiki, if you notice popups is broken on a page then reload that page while bypassing your browser cache. That will work on external sites where the script is loaded from here. Amalthea 17:53, 8 November 2013 (UTC)[reply]
For me it was actually disabled in the gadget section, the checkbox had become unchecked. Strange. It all works now I've enabled it again. Webhat (talk) 02:05, 9 November 2013 (UTC)[reply]
@Webhat: Assuming you're using monobook then you are also importing popups via User:Webhat/monobook.js. Amalthea 02:11, 9 November 2013 (UTC)[reply]
@Amalthea: Ah, it has been so long since I set that up I'd forgotten. Thanks! Webhat (talk) 12:45, 11 November 2013 (UTC)[reply]
This used to work on yiwiki, but it has stopped working there now and I do not see any way to get it working again. --Redaktor (talk) 11:39, 1 December 2013 (UTC)[reply]
@Redaktor: I have left instructions on how to fix it at yi:מעדיעװיקי_רעדן:Gadget-NavigationPopups.js and notified an admin to look into it.
Amalthea 18:49, 1 December 2013 (UTC)[reply]
Many thanks. Now working again. --Redaktor (talk) 23:05, 1 December 2013 (UTC)[reply]

Just a suggestion

Would it be a good idea to also include what level of protection a page has (if applicable) in the popups? For example, popups already indicate if an article is a stub, would it also be a good idea if the popups could also say "semi-protected", "protected", "move-protected", etc. if applicable? Thanks. Narutolovehinata5 tccsdnew 02:26, 8 December 2013 (UTC)[reply]


Popups show wp:red links in blue not red. --Rezonansowy (talkcontribs) 09:10, 11 January 2014 (UTC)[reply]

Like in title, they just don't show, when you hover on image in popup or in article. --Rezonansowy (talkcontribs) 09:15, 11 January 2014 (UTC)[reply]

File:Johann Sebastian Bach.jpg pops up OK here, as it does when I popup his article. Popups with Red links (like this one) are not red but are shown with "Empty page". -- Michael Bednarek (talk) 14:05, 11 January 2014 (UTC)[reply]
They're not OK when you embed image not just link them. And red links are shown with empty page only when you hover on them, which isn't very comfortable solution. --Rezonansowy (talkcontribs) 14:16, 11 January 2014 (UTC)[reply]
Michael Bednarek? --Rezonansowy (talkcontribs) 16:18, 15 January 2014 (UTC)[reply]
I don't quite understand your concern (embed vs. link?), and the part I understand I don't share. I'm quite content with the current functionality. -- Michael Bednarek (talk) 00:43, 16 January 2014 (UTC)[reply]

OK Michael, I'll try to explain it more precisely.

Red links

Like above they should be red.

Commons images

Popups work with images as well as with articles. Test with local uploads:

  1. Go to Windows 8 article and over on image in infobox (its Start screen screenshot)
  2. You see it works (popups appear on image)
  3. but on Johann Sebastian Bach article popups don't show anything when you hover on it
  4. so this gadget doesn't show anything with images located on Commons not on Wikipedia itself

Thank you --Rezonansowy (talkcontribs) 15:44, 19 January 2014 (UTC)[reply]

Anyone?? --Rezonansowy (talkcontribs) 13:31, 19 February 2014 (UTC)[reply]

Patches welcome. ;)
  • Coloring red links is theoretically feasible with the API, not sure how much restructuring it would take (you'd want to get all the information with a single additional query, so from the top of my head you'll either need to split or duplicate the parsing/rendering of the wikitext or do some ugly tricks (CSS, further postprocessing) afterwards.)
  • Image previews work for me when I hover over the image in both articles.
Amalthea 13:56, 19 February 2014 (UTC)[reply]
@Amalthea: Thanks for reply!
I've tested this gadget with standard JS set on Wikidata and I get same error. Could you repeat this test? Please hover on this link and then hover on Bach image placed in showed popup, you get another popup or nothing? --Rezonansowy (talkcontribs) 19:04, 19 February 2014 (UTC)[reply]
Ah, I think I understand now (above you said "go to", not "hover"): The images in the popup previews of Random Access Memories and Johann Sebastian Bach behave differently, the commons image isn't popups-active, even though the popup of the direct file link File:Johann Sebastian Bach.jpg does show useful information. It would make sense to have the image in the preview behave the same.
Amalthea 19:48, 19 February 2014 (UTC)[reply]
Great! That's exactly what I meant. --Rezonansowy (talkcontribs) 20:28, 19 February 2014 (UTC)[reply]
@Amalthea: Can we list this bug? --Rezonansowy (talkcontribs) 12:47, 20 February 2014 (UTC)[reply]

Wrong diff shown

Resolved

When mousing over the words "this edit" at [1], the diff shown is not accurate. Jackmcbarn (talk) 17:21, 21 January 2014 (UTC)[reply]

Fixed, thanks. Amalthea 14:06, 19 February 2014 (UTC)[reply]

First of all, let me say I love this tool. I added this using the Gadget menu in preferences. I want to increase the delay before a popup appears and I don't understand how to do that. Trying to edit my javascript file like the project page says leads me to new page creation and I have no idea what to do with that. DavidSSabb 05:42, 24 January 2014 (UTC)

@DavidSSabb: Yes, that's what you need to do to configure popups.
I've created the page for you at User:DavidSSabb/common.js and increased the delay from 0.5s to 0.75s, feel free to change that number, but be careful not to break the javascript syntax -- if you do you'll notice that some of your scripts won't work anymore, but you can of course always revert or blank the file.
Something else, your signature is missing the link to your user page, that usually happens if you mistakenly check the "Treat the above a wikimarkup" checkbox in your preferences.
Amalthea 11:12, 24 January 2014 (UTC)[reply]

Wrong image displayed

Sometimes, the popup for an article displays a less-than-ideal choice of image. For example, Congress of the Union displays the first [[Image:...]] that it finds in the article (the PAN party logo) instead of the {{Infobox legislature}} image (specified in the |coa_pic= param), since it is just the raw filename, without the [[Image:...]] markup. Is there a way to tell the popup to use this image (and other similar situations with other parameter names)? I thought of using the hack of putting a tiny or non-displayed image above the infobox in the source, but that seems "ugly". —[AlanM1(talk)]— 19:01, 5 February 2014 (UTC)[reply]

I'm afraid there is currently no way, no. Amalthea 14:17, 19 February 2014 (UTC)[reply]
@Amalthea: I'd like to suggest an enhancement then. Have it look for a comment tag like <!--NPUImage-->. If found, use the next image after it in the popup. If not found, use the first image in the article (as it currently does). An alternate form would be <!--NPUImage:Some Image.jpg--> to cause it to use that image in the popup instead of the next one found. This would be used to accommodate the example I gave above, where there is no [[Image:...]] markup around the image name in the Infobox. —[AlanM1(talk)]— 11:45, 3 March 2014 (UTC)[reply]

Could popups be taught about the new special links Special:Diff/595161694 and Special:Permalink/595161694? -- John of Reading (talk) 19:45, 13 February 2014 (UTC)[reply]

I hope so. Until they are, if you want to cater to Popups users, you can use {{diff}} and {{oldid}}. — Scott talk 13:35, 19 February 2014 (UTC)[reply]
Or {{diff2}}/{{oldid2}}, those versions are easier to use in that they also only require the revision id. Amalthea 14:19, 19 February 2014 (UTC)[reply]
The first two only do as well - your last revision of this page, diff for it. (Although oldid seems to default to "Main Page" as page name, which gets ignored by MediaWiki; seems like a bug!) But the "2" versions don't require named arguments, which is an improvement - thanks. — Scott talk 14:30, 19 February 2014 (UTC)[reply]

Showing edit summaries

I've user popups for ever – can't imagine WP without it. Is it possible to show the edit summary when hovering over diffs, such as this?  —SMALLJIM  13:47, 2 March 2014 (UTC)[reply]

No-one? The edit summary is surely available via the API, and it would prove very useful to be able to see it at times.  —SMALLJIM  12:24, 26 March 2014 (UTC)[reply]
I made a similar request almost a year ago, but got no response then either.—Odysseus1479 00:26, 27 March 2014 (UTC)[reply]

Hi~How does the popup know when to end text? Does it always show text only until the 1st line break? Is it configurable? I wonder if using special formatting on pages (and invisible except to user on normal page view) or an option in the popup tool could allow to break at different points? I ask because sometimes popups show very little or no text, and I think usually it's when a link is to a section of a page which has a heading. So, I wonder if it can be made to show more/fewer lines? Sorry for many similar questions...I'm not sure if that made sense? ^^;; Anyway, thank you for a great tool; I use it all the time~:) ZeniffMartineau (talk) 05:48, 3 March 2014 (UTC)[reply]

History

Seems to be a problem with the display of article history list in that it gives the change description for revisions where the edit summary is hidden. Keith D (talk) 17:27, 6 March 2014 (UTC)[reply]

@Keith D: Only for the people who may view them though, you shouldn't be able to view suppressed edit summaries/user names/..., and non-admins can't see rev-deleted ones. Amalthea2 (talk) 17:47, 6 March 2014 (UTC)[reply]
Thanks, probably I can see it then as the admin who deleted it. Keith D (talk) 17:49, 6 March 2014 (UTC)[reply]
No, every admin has the right to see it so the API automatically returns the comment. You can test this with e.g. this API query where you'll only be able to see the comment while logged in. Amalthea2 (talk) 18:37, 6 March 2014 (UTC)[reply]
FTR, since it came up elsewhere, this behavior is indeed new. There was a change in the API in January, before that the API didn't send the revdeled information. Amalthea2 (talk) 09:26, 12 March 2014 (UTC)[reply]

If there are italics markers inside a piped link then I see <em>...</em> around the text which should have been italicized. For example, Indiana Jones currently contains [[Indiana Jones (franchise)|''Indiana Jones'' franchise]] so I see <em>Indiana Jones</em> franchise in popups. It also happens when the whole text should have been italicized. For example, Sallah contains [[Indiana Jones (franchise)|''Indiana Jones'']] so I see <em>Indiana Jones</em>. Tested in Firefox and IE. There are no problems when the italics markers are outside the link. PrimeHunter (talk) 04:56, 10 March 2014 (UTC)[reply]

Non-ideal treatment of MW:editnotice-* pages

When I hover things in https://commons.wikimedia.org/w/index.php?title=Special%3APrefixIndex&prefix=editnotice&namespace=8, popups doesn't show any text. I'm assuming this is because popups is trying to extract something from a rendered form of the "page", whereas editnotice pages are basically templates with extra-special operating conditions, and these ones don't happen to expand to anything on their own. Not that it matters much here; these all just invoke the same template anyway. —SamB (talk) 17:46, 10 March 2014 (UTC)[reply]

Indeed, edit notices only work when placed into context, otherwise they evaluate to "" and thus they don't show any content. —TheDJ (talkcontribs) 09:18, 25 March 2014 (UTC)[reply]

How to recognize the localization redirect syntax?

Hello! POPUP has a function that can ignore redirect pages (popupFixRedirs), while if a page is #REDIRECT [[target]], it works fine. But in Chinese Wikipedia, #重定向 [[targer]] syntax is also available, but POPUP comprehend it as an ordered list rather than a redirect page. A similar problem is {{Disambig}} to {{消歧义}}. So is there some way to tweak these in my custom js page? Thanks.--Wangxuan8331800 15:33, 24 March 2014 (UTC)[reply]

@Wangxuan8331800: this change should fix the redirects and the option popupDabRegexp needs to be set locally to also match 消歧义, see also the options manualTheDJ (talkcontribs) 21:02, 24 March 2014 (UTC)[reply]
Thank you!--Wangxuan8331800 02:15, 25 March 2014 (UTC)[reply]

AutoClick also for disambiguation corrections

It would be very very very useful to consdier also a "popupDabsAutoClick" for disambiguation pages, exactly like "popupRedirAutoClick" for redirects. --Superchilum(talk to me!) 11:20, 26 March 2014 (UTC)[reply]

disambig not working, and other odd behaviour

When I hover over a link that leads to a disambig page, the usual popup appears, but when I click on the appropriate meaning, the article goes into edit mode but no disambiguation has been done, and no edit summary has been added. Also the first time I hover over any link, I get two popup boxes - the usual one plus a larger mostly white one underneath it, containing the usual first few lines of the article, and which seems to be present but minimised on a subsequent rollover of the same link. This was all working fine until today. (I'm running IE11 on W7 64-bit). Colonies Chris (talk) 20:42, 29 March 2014 (UTC)[reply]

Disambiguation fails here, too (Firefox & Monobook); example Floodlight – hover, select one target, click – no automatic disambiguation edit. The two popup boxes: did you enable Hovercards at Special:Preferences#mw-prefsection-betafeatures? -- Michael Bednarek (talk) 04:00, 30 March 2014 (UTC)[reply]
Thanks I've fixed the monocard problem (though I hadn't knowingly turned it on). But the disambig situation is the same. Colonies Chris (talk) 09:33, 30 March 2014 (UTC)[reply]
I have the same problem on fr wiki. Leag (talk) 13:12, 1 April 2014 (UTC)[reply]

Flagging users

Flagging users of various kinds would be useful; previously someone asked about flagging_users_who_are_under_ArbCom_restrictions but got no reply. It would be handy to have administrators flagged - as they are now once the popup opens, but it would be handy to have things like edit count or admin status inline on some pages, especially during !votes!--Elvey (talk) 04:08, 1 April 2014 (UTC)[reply]