Wikipedia talk:Gadget

message: At some point a few weeks ago, the UTC clock stopped appearing in the personal toolbar. I don't recall making any changes that might have interfered with it. I've tried turning it off and on but it doesn't help. I welcome suggestions for other things I could try to fix it. Jojalozzo 15:11, 5 January 2015 (UTC)
replies: text: Works for me. There are a lot of scripts loaded from your vector.js; one of them might be broken, blocking all other JavaScript/gadgets. Disable them all and re-enable them one by one. -- User:Edokter  15:51, 5 January 2015 (UTC)
replies: text: Thank you for the suggestion. I may try that but the last change to my vector.js was March 2013 so I don't expect that is where the problem is. Jojalozzo 05:09, 6 January 2015 (UTC)
replies: text: The last change to YOURS, yes, but what about all of those scripts you are dynamically importing? — xaosflux Talk 20:42, 16 January 2016 (UTC)
thread_title:  UTC clock gadget no longer displayed 

message: There is an ongoing discussion that watchers of this page may be interested in on Proposal to add global JavaScript and add an extra step for new users to get live IRC help. —  (e • t • c) 19:40, 28 April 2015 (UTC)
thread_title:  Proposal to add global JavaScript 

message: Why is Twinkle missing from the Gadgets menu? Coconuts31 (talk) 13:17, 2 July 2015 (UTC)
replies: text: I still see it, under the "Browsing" header. Conifer (talk) 23:20, 2 July 2015 (UTC)
replies: text: I still don't. Coconuts31 (talk) 14:42, 5 July 2015 (UTC)
replies: text:  It's only shown for WP:AUTOCONFIRMED users. You've made sufficient edits, but not enough time has yet elapsed. You should become autoconfirmed four days after registration, i.e. on 5 July 2015 at 21:56 (UTC), which is in five and a half hours' time. --Redrose64 (talk) 16:24, 5 July 2015 (UTC)
thread_title:  Missing Twinkle 

