Wikipedia talk:Gadget/Archive 2
This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
How about calling it Wikigets???
I would love to call these accessory gadgets Wikigets. Pls give ur views on this proposal. I think it would be nice to hav a wiki touch. Amartyabag TALK2ME 06:44, 28 April 2008 (UTC)
- Eugh. We don't need "wiki" plastered over everything. This is just a tool to make JavaScript addition easy for code newbies, so let's not try to brand it. Wikipedia's brand recognition is good enough. Nihiltres{t.l} 18:18, 28 April 2008 (UTC)
Twinkle as a Gadget
I've removed Twinkle from the Gadget list temporarily; please see the discussion at WP:AN#Vandal making use of Twinkle. Ral315 (talk) 18:43, 29 April 2008 (UTC)
- I wondered what the hell happened to my other tabs. Hopefully we can get this rectified soon. I added it back manually, but prefer to have as little in my monobook as possible. -- Kesh (talk) 15:27, 30 April 2008 (UTC)
- It has been restored as a gadget. DuncanHill (talk) 09:05, 1 May 2008 (UTC)
Make your own Gadget
Will we ever be able to make our own gadgets? Marshall T. Williams (talk) 22:52, 13 September 2008 (UTC)
Skin support
I think it would be a good idea to demand that any gadget passing the evaluation should support all skins installed in Wikipedia (including Nostalgia, which I use). NerdyNSK (talk) 10:20, 6 October 2008 (UTC)
Broken comments in CSS gadgets?
I noticed that the instructions on this page state that a header made of "//"-style comments should be added to both JS and CSS files. However, according to the CSS spec only "/* */"-style comments are valid. Should that be fixed? Anomie⚔ 14:49, 16 June 2009 (UTC)
- Which CSS scripts use
//
-style comments? The only one I found was MediaWiki:Gadget-Blackskin.css. You're right in that those style of comments do not work in CSS files. Gary King (talk) 15:31, 16 June 2009 (UTC)
Gadget-Blackskin
This gadget was added back in January 2008 by Prodego, without any discussion that I can see. Per its description, it provides "a black background with green text on the Monobook skin"; however, if we're going to start having CSS stylesheet gadgets, there are any number of other stylesheets I'd see made into gadgets long before this - including plenty of purely aesthetic ones (rounded corners, anyone?). Can anyone else fill in any of the history on just how this came to be a gadget, and does anyone else have an opinion on whether it should remain a gadget or be removed? 「ダイノガイ千?!」? · Talk⇒Dinoguy1000 09:45, 18 June 2009 (UTC)
- I remember that this was one of the reasons to set up the WP:Gadget page and to start discussing gadgets in a central place before putting them online. One user cared quite a lot of having this gadget installed, while I saw - and still see - it as a candidate to be removed. We still have the normal monobook.js way for the more exotic or crazy userscripts and stylings. It would immensely help if we had a mechanism to see how many active editors have actually checked a certain gadget. Cacycle (talk) 17:23, 18 June 2009 (UTC)
- It was specifically requested by a number of people, I personally don't use it. Prodego talk 17:33, 18 June 2009 (UTC)
- As of March 21, 2009, at least 2000 people were using it. That's more than several other gadgets. --Splarka (rant) 07:23, 19 June 2009 (UTC)
- As far as I can see it shows only the number of accounts that have it checked, not the number of active editors actually using it. It is the kind of simple description gadget that a new and inexperienced user would check just out of curiosity or to see how gadgets work. Cacycle (talk) 12:56, 19 June 2009 (UTC)
- As of March 21, 2009, at least 2000 people were using it. That's more than several other gadgets. --Splarka (rant) 07:23, 19 June 2009 (UTC)
- It was specifically requested by a number of people, I personally don't use it. Prodego talk 17:33, 18 June 2009 (UTC)
- I remember that this was one of the reasons to set up the WP:Gadget page and to start discussing gadgets in a central place before putting them online. One user cared quite a lot of having this gadget installed, while I saw - and still see - it as a candidate to be removed. We still have the normal monobook.js way for the more exotic or crazy userscripts and stylings. It would immensely help if we had a mechanism to see how many active editors have actually checked a certain gadget. Cacycle (talk) 17:23, 18 June 2009 (UTC)
If you want to do a rounded corners gadget, I think that User:Drilnoth/rounded.css is pretty comprehensive, but only for Mozilla browsers. –Drilnoth (T • C • L) 18:24, 20 June 2009 (UTC)
- I wasn't necessarily requesting one, but merely pointing out one that would be in far higher demand (IMHO, of course). 「ダイノガイ千?!」? · Talk⇒Dinoguy1000 19:04, 22 June 2009 (UTC)
Gadget usage statistics
It would help immensely if there was a gadget usage statistic implemented in MediaWiki. Knowing the usage patterns of gadgets would allow to identify rarely used and too exotic gadgets that would be better used as a traditional user script. This would help in maintaining the gadget selection list at a user friendly size and would also help to prioritize gadget development.
I have filed a Bugzilla bug report for this, please see bugzilla:19288. — Preceding unsigned comment added by Cacycle (talk • contribs) 21:43, 18 June 2009
- It might be possible to get this information filtered from the Toolserver similar to that watcher tool. — Dispenser 03:20, 27 October 2009 (UTC)
- This is now available at Wikipedia:Database_reports/User_preferences. Superm401 - Talk 05:03, 4 March 2012 (UTC)
Edit summary gadget
The darn thang didn't work. It did increase the number of characters I could type into the box, and as appeared in the edit summary preview, but when I saved the page, it cut off at exactly 200 chars as normal. [1] That behavior seems worse than useless! Is it possible I did something wrong? • Anakin (talk) 00:38, 27 October 2009 (UTC)
I tried again: [2]. Still caps at exactly 200. • Anakin 20:06, 26 November 2009 (UTC)
Usage-Stats
Hello folks,
I am here at the tech-meeting and a user asked me, if I could generate a gagdet-usage-statistic on the toolserver. Here is the usage of gadgets of all active (=make at least 1 edit in the last 30 days) users.
Have fun, de:User:DaB. 22:23, 15 April 2010 (UTC)
Numbers of install of the Gadget courtesy of the Toolserver administrators. I've added comparison to dewiki from a report done in March. — Dispenser 17:04, 11 September 2010 (UTC)
- Update: I've combined DaB.'s April numbers with the new September numbers. There is a considerable differences in rankings between active and all users. — Dispenser 19:49, 11 September 2010 (UTC)
- Wikipedia:Database reports/User preferences, updates weekly. It's possible to build an adoption graph by collating the revisions. — Dispenser 21:09, 6 June 2011 (UTC)
Discussion at Wikipedia talk:Spoiler may be of interest to gadgeteers
At the moment there is an RFC at the spoiler guideline talk page that may be of interest to scripters who write and maintain gadgets because it's a proposal to make a small change to the layout of the Vector skin, probably to insert a link to the site Disclaimers into the sidebar so that it will be more prominent--currently it's only linked from the page bottom.
I expect that this would be achieved by having Mediawiki:Vector.js inject the link into the appropriate place. This may (or may not) have implications for gadgets that make assumptions about the layout of the vector skin. --TS 13:49, 8 October 2010 (UTC)
Live UTC Clock Wrong
{{editprotected}}
It's 1 hour ahead of time. Could someone fix that? --Σ talkcontribs 02:55, 17 August 2011 (UTC)
Updated MediaWiki:Gadget-citations.js
I have updated MediaWiki:Gadget-citations.js so that now it uses protocol relative urls (ie. when logged in with https:// ) it calls toolserver with the same protocol, hence not logging out users who are using a secure login. It works for me, can others please double check. Thanks. — billinghurst sDrewth 07:02, 9 December 2011 (UTC)
Changes needed for definitions in 1.19
To prepare for 1.19, the MediaWiki:Gadgets-definition page should be updated with the page here: User:MarkAHershberger/1.19-gadget-definition. Without these changes, gadgets will stop working because of un-declared dependencies. See mw.util is undefined in MediaWiki:Common.js for more info. — Preceding unsigned comment added by MarkAHershberger (talk • contribs)
Clock gadget not appearing
Not sure why, but the appearance gadget that shows a UTC clock on the top right area, that allows you to click it to purge a page, is no longer working. I went ahead and disabled it and re-enabled it and it's still not showing up. VegaDark (talk) 21:03, 16 January 2012 (UTC)
MediaWiki:Gadget-dropdown-menus.js: update needed
This gadget should be updated, due to use of the following:
- Legacy globals (wgUserGroups, wgPageName, skin, wgTitle, wgScript, wgEnableAPI, ..)
- Deprecated modules (ajax: sajax_init_object, wikibits: addOnloadHook)
- check out JavaScript deprecation guide and User migration guide
Aside from that I'd recommend:
- Simplify the ajax calls by using
mw.util.wikiScript('api')
andjQuery.getJSON
(instead of wgScriptPath and sajax_init_object). - Pasting the code through http://www.jshint.com/ and perhaps apply some best practices (you can untick the ones you don't care about on the bottom of the page)
WhatLeavesHere : useful gadget, especially for admins and spam cleaning
m:User:Krinkle/Tools/WhatLeavesHere is proving useful to me when quickly looking at links on a page when managing spam, or just simply looking at what is linked off a page. Something worthwhile considering as a universal gadget here, or at least for people to consider adding into their common.js file. — billinghurst sDrewth 02:08, 24 January 2012 (UTC)
Gadget creators invited to Berlin hackathon 1-3 June 2012
At the upcoming Berlin hackathon in June, we'd especially like to have conversations with Gadgets developers. Experts will be available to discuss extending functionality with JavaScript, the future of ResourceLoader and Gadgets, the new Lua templating system, how to best use the web API for bots, and various upcoming features and changes. We'd love to have power users, Gadget creators, bot maintainers and writers, and template makers at this event so we can all learn from each other and chat about what needs doing.
Best wishes! Hope to see you there. - Sumana Harihareswara, Wikimedia Foundation's Volunteer Development Coordinator. Please reply on my talk page, here or at mediawiki.org. —Preceding undated comment added 16:25, 16 February 2012 (UTC).
- I'll add more information about this as soon as possible, but there will be travel sponsorships available. Sumana Harihareswara, Wikimedia Foundation Volunteer Development Coordinator 02:59, 12 March 2012 (UTC)
Teahouse gadget
Hey folks,
I've just added a super simple gadget for the Teahouse project's "ask a question" page. I originally had it set to appear by default, but I figured I'd better get a sanity check here first. The code is brought in by a very short initialisation script only on that particular page to save a bit of code bloat.
We're hoping to soft-launch the Teahouse project on Monday Pacific (I've been wrapped up in training and slow on getting this done). Please let me know before then if there's any problem in putting this in a gadget, or if I need to be doing it some other way.
Thanks a lot. — Andrew Garrett • talk 23:18, 24 February 2012 (UTC)
- A few people took a look at the code, and there weren't any objections, so I went ahead and did this. — Andrew Garrett • talk 02:25, 28 February 2012 (UTC)
- What does it do? Rich Farmbrough, 23:13, 13 September 2012 (UTC).
Have ProveIt use ResourceLoader?
Does anyone see any issue if I enable ResourceLoader for ProveIt? Initially, this would just be so MediaWiki:Gadget-ProveIt.js can be unminiifed, but ResourceLoader minifies it when serving. I do have a dependency on jQuery Tabs, but I'd like to keep using mw.loader.using so it also works in dev (when I'm testing in non-gadget mode). Superm401 - Talk 05:09, 4 March 2012 (UTC)
- Done I went ahead and did this, adding the dependency on tabs (as well as highlight). I did keep in the using. If you notice any issues, please post on User talk:ProveIt GT. Superm401 - Talk 07:22, 7 December 2012 (UTC)
NewDiff gadget updated
The NewDiff gadget has been updated and is now based on r133098, designed by Trevor Parscal, which is currently in trunk, with some minor adjustments. Comments welcome. — Edokter (talk) — 12:35, 10 March 2012 (UTC)
Question
Is there any way to disable a Gadget for only one user. I ask because this user is effectively banned from using HotCat, and I think he is violating this by bypassing the automatic saving of HotCat and modifying the edit summary. (I only know about it, because he forget to make this two times.) Armbrust, B.Ed. Let's talkabout my edits? 19:02, 17 March 2012 (UTC)
edit summary gadget
My sandbox gadget misdirects to incubator wiki when accessed via https
When I'm accessing en.wiki via https (secure.wikimedia.org) and click on the "My sandbox" link - it takes me to https://secure.wikimedia.org/wikipedia/incubator/wiki/W/index.php/Special:MyPage/sandbox - not quite sure how that can be fixed, but it probably should be. --Versageek 21:28, 19 March 2012 (UTC)
- Duplicate of thread raised three minutes earlier at MediaWiki talk:Gadget-mySandbox.js. Please see WP:MULTI. --Redrose64 (talk) 23:43, 19 March 2012 (UTC)
Gadget-dropdown-menus — watch/unwatch problem
A few months ago, the "watch page" / "unwatch page" function in Gadget-dropdown-menus.js started sending me to an annoying new page asking me to click on a "Yes" button to confirm my request to watch or unwatch a page. The default "watch" / "unwatch" button (displayed when the gadget is not being used) doesn't do this.
I did some poking around and believe the reason for this change in behaviour is that a new "token" parameter was added to the MediaWiki watch/unwatch API (see here). The default watch/unwatch button action includes this token parameter, but the watch/unwatch menu item in the dropdown-menus gadget does not. — Richwales 03:06, 25 June 2012 (UTC)
Teahouse Response gadget
Moved to Wikipedia:Gadget/proposals#Teahouse Response gadget. Equazcion (talk) 20:26, 10 Aug 2012 (UTC)
Deprecate textareasansserif?
I just noticed that for a long time now, MediaWiki has had a preference for "Edit area font style:" in the Editing tab, which includes an option for sans-serif, effectively making this gadget obsolete. I propose we immediately edit MediaWiki:Gadget-textareasansserif to state that this gadget is obsolete. To entirely remove the gadget, we have a few options:
- If the Foundation privacy policies permit generation of such a list, set a deadline for removal and notify all users using the gadget of the new preference.
- Adjust the gadget to display a notice informing users of the new preference, and set a deadline for removal.
- Just announce it somewhere (WP:VP? Watchlist notice?) with a deadline.
Thoughts? Anomie⚔ 03:23, 3 September 2012 (UTC)
- Personally, I'd go for #2 or #3, in that order. The code to display the message to users of the gadget would be something as simple as
mediaWiki.util.jsMessage('<p>You are currently using the "Make text fields use a sans-serif font" gadget. <b>This gadget will be turned off on $DATE!</b></p><p>For some time now, MediaWiki has included a preference to select the text area font in the <a href="//en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-editing" target="preferences">Editing tab</a>; to keep your sans-serif font, please activate this preference. To stop receiving this message, please turn off this gadget in your preferences.</p>','textareasansserif-deprecated');
- added to MediaWiki:Gadget-textareasansserif.js (and the MediaWiki:Gadgets-definition adjusted to load this,
textareasansserif[ResourceLoader|dependencies=mediawiki.util]|textareasansserif.css|textareasansserif.js
). Anomie⚔ 03:23, 3 September 2012 (UTC)
- I have no clue what all that JS means, but I would be happy to remove both this gadget and the one below it. We have too many gadgets (which makes it hard to see the preferences page), so getting rid of (almost) useless ones is good. David1217 What I've done 22:24, 12 September 2012 (UTC)
Support removal. There's no good reason for opposing the change now that the preference doesn't apply to just #wpTextbox1, and we can even automatically change users' preferences for them. PleaseStand (talk) 03:12, 27 September 2012 (UTC)
Put this in a page MediaWiki:Gadget-textareasansserif.js:
new mediaWiki.Api().post( {action: 'options', token: mediaWiki.user.tokens.get( 'editToken' ), change: 'editfont=sans-serif|gadget-textareasansserif'} );
Change the relevant line in MediaWiki:Gadgets-definition to:
textareasansserif[ResourceLoader|dependencies=mediawiki.api,mediawiki.user]|textareasansserif.js|textareasansserif.css
And update MediaWiki:Gadget-textareasansserif to:
To use a sans-serif font for editing pages, change the "Edit area font style" in the [[#mw-prefsection-editing|"Editing" section]].
- That is an even better idea. But it's technically not the right token, even though currently the tokens are the same. I've adjusted the code and implemented it. Anomie⚔ 14:22, 29 September 2012 (UTC)
Transition script broken
I think a recent security patch to MediaWiki core broke the API's ability to disable the gadget. Moreover, the number of accounts with the gadget enabled rose from 5187 (on November 22) to 5203 (on November 29). Leaving the broken script enabled can only cause an increasing amount of unnecessary server load and potential user confusion. As two months have passed, all active users should have been switched over. Is it time to remove the gadget now? PleaseStand (talk) 21:49, 2 December 2012 (UTC)
Does Gadget-NewDiff actually do anything anymore?
Now that the new diff colors have been in MediaWiki for some time now, does this gadget actually do anything useful? Or does it just set the diff colors to what they already are? Anomie⚔ 03:29, 3 September 2012 (UTC)
- It is basically obsolete, but... it does contain some adjustments to the site CSS (for which I have a bug open). — Edokter (talk) — 18:54, 12 September 2012 (UTC)
The change is part of 1.21wmf4. Is there any reason to keep this gadget now? PleaseStand (talk) 05:23, 27 November 2012 (UTC)
HotInterwiki
As you are aware that I am doing lots of my efforts on Urdu Wiki. I often work on Wikipedia to update Interwiki links and Categories link between the two Wikipedias i.e. Urdu & English Wikipedia. I am using "Hot Interwiki" link in Urdu wiki (find here) but couldn't succeed to find this link in English Wiki. Can you help me out to get this tool in English Wiki too so that I may enter Urdu interwiki link into English as I am usually make new categories on Urdu Wiki to categorize all article in a proper way. I only use English Wiki to enter Urdu interwiki and for this I've to spend lot of time to push the edit button on every single article on English Wiki to enter Urdu interwiki link.
I hope you will help me to get access to "Hot Interwiki" tool on English Wikipedia. Thanks --ساجد امجد ساجد (talk) 21:21, 28 October 2012 (UTC)
- A very similar thread already exists at Wikipedia:Gadget/proposals#HotInterwiki. --Redrose64 (talk) 22:05, 28 October 2012 (UTC)
Preference Help
I want helper about preference more specifically an editcount helper. Whom should I go? --Pratyya (Hello!) 15:06, 14 January 2013 (UTC)
Gadgets must be explained
Can we please add a requirement that each new gadget must be explained clearly in the preference option itself and must be linked to a detailed explanation and/or illustration of its functionality? (I would have said "should" on the second part, but almost every gadget does something that would not be easy to explain to a newbie WP user, so it really should be "must". How can a user decide whether they want to use a gadget [or not use it, if it's enabled by default] if they can't even understand what it does?) Most gadgets do satisfy both requirements already, but new ones continue to be added that don't satisfy either. If this idea is rejected as instruction creep, then can the people who are actively involved in this and other relevant pages just please "police" the addition of new preferences more carefully? Today I went to My Preferences after not checking them in a long time, and I found several new gadgets, one of which was checked by default but not described sufficiently well for even an experienced WP user like me to figure out what the heck it did (took 10 minutes of searching). This shouldn't be allowed to happen. - dcljr (talk) 14:07, 16 February 2013 (UTC)
"Edit" section inks besides section titles
Up to yesterday they were right-aligned. I seem to recall it was a Gadget doing that. Can't find it. Was a Gadget removed recently? :) ·Salvidrim!· ✉ 01:09, 7 May 2013 (UTC)
- Yes, it was removed. The software was updated to show the edit link on the left by default. — Edokter (talk) — 01:13, 7 May 2013 (UTC)
- Mk. If I preferred it right-aligned like I had it, any plans for a gadget? ;) :) ·Salvidrim!· ✉ 01:16, 7 May 2013 (UTC)
- It could be done as a gadget, but I didn't think it was necessary since all you need is one line adding to either Special:Mypage/common.css or Special:Mypage/skin.css See also WP:VPT/Section edit links are migrating westwards, WP:VPT#.5Bedit.5D moved etc. --Redrose64 (talk) 09:30, 7 May 2013 (UTC)
span.mw-editsection { float:right; }
- It could be done as a gadget, but I didn't think it was necessary since all you need is one line adding to either Special:Mypage/common.css or Special:Mypage/skin.css
- Mk. If I preferred it right-aligned like I had it, any plans for a gadget? ;) :) ·Salvidrim!· ✉ 01:16, 7 May 2013 (UTC)
Notification gadget causing JS error for anonymous users
@Edokter: The Notifications gadget is causing a JS error for logged out users. The reason is that it loads ext.echo.overlay.js, which wasn't designed to function for anonymous users. I can fix this in ext.echo.overlay.js, but won't be able to deploy the fix until next week. Kaldari (talk) 19:47, 8 May 2013 (UTC)
RfC: Are the Category:Wikipedians and its subcategories appropriate for Wikipedia
There is an ongoing RfC going on at Category talk:Wikipedians#RfC: Is this category and current subcategories appropriate for Wikipedia that gadget creators and users may be interested it. Technical 13 (talk) 12:19, 29 August 2013 (UTC)
Time of edit is missing in user contributions list when using Wildcard/IP-Range in german section of the Wikipedia
As known user contributions from an IP or a user can be listed. But additionally it is possible to list an IP-Range (activate CIDR-Settings). When listing a single IP or user, all the list entries have time of edit; but when listing an IP range, time of each edit is missing when expanding the entries. I was told that the script has to be adapted. Could please anyone help in adatping that script so that also time of edit will be listed? Please have a look to the german WP where I was describing the problem. I was told that this script (in the german WP) is affected and has to be adapted. Please have a look at this description of the problem; be aware that it is written in german language. Thank you. --ProloSozz (talk) 10:14, 10 January 2014 (UTC)
Clarify
"Collections of scripts should be applied as own entities."
What is an "own entity" when it is at home? (Looks like some kind of Google-translate from German.) All the best: Rich Farmbrough, 14:13, 7 November 2014 (UTC).
- @Rich Farmbrough: This diff seems to indicate that it means multiple scripts shouldn't be bundled into the same gadget unnecessarily. Jackmcbarn (talk) 17:16, 25 November 2014 (UTC)
- @Jackmcbarn: Thanks, kinda what I thought, but I was wary that "own entity" might be "eigen-foo" and have a technical meaning. I have changed the itm to read "# Collections of scripts should be split if they have disparate functions." which I hope is clearer. If not feel free to improve, as always. All the best: Rich Farmbrough, 17:47, 25 November 2014 (UTC).
- @Jackmcbarn: Thanks, kinda what I thought, but I was wary that "own entity" might be "eigen-foo" and have a technical meaning. I have changed the itm to read "# Collections of scripts should be split if they have disparate functions." which I hope is clearer. If not feel free to improve, as always. All the best: Rich Farmbrough, 17:47, 25 November 2014 (UTC).