message: I'm checking the descriptions of various gadgets to make sure they match what the gadget does and I've come across MediaWiki:Gadget-WatchlistGreenIndicators.css. Its description at MediaWiki:Gadget-WatchlistGreenIndicators says
:Display green collapsible arrows and green bullets for changed pages in your Watchlist, History and Recent changes
but as far as I can tell, this gadget displays only green bullets and only for the watchlist. I see no collapsible green arrows and I see no effect on the History and Recent changes pages. (Note: this gadget requires you to bypass your browser's cache each time you toggle its preference for the setting to come into effect.) Can somebody confirm or deny that they see same behavior. The description may be out-of-date. Courtesy ping: Edokter. Jason Quinn (talk) 15:56, 5 July 2015 (UTC)
replies: text: As you noticed, this was recently upgraded by  and there is discussion at Wikipedia:Village pump (technical)/Archive 137#Changed pages on my watchlist, Wikipedia:Village pump (technical)/Archive 137#Watchlist design change feedback, Wikipedia:Village pump (technical)/Archive 137#Hiding the dot and Wikipedia:Village pump (technical)/Archive 138#Watchlist announcements leaving a gap. Probably elsewhere too. --Redrose64 (talk) 16:29, 5 July 2015 (UTC)

text: , on my end, I don't need to clear my cache. The arrows mentioned are visible in the enhanced watchlist only, which you get by enabling both  and  in your preferences. -- User:Edokter  16:34, 5 July 2015 (UTC)
thread_title:  WatchlistGreenIndicators 

message: Gadget developers and users: we would like to have your input on the following proposal phab:T123636 aiming to simplify the generation of statistics on the volume and quality of edits as well as the user base of individual gadgets by using revision hashtags. For additional context on revtagging and how it differs from WP:Tags see mw:revtagging  (ping ). --DarTar (talk) 17:05, 16 January 2016 (UTC)
thread_title:  Gadget usage statistics via revision hashtags 

message: MediaWiki:Gadget-purgetab.js
Useful for me. - Vargskelethor (talk) (sandbox) (userboxes) 19:38, 10 August 2016 (UTC)
thread_title:  PurgeTab gadget 

message: I've proposed adding two new gadgets, libLua and libSensitiveIPs, over at WP:VPT#Sensitive IP addresses follow-up. If people want to review the code and/or make comments, I'd be most grateful. — Mr. Stradivarius ♪ talk ♪ 14:00, 22 September 2016 (UTC)
thread_title:  libLua and libSensitiveIPs 

message: The bolding of unread articles on my watchlist has for some reason turned itself on recently, despite not being selected in my preferences. I tried selecting it, saving, then unselecting, but I can't seem to make it go away. Any advice? Cheers, Number 57 18:57, 10 October 2016 (UTC)
replies: text: Please see Wikipedia:Village pump (technical)#Gadget CSS order. --Redrose64 (talk) 18:10, 11 October 2016 (UTC)
thread_title: Watchlist bolding

message: Why is MediaWiki:Gadget-WatchlistBase.css loaded as a gadget? Shouldn't it be loaded via the MediaWiki:Common.css or something similar since the line in preferences says "This loads the base style for the watchlist. Please do not disable this option."? --TerraCodes (talk to me) 03:44, 26 October 2016 (UTC)
replies: text: MediaWiki:Common.css is loaded for all users, even those who are logged out, so it is a good idea to keep it as small as possible. Logged-out users don't have watchlists, so it makes sense to load the watchlist CSS only for logged-in users. This can't be done via Common.css, but it can be done using gadgets, so that's why it is the way it is. I think it should be possible to hide the entry for it in preferences, though, if it isn't already. — Mr. Stradivarius ♪ talk ♪ 03:53, 26 October 2016 (UTC)
thread_title:  Question 

message: Edit summary gadget was working now not working.
The drop down menu options are still there, just when I click on them they don't show up in the edit summary box.
Any idea on how to fix it? Sagecandor (talk) 22:21, 1 December 2016 (UTC)
replies: text: It's Thursday, the normal day for MediaWiki software deployment. My guess is a breaking change with the latest update, possibly related to the planned removal of the legacy "wikibits" JavaScript module, see Wikipedia:Village pump (technical)/Archive 145#Breaking change: wikibits. --Redrose64 (talk) 00:07, 2 December 2016 (UTC)
replies: text: Oh okay that makes sense, thank you for the helpful explanation! Sagecandor (talk) 00:15, 2 December 2016 (UTC)
replies: text: I left a note at Wikipedia:Village pump (technical)#Several technical problems where others have commented. --Redrose64 (talk) 09:35, 2 December 2016 (UTC)
thread_title:  Edit summary gadget was working now not working 

message: I feel that we should do some reordering soon on the list of gadgets. It's getting a bit long, and some of the sections are a bit all over the place right now. Anyone have suggestions ? —TheDJ (talk • contribs) 08:37, 26 June 2017 (UTC)
thread_title:  Re-order 

message: TLDR: We should remove this gadget, both as a default-enabled gadget, and completely. 
Details: The MediaWiki:Gadget-featured-articles-links.js / MediaWiki:Gadget-featured-articles-links.css is no longer needed, nor working. Edokter commented on this over 2 years ago.  Examples can be seen at Blade Runner. (Note, the GA badges are using a more generic styling in order to be consistent across all languages. The same styling is shown regardless of whether the Compact Language Links betafeature is enabled - i.e. this is controlled directly by Wikidata.) Hence I recommend removing the gadget entirely. Quiddity (talk) 16:06, 4 September 2017 (UTC)
replies: text: —TheDJ (talk • contribs) 20:43, 4 September 2017 (UTC)
thread_title:  Remove local Gadget-featured-articles-links 

message: Just in case anyone watches this page and not WP:VPT, I've opened a proposal over there to make User:Enterprisey/talk-tab-count into a gadget: WP:VPT#Proposal to make talk-tab-count a gadget Enterprisey (talk!) 05:56, 9 January 2018 (UTC)
thread_title:  Proposal for a new gadget (talk-tab-count) 

message: Does MediaWiki:Gadget-RegexMenuFramework.js work?  It's a no go for me on modern, but more to the point, why are we explicitly offering something in the preferences that is recommended against?  Should it not be replaced with m:TemplateScript, or am I missing something?  Pinging  as the last editor there. ~  Amory (u • t • c) 13:45, 5 February 2018 (UTC)
replies: text: won't work to notify .  will. --Redrose64 🌹 (talk) 18:10, 5 February 2018 (UTC)
replies: text:  If i disable it I'll get angry people chasing me. I don't feel like dealing with that. Deprecating and encouraging people slowly takes me too much time, which I don't have. —TheDJ (talk • contribs) 09:25, 6 February 2018 (UTC)
replies: text: I hear ya, and I don't by any means intend to impose my naïveté on your time, but does the gadget even function?  I can't get the regex editor in vector or monobook either, and if it doesn't work I imagine nobody is using it. ~  Amory (u • t • c) 11:24, 6 February 2018 (UTC)
replies: text: It exposes some global functions, that people are supposed to use in their common.js file to add functionality.. It's an incredibly outdated design and hard to figure out how many people depend on this, but it's definitely quite a few. —TheDJ (talk • contribs) 13:45, 6 February 2018 (UTC)

text: I have an idea.. we can hide it, so that new people cannot enable it any longer... —TheDJ (talk • contribs) 13:46, 6 February 2018 (UTC)
thread_title:  RegexMenuFramework 

message: Anyone interested in participating in a voluntary "request for code review" process? Please discuss at Wikipedia talk:User scripts#Voluntary code review (not here) - Evad37 [talk] 03:42, 20 February 2019 (UTC)
thread_title:  Voluntary code review 

message: Hi, all, I'd like to make a change to Mediawiki:Gadget-markblocked.js, and wanted to discuss it here first. You can see the diff of what I'd like to change here: Special:Diff/862434408/884449263. Currently, when you go to an indefblocked user's talk page history, all of the datestamped history links will be styled as a link to an indefblocked user. This causes the distinction between revdeled and non-revdeled edits to be lost (at least for admins), since it overwrites the normal strikethrough-italic styling of a revdeled link. My changes exclude the datestamp links from consideration, preserving the extra information about revdel that is otherwise lost. Screenshots of the effect included. Thoughts? Writ Keeper ⚇♔ 18:52, 21 February 2019 (UTC)
replies: text: Since becoming an admin (as if you're a non-admin, the revdeleted revision links are also grayed out), I've often had to view the history logged out (there are legit uses for an incognito window!) to make any sense of the history, which I shouldn't need to do since I don't see any reason for every revision link of the history to be struck-through. Galobtter (pingó mió) 19:18, 21 February 2019 (UTC)

text: This mess made me think the same thing today, thanks for taking action!  Changes look good, although I think return`ing on just .mw-changeslist-date would be sufficient and looks clearer to me.  Unless that mucks up sysops viewing history with suppressed revisions? ~  Amory (u • t • c) 01:58, 22 February 2019 (UTC)
replies: text: Haha, nah, I just like having the (cur|prev) links be without lines, too (also shown in the screenshots). It's not necessary at all; in the interest of being conservative with changes, I'll leave it out. Writ Keeper ⚇♔ 03:01, 22 February 2019 (UTC)
replies: text: I'm not wild about it either, but in the case of editors editing a blocked user's talk page, they impart extra information that, yes, that user is blocked, regardless of whether the revision's editor is blocked.  One thing to do might be to exclude some combination of .comment, .mw-history-undo, and .mw-rollback-link.  It starts to get a bit unwieldy, but crossing out rollback/undo might send the wrong message.  The edit summaries are somewhere in-between IMO; crossed out emphasizes the page you're on is that of a blocked user (à la cur/prev) but could(?) also be misleading/overly difficult to read. ~  Amory (u • t • c) 10:53, 22 February 2019 (UTC)
replies: text: Yeah, I was considering doing the rollback and undo buttons, too, but decided against it just because of how bloat-y the if statement was getting. It's definitely a good idea, though. Writ Keeper ⚇♔ 15:44, 22 February 2019 (UTC)

text: Sounds like a good idea. Thanks for writing the patch! Enterprisey (talk!) 05:08, 22 February 2019 (UTC)

text: Gorgeous. ~  Amory (u • t • c) 01:58, 23 February 2019 (UTC)
thread_title:  Proposed change to [[Mediawiki:Gadget-markblocked.js]] 

message: Categories are not shown in the Minerva skin per discussion on mw.org. I've written a gadget that would add this missing feature. It could be made default for logged in users but I ask for now that it is installed so at least editors are given the option.
The module would be restricted to the Minerva skin, which should work on both mobile and desktop Minerva but not load on other skins where is it not necessary.
  
Jdlrobson (talk) 18:51, 10 October 2019 (UTC)
replies: text: I believe there is already a similar gadget available, MediaWiki:Gadget-MobileCategories.js and a beta feature is available. I think you can submit a edit request instead. Also your script uses wgTitle and it is restricted to mainspace. I don't think it will be much useful if you only include mainspace. Add another thing why you are hiding hidden categories on mobile? This script should detect user preferences for showing/hiding hidden categories and work accordingly. Masum Reza📞 19:49, 10 October 2019 (UTC)
replies: text:  As a developer on the mobile project, I can share that there is a possibility we might be removing the beta (and possibly with it the categories beta feature which hasn't been maintained in several years) - hence why I'm interested in getting a more simple global gadget available. MediaWiki:Gadget-MobileCategories.js also looks suitable - I didn't realise User:TheDJ had beaten me too it :-) .... but it should really be made global and available via Special:Preferences. I'm happy to update my script to detect user preferences if that's more useful. Either way there should be one gadget there now (especially given the issues with gadget on mobile should have been resolved now) Jdlrobson (talk) 04:25, 11 October 2019 (UTC)
replies: text: I see. Let's suppose Categories beta feature is removed, and it is replaced by one of these scripts (yours/TheDJ's). We wouldn't be able to add(/remove) categories to a page easily. The beta feature currently allows one to add categories to a page without editing the wikitext. It is partially like a mobile hotcat. And the current HotCat won't run on mobile. I suggest you to update your script so it at least replicates the beta Categories feature. Then IMO, there will be no reason not to remove the beta. And if I am not mistaken HotCat is a global gadget and most wikis have it, not sure we had "a community discussion" to add this gadget on every wikis where it is installed. Sometimes it is hard to find discussion participants particularly on smaller wikis. IMO, if a gadget is useful, we should be bold enough to add the gadget ourselves. Masum Reza📞 03:09, 12 October 2019 (UTC)

text:  i don't have any plans to expand the category gadget I wrote. I just wanted to provide an option if it does get removed. The code of the beta feature is pretty neglected. It has been touched in a couple of years so I would be hard pressed not to support its removal. Jdlrobson (talk) 19:11, 13 October 2019 (UTC)
thread_title:  Proposal for Minerva categories gadget 

message: You are invited to join the discussion at WP:VPT#XFDcloser gadget?.  - Evad37 [talk] 04:37, 27 October 2019 (UTC)
thread_title: Discussion at [[WP:VPT#XFDcloser gadget?]]

message: I've created a script to make on-wiki unit testing a bit easier to implement. Please see , and comment there (not here). - Evad37 [talk] 01:09, 11 December 2019 (UTC)
thread_title:  Gadget and userscript unit testing 

message: Hi - is there any way to make the UTC time toolbar display work for certain time zones, not just UTC? Would be a handy addition for Wikipedia. ɱ (talk) 00:54, 11 May 2020 (UTC)
replies: text: , we don't maintain the UTC clock gadget here, you can ask for updates at mw:MediaWiki talk:Gadget-UTCLiveClock.js. — xaosflux Talk 02:09, 11 May 2020 (UTC)
replies: text: Thanks, there's no obvious link to it from the gadgets page. ɱ (talk) 02:26, 11 May 2020 (UTC)
replies: text: Added! — xaosflux Talk 02:49, 11 May 2020 (UTC)

text: I've coded the update, but want to make sure its a good idea given the wide use; please see Wikipedia:Code review/UTCLiveClock DannyS712 (talk) 10:25, 11 May 2020 (UTC)
thread_title:  UTC time gadget 

message: Please see Wikipedia:Village pump (technical)#Short description metadata issues.  — SMcCandlish ☏ ¢ 😼  20:28, 19 May 2020 (UTC)
thread_title:  VPTECH thread on SHORTDESC gadget's metadata output 

message: Please see Wikipedia:Village pump (proposals)#Delete Gadget and Gadget Definition namespaces. Alexcalamaro (talk) 05:34, 2 February 2021 (UTC)
thread_title: Delete Gadget and Gadget Definition namespaces

message: The maintainer for this javascript is now retired. there are a number of suggestions on its discussion page suggesting similar things:
*remove the drop shadow
*remove the border
Could someone with .js editing privileges make the necessary edits? T.Shafee(Evo&Evo)talk 05:12, 3 March 2021 (UTC)
replies: text: Additionally, what do people think about replacing the entire caption background as white (similar to formatting at this page). T.Shafee(Evo&Evo)talk 05:16, 3 March 2021 (UTC)

text: (as to the immediate edit request) this is a 'test' gadget so no big deal making tweaks to it; but they need to be written before they can be implemented.  Once someone writes and tests changes, feel free to activate a new edit request at MediaWiki talk:Gadget-NewImageThumb. — xaosflux Talk 14:44, 3 March 2021 (UTC)
thread_title:  Quick CSS formatting edit to [[MediaWiki:Gadget-NewImageThumb.js]] 

message: Should the sections for MediaWiki:Gadgets-definition begin with a capital letter? Qwerfjkl talk 21:53, 25 March 2021 (UTC)
replies: text: They're prepended with "MediaWiki:Gadget-section-" to produce page names which are then transcluded to Special:Gadgets and Special:Preferences#mw-prefsection-gadgets. For example, "browsing" becomes MediaWiki:Gadget-section-browsing → . This allows internationalisation. --Redrose64 🌹 (talk) 23:18, 25 March 2021 (UTC)
thread_title:  MediaWiki:Gadgets-definition 

message: I can't see them anymore. Where did they go? —hueman1 (talk • contributions) 03:44, 5 July 2021 (UTC)
replies: text: You mean the gadget? It’s no longer necessary, the advanced mobile mode shows categories since recently. See also discussion on MediaWiki talk:Gadgets-definition. —Tacsipacsi (talk) 17:31, 5 July 2021 (UTC)
replies: text:  The advance mode is so annoying. I wish there were more options to choose from. —hueman1 (talk • contributions) 17:34, 5 July 2021 (UTC)
replies: text:  while we retired the testing gadget, the code still exists at MediaWiki:Gadget-MobileCategories.js and you could mw.load it to your Special:MyPage/mobile.js. — xaosflux Talk 10:33, 6 July 2021 (UTC)
replies: text: Thanks, . I didn't know that this was possible, but it seems like I entered the code wrong. —hueman1 (talk • contributions) 11:15, 6 July 2021 (UTC)
replies: text:  I think it should be on Special:MyPage/minerva.js, not mobile.js, mobile.js is only for the MediaWiki namespace. —Tacsipacsi (talk) 23:06, 6 July 2021 (UTC)

text: mw:Manual:Interface/JavaScript says that it is for the "Mobile website".  Now, that site happens to use Minerva so you should be able to do things there as well, but mobile.js is not limited to mobile users looking at pages in the mediawiki namespace as far as I'm aware (please point to any documentation that says otherwise and we can update the local description). — xaosflux Talk 23:17, 6 July 2021 (UTC)

text:  I mean only the mobile.js page that is specified in the MediaWiki namespace is loaded, not that the mobile.js page would be loaded only when seeing pages in the MW namespace (the latter would hardly make any sense). And no, the documentation you cited doesn’t say that Special:MyPage/mobile.js would be for the mobile website, there’s no such entry in the table in mw:Manual:Interface/JavaScript#Personal scripts. (§ Global scripts lists it, but that applies to the MediaWiki namespace version only, not to user subpages.) By the way, I looked at the code, and while it isn’t easy to prove that something doesn’t get loaded, I found nothing that would load /mobile.js. —Tacsipacsi (talk) 00:13, 7 July 2021 (UTC)

text: ah OK, thank you :) so yes,  move that to User:HueMan1/minerva.js. — xaosflux Talk 00:28, 7 July 2021 (UTC)
replies: text: I added a note at MediaWiki:Mobile.js. — xaosflux Talk 00:33, 7 July 2021 (UTC)
replies: text:  It works now, thanks! —hueman1 (talk • contributions) 00:54, 7 July 2021 (UTC)
thread_title:  Mobile view categories 

message: I think it would probably be a good idea to remove the table of available gadgets from this information page. The table is horrendously out of date and has been tagged as needing an update since 2010. It is missing several of the most commonly used gadgets (like twinkle) and contains several discontinued or removed gadgets (e.g. the teahouse gadget). Despite MediaWiki:Gadgets-definition asking that all gadgets be added to the list this very obviously hasn't been done. Finally this table largely duplicates the functionality of a special page that is automatically generated by the software, Special:Gadgets, which contains a sorted list of all available gadgets, a short description of what they do and a link to their source files. I think it would be better to replace this table with a paragraph explaining that users can browse available gadgets in their preferences page, and that a list of all gadgets can be found on the special page. 192.76.8.91 (talk) 13:45, 8 July 2021 (UTC)
replies: text: OK, done. — xaosflux Talk 14:28, 8 July 2021 (UTC)
thread_title:  The table of available gadgets 

message: Request help to fix the Shortdescr gadget on Tewiki with Vector-2022 UI. It works fine in traditional Vector UI. Arjunaraoc (talk) 04:41, 27 August 2022 (UTC)
replies: text: @Arjunaraoc see Wikipedia:Village_pump_(technical)#Is_there_an_update_to_Vector-2022_today/yesterday?. — xaosflux Talk 18:09, 27 August 2022 (UTC)
thread_title:  Shortdescr gadget does not work on Tewiki with Vector-2022 UI 

message: I suggest copy-pasting the Search and Replace functionality to the Wikipedia:RefToolbar to prevent the need to switch modules to locate it (and match experience of using Visual Editor). I have had a few instances when I was unable to use it natively on WP and had to use external programs simply because I couldn’t find it when editing a page. Respublik (talk) 23:39, 28 June 2023 (UTC)
replies: text: . Can you elaborate a bit on this? I'm having trouble figuring out what you mean and how this is related to the RefToolbar. –Novem Linguae (talk) 00:13, 29 June 2023 (UTC)
replies: text: I assume they're suggesting that the search and replace button in the Advanced subtoolbar be copied onto the Cite subtoolbar. Nardog (talk) 00:15, 29 June 2023 (UTC)
replies: text: This ^ Respublik (talk) 03:01, 29 June 2023 (UTC)
thread_title:  Wikipedia:RefToolbar 

message: What does  mean? Since all a gadget does is add JavaScript and CSS, for users with JS disabled, all gadgets already "allow users to run without JS", by not being available to them. Does it mean the CSS should not cause problems for them, or something else? Nardog (talk) 00:22, 24 January 2024 (UTC)
replies: text: I think it means default gadgets should not required for the website to function, because the website should function with js disabled. Snowmanonahoe (talk · contribs · typos) 00:23, 24 January 2024 (UTC)
replies: text: That and there are style only modules that might expect javascript to load from another module. This is pretty rare however... maybe we should remove that again, it might cause more confusion that it will be worth. —TheDJ (talk • contribs) 08:22, 24 January 2024 (UTC)
replies: text: What about ? The current wording is confusing indeed, but on the other hand one can easily forget about no-JS users while developing a JS gadget, so it’s important to stress this. —Tacsipacsi (talk) 21:06, 24 January 2024 (UTC)
replies: text: Sounds good, edited. Nardog (talk) 03:34, 26 January 2024 (UTC)
thread_title:  Criteria 

message: You are invited to join the discussion at MediaWiki talk:Common.js § Class-triggered gadgets.  – SD0001 (talk) 16:38, 25 January 2024 (UTC)
thread_title: Discussion at [[:MediaWiki talk:Common.js#Class-triggered gadgets|MediaWiki talk:Common.js §&nbsp;Class-triggered gadgets]]

message: A discussion regarding tempaltegadgets is now open at Wikipedia:Interface_administrators%27_noticeboard#Template_gadgets_-_naming_convention, please join in there if interested. — xaosflux Talk 11:52, 28 May 2024 (UTC)
thread_title:  Template gadgets