MediaWiki talk:Gadgets-definition: Difference between revisions
(229 intermediate revisions by 40 users not shown) | |||
Line 1: | Line 1: | ||
{{User:MiszaBot/config |
|||
| algo = old(30d) |
|||
| archive = MediaWiki talk:Gadgets-definition/Archive %(counter)d |
|||
| counter = 2 |
|||
| maxarchivesize = 150K |
|||
| archiveheader = {{Automatic archive navigator}} |
|||
| minthreadstoarchive = 1 |
|||
| minthreadsleft = 4 |
|||
}} |
|||
{{skip to talk}} |
{{skip to talk}} |
||
{{interface explanation|{{SUBJECTPAGENAME}} provides the content of the [[Special:Preferences#mw-prefsection-gadgets|Gadgets tab]] of [[Special:Preferences]] (also visible at [[Special:Gadgets]]).}} |
{{interface explanation|{{SUBJECTPAGENAME}} provides the content of the [[Special:Preferences#mw-prefsection-gadgets|Gadgets tab]] of [[Special:Preferences]] (also visible at [[Special:Gadgets]]).}} |
||
{{ilms}} |
{{ilms}} |
||
{{info|<nowiki/> |
|||
{{info| |
|||
'''How the links work''' |
|||
Example: |
|||
<pre>* exlinks[ResourceLoader|dependencies=mediawiki.util]|exlinks.js</pre> |
|||
Loads the DEFINITION/identifier in preferences from [[MediaWiki:Gadget-exlinks]] and then loads the SCRIPT from [[MediaWiki:Gadget-exlinks.js]] once the [[mw:ResourceLoader/Default modules#mediawiki.util|module "mediawiki.util"]] is available. |
|||
* Full Documentation at [[mw:Extension:Gadgets]] |
* Full Documentation at [[mw:Extension:Gadgets]] |
||
* Helpful multi-page edit links in [[Special:Gadgets]] |
* Helpful multi-page edit links in [[Special:Gadgets]] |
||
* [[Wikipedia:Database reports/User preferences#Gadgets]] |
* [[Wikipedia:Database reports/User preferences#Gadgets]] |
||
* For information about gadgets, see [[Wikipedia:Gadget]]; for the addition of user scripts as gadgets, see [[Wikipedia:Gadget proposals]]. |
|||
'''Gadgets-definition basic example''' |
|||
<pre>* exlinks [ResourceLoader |dependencies=mediawiki.util] |exlinks.js</pre> |
|||
Loads the DEFINITION/identifier in preferences from [[MediaWiki:Gadget-exlinks]] and then loads the SCRIPT from [[MediaWiki:Gadget-exlinks.js]] once the [[mw:ResourceLoader/Default modules#mediawiki.util|module "mediawiki.util"]] is available. |
|||
{{Request edit button}} |
|||
}} |
}} |
||
{{Archives|bot=lowercase sigmabot III}} |
|||
== Edit request 17 June 2024 == |
|||
: ''For information about gadgets, see [[Wikipedia:Gadget]]; for the addition of user scripts as gadgets, see [[Wikipedia:Gadget proposals]].'' |
|||
==Customization== |
|||
I noticed [[WP:POP|popups]] were added as a test. If scripts like this are added, how does somebody customize the script's configuration? For example, I've configured popups in my monobook to add the disambiguation and admin features. Would the scripts added here be customizable somehow or are you stuck with the basic configuration if you enable it through preferences? - [[User:AuburnPilot|<font color="#0000cd">auburn</font><font color="#EF6521">pilot</font>]] [[User_talk:AuburnPilot|<small>talk</small>]] 02:45, 4 December 2007 (UTC) |
|||
:It is possible to write the script in such a way that it's customisable via monobook.js. I'm not sure if the version of popups added to the gadgets list is customisable like this or not. You might want to keep your popups configuration in your monobook.js, but comment out the inclusion of popups itself, installing through preferences instead, and seeing if it worked; it would be useful to know if popups-via-preferences is customisable in its current form or whether it needs changing. --[[User:ais523|ais523]] 08:36, 4 December 2007 ([[User:ais523|U]][[User talk:ais523|T]][[Special:Contributions/Ais523|C]]) |
|||
::I removed popups from my monobook.js, leaving the customizations, and enabled them via preferences. I was still able to use the disambiguation and admin settings, so I assume you can in fact customize these gadgets through the monobook.js. Thanks for the idea, Ais523; worked well. - [[User:AuburnPilot|<font color="#0000cd">auburn</font><font color="#EF6521">pilot</font>]] [[User_talk:AuburnPilot|<small>talk</small>]] 13:03, 4 December 2007 (UTC) |
|||
:::Yes, that should work. But it makes it more difficult to change the settings. <span>[[User:Prodego|<font color="darkgreen">''Prodego''</font>]] <sup>[[User talk:Prodego|<font color="darkgreen">talk</font>]]</sup></span> 20:55, 4 December 2007 (UTC) |
|||
::::The documentation for this doesn't seem to match our implementation, questions: |
|||
#Should there be a matching [[MediaWiki:Navigation_popups]] page for this? |
|||
#Where is the control that is making it link to [[Wikipedia:Tools/Navigation popups]] |
|||
::::— [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 04:46, 6 December 2007 (UTC) |
|||
:::::Semi answered myself, see [[MediaWiki:Gadget-Navigation popups]]. — [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 04:50, 6 December 2007 (UTC) |
|||
:Got the rest, just really not used to the prefix naming scheme. — [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 04:53, 6 December 2007 (UTC) |
|||
:<small>(restore question self removed as the answer edit conflicted my removal)</small>Standards questions, should we pipe Gadgets in to user: space, or bring them in to MediaWiki somewhere? — [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 04:46, 6 December 2007 (UTC) |
|||
::My advice would be to establish a "stable" version in MediaWikispace and use that one as the gadget. The one in userspace should be for development purposes only, and the MediaWiki version should only be updated once changes to the userspace version have been tested and validated. As far as security goes, however, there's likely not much harm in leaving them in (an administrator's) userspace; it's more an issue of semantics. [[User:AmiDaniel|AmiDaniel]] ([[User talk:AmiDaniel|talk]]) 04:54, 6 December 2007 (UTC) |
|||
:::Does anyone have the expertise to move the css portion of popups over? <span>[[User:Prodego|<font color="darkgreen">''Prodego''</font>]] <sup>[[User talk:Prodego|<font color="darkgreen">talk</font>]]</sup></span> 12:07, 6 December 2007 (UTC) |
|||
::::Looking on [[Wikipedia:Tools/Navigation_popups#Changing_the_appearance_of_your_popups]] .css is not required, but is used to set per-user options to change the appearance, am I missing something else? — [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 13:04, 6 December 2007 (UTC) |
|||
:::::Look at the very top of popups.js. It calls a css page there, if I remember correctly. <span>[[User:Prodego|<font color="darkgreen">''Prodego''</font>]] <sup>[[User talk:Prodego|<font color="darkgreen">talk</font>]]</sup></span> 13:06, 6 December 2007 (UTC) |
|||
::::::Yes, it does call a CSS page there, [[User:Lupin/navpop.css]]. I will go make a request for [[MediaWiki:Gadget-navpop.css]] to be created (and then the needed changes for the other relevant pages). [[User:FunPika|<span style="color:blue"><b>Fun</b></span>]][[User_Talk:FunPika|<span style="color:green"><b>Pika</b></span>]] 02:20, 9 December 2007 (UTC) |
|||
== To Do's == |
|||
#Get some better definition and description pages for the headers (could very well be sections using [[Page#Section]] markup. |
|||
#Create [[Help:Gadgets]] or [[Wikipedia Gadgets]] for general information and documentation |
|||
#Have a centralized location for requesting additions (here?) — [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 13:06, 6 December 2007 (UTC) |
|||
:I think it should be [[Wikipedia:Gadgets]] since it's project-specific, and I also suggest that we organize gadjets descriptions, for example as Wikipedia:Gadgets subpages. At least this should be better than current e.g. [[Wikipedia:Tools/Disable access keys]]. As for #3, maybe «Wikipedia:Gadgets proposals», or another subpage «Wikipedia:Gadgets/Proposals» ? I could suggest some gadgets but I'm still waiting for a stable "Proposals" page ∴ [[User:Alex Smotrov|AlexSm]] 18:22, 14 December 2007 (UTC) |
|||
::Ok, if nobody minds I think I'll create [[WP:Gadgets Proposals]] ∴ [[User:Alex Smotrov|AlexSm]] |
|||
::: I have just created [[Wikipedia:Gadgets]] and [[Wikipedia:Gadget proposals]]. [[User:Cacycle|Сасусlе]] 03:40, 17 January 2008 (UTC) |
|||
::::Thank you ∴ [[User:Alex Smotrov|AlexSm]] 22:11, 17 January 2008 (UTC) |
|||
== Admin Gadgets == |
|||
*Thread moved to [[Wikipedia_talk:WikiProject_User_scripts/Gadgets#Admin_Gadgets]] to centralize the discussion. — [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 04:51, 7 December 2007 (UTC) |
|||
==Normal Gadgets to consider == |
|||
These should all be multibrowser compatible (Opera, FF, Safari and IE). I have used all of them at times, and none of them are admin scripts. |
|||
* a ported HotCat.js from Commons |
|||
* [[Wikipedia:WikiProject_User_scripts/Scripts/Formatter]] the format tab |
|||
* [[User:Rparle/monobook.js/purgebutton]] a purge tab |
|||
* [[User:Alex_Smotrov/qpreview.js]] Quick preview |
|||
* [[User:Cacycle/wikEdDiff.js]] wikiEdDiff (an additional diff mode that sometimes makes it easier to spot small diffs in my experience |
|||
Also, I was wondering. is it possible to set the default value of these gadgets ? I imagine some people might like to deactivate wikiminiatlas for instance ? just an idea. --[[User:TheDJ|TheDJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 19:40, 7 December 2007 (UTC) |
|||
:I'm not familiar with HotCat, someone needs to port it to en.wp first. I'm against other scripts for various reasons, and I suggest we develop some kind of procedure and then discuss the scripts one by one, not a bunch at the same time. Note that similar discussions also takes place at [[Wikipedia_talk:WikiProject_User_scripts/Gadgets]] ∴ [[User:Alex Smotrov|AlexSm]] 20:33, 7 December 2007 (UTC) |
|||
::HotCat was ported to fr: so should be able to work here after translation. — [[User:Xaosflux|<b><font color="#FF9933" face="monotype">xaosflux</font></b>]] <sup>[[User_talk:Xaosflux|<font color="#00FF00">Talk</font>]]</sup> 00:48, 8 December 2007 (UTC) |
|||
==Suggested addition: external links== |
|||
Opening external links in a new tab/window: |
|||
<source lang="javascript">addOnloadHook(function() { |
|||
var alinks = document.getElementById('content').getElementsByTagName("a"); |
|||
var tablink, sitename; |
|||
for (var i = 0, leng = alinks.length; i < leng; i++) { |
|||
tablink = alinks[i]; |
|||
if (tablink.className.indexOf("external") != -1 && tablink.href.indexOf(wgServer) != 0) |
|||
tablink.target = "_blank"; |
|||
} |
|||
});</source> |
|||
This has been proposed twice: [http://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Village_pump_%28proposals%29&oldid=176606785#External_links_open_in_new_window 1], [http://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Village_pump_%28proposals%29&oldid=146598443#External_Links 2]. If anyone wants to improve the script for performance/style/general usefulness, please do so. [[User:Gracenotes|<span style="color:#960;">Grace</span><span style="color:#000;">notes</span>]]<sup>[[User talk:Gracenotes|<span style="color:#960;">T</span>]]</sup> <span title="MediaWiki talk:Gadgets-definition">§</span> 21:03, 8 December 2007 (UTC) |
|||
:Added {{tl|editprotected}} – any objections to including this? [[User:Gracenotes|<span style="color:#960;">Grace</span><span style="color:#000;">notes</span>]]<sup>[[User talk:Gracenotes|<span style="color:#960;">T</span>]]</sup> <span title="MediaWiki talk:Gadgets-definition">§</span> 21:41, 9 December 2007 (UTC) |
|||
::Is it firefox only, and, if not, what happens in a browser that does not support tabbed browsing? <span>[[User:Prodego|<font color="darkgreen">''Prodego''</font>]] <sup>[[User talk:Prodego|<font color="darkgreen">talk</font>]]</sup></span> 21:47, 9 December 2007 (UTC) |
|||
:::It works in Firefox, IE, and Opera (I don't have Safari). If a browser does not support tabbed browsing, the link will open in a new window. If the browser ''does'' support tabs, the link will open either in a new window or a new tab, depending on the user's browser preferences. [[User:Gracenotes|<span style="color:#960;">Grace</span><span style="color:#000;">notes</span>]]<sup>[[User talk:Gracenotes|<span style="color:#960;">T</span>]]</sup> <span title="MediaWiki talk:Gadgets-definition">§</span> 22:38, 9 December 2007 (UTC) |
|||
I feel like only very few people would use this script. You could count my opinion as weak oppose, because at some point the list of gadgets is going to be way too long. As for suggestions, you could use <code>document.getElementById('content').getElementsByTagName('a')</code> to exclude all the portlet links and speed the script up a little ∴ [[User:Alex Smotrov|AlexSm]] 00:28, 10 December 2007 (UTC) |
|||
:Well, I'll let you decide that, we can always remove it. Done. <span>[[User:Prodego|<font color="darkgreen">''Prodego''</font>]] <sup>[[User talk:Prodego|<font color="darkgreen">talk</font>]]</sup></span> 00:30, 10 December 2007 (UTC) |
|||
::This is almost a perennial proposal, so having it as a preference makes sense. A long 'Gadgets' list is not a bad thing, in my opinion. --[[User:ais523|ais523]] 09:30, 10 December 2007 ([[User:ais523|U]][[User talk:ais523|T]][[Special:Contributions/Ais523|C]]) |
|||
:::Agreed about having a long list of Gadgets; while I don't want to have five hundred or so to sort through, having a wide variety wouldn't be bad at all. [[User:EVula|EVula]] <span style="color: #999;">// [[User talk:EVula|talk]] // [[User:EVula/admin|<span style="color: #366;">☯</span>]] //</span> 09:43, 10 December 2007 (UTC) |
|||
:Well, we do need to get to that point, no? I thought that the option being proposed on two different instances and supported by several people would be merit enough to include it. I only proposed it here because someone prompted me to. [[User:Gracenotes|<span style="color:#960;">Grace</span><span style="color:#000;">notes</span>]]<sup>[[User talk:Gracenotes|<span style="color:#960;">T</span>]]</sup> <span title="MediaWiki talk:Gadgets-definition">§</span> 00:46, 10 December 2007 (UTC) |
|||
::Under Safari (my browser, which supports tabbed browsing, and on Mac OS X), enabling this gadget opens external links in a new window. I figure that that is useful information, as it was the only one to be tested. [[User:Nihiltres|<font color="#275CA9">Nihiltres</font>]]<sup>'''{'''<span class="plainlinks">[[User talk:Nihiltres|<font color="#000">t</font>]].[http://en.wikipedia.org/wiki/Special:Log?user=Nihiltres <font color="#000">l</font>]</span>'''}'''</sup> 03:28, 10 December 2007 (UTC) |
|||
:::It opens in a new window under Firefox 2 (running on Ubuntu Linux). Firefox's settings can be changed so that it opens in a new tab, though, because there is a preference on Firefox to override 'new window' with 'new tab' everywhere. --[[User:ais523|ais523]] 12:55, 14 December 2007 ([[User:ais523|U]][[User talk:ais523|T]][[Special:Contributions/Ais523|C]]) |
|||
==Change to popups line== |
|||
{{[[Template:editprotected|editprotected]]}}<br /> |
|||
Please change <nowiki>* Navigation_popups|popups.js</nowiki> to <nowiki>* Navigation_popups|popups.js|navpop.css</nowiki>. [[User:FunPika|<span style="color:blue"><b>Fun</b></span>]][[User_Talk:FunPika|<span style="color:green"><b>Pika</b></span>]] 03:17, 9 December 2007 (UTC) |
|||
:{{tick|18}} '''Done''' - [[User:Nihiltres|<font color="#275CA9">Nihiltres</font>]]<sup>'''{'''<span class="plainlinks">[[User talk:Nihiltres|<font color="#000">t</font>]].[http://en.wikipedia.org/wiki/Special:Log?user=Nihiltres <font color="#000">l</font>]</span>'''}'''</sup> 03:41, 9 December 2007 (UTC) |
|||
== Browser specific? == |
|||
How do we handle browser specific tools? My tools would be very useful here, but I have no desire to waste time on making them IE compatible, especially since we don't use any real cross-browser libraries. [[User talk:Zocky|Zocky]] | [[User:Zocky/Picture Popups|picture popups]] 13:09, 12 December 2007 (UTC) |
|||
:Which scripts do you think would be useful? I wouldn't mind making them IE compatable, if such is possible. [[User:Gracenotes|<span style="color:#960;">Grace</span><span style="color:#000;">notes</span>]]<sup>[[User talk:Gracenotes|<span style="color:#960;">T</span>]]</sup> <span title="MediaWiki talk:Gadgets-definition">§</span> 16:00, 12 December 2007 (UTC) |
|||
::The 4 that are listed at the top of my userpage. [[User talk:Zocky|Zocky]] | [[User:Zocky/Picture Popups|picture popups]] 17:57, 12 December 2007 (UTC) |
|||
== cookie-based Preferences? == |
|||
Per discussion on '''#mediawiki-scripts'''@freenode, I've been pondering a cookie-based preference system that could work with [[mw:Extension:Gadgets|gadgets]], and in fact all user scripts. Of course, some people have cookies disabled or use multiple browsers or machines, so a good fallback would be some sort of global variables in their user/skin.js. |
|||
So, I've written up a mostly-working proof of concept of both of these combined, which may prove to be useful after some heavy testing/cleanup. See [[Wikipedia:WikiProject User scripts/preferences]] and the associated talk page for details. --[[User:Splarka|Splarka]] ([[User_talk:Splarka|rant]]) 04:59, 29 December 2007 (UTC) |
|||
== UTCLiveClock == |
|||
Can we please have gadgets that work for everyone, and not just for users who happen to have QueryString already installed in their monobook.js? ∴ [[User:Alex Smotrov|AlexSm]] 00:06, 12 January 2008 (UTC) |
|||
:Oh, missed that, forgot I had that changed a while back. <sub>→[[User:AzaToth|<span style="color:#773">Aza</span>]][[User_talk:AzaToth|<span style="color:#359">Toth</span>]]</sub> 00:14, 12 January 2008 (UTC) |
|||
{{resolved}} <sub>→[[User:AzaToth|<span style="color:#773">Aza</span>]][[User_talk:AzaToth|<span style="color:#359">Toth</span>]]</sub> 00:17, 12 January 2008 (UTC) |
|||
== Special:Log/rights == |
|||
The [[Special:Log/rights|rights log]] is pretty spammy now due to rollback. Per request, I've created a pretty useable interactive filter script for the user rights log at [[User:Splarka/lifilter.js]] ('''Note: Now expanded to work in all <s>logs</s> li-lists'''). The features include: |
|||
* Creates the button to generate the form on Special:Log/rights or type=rights (the form can also be auto-generated on page load via '''<tt>var AutoLoadLogsFilter=true;</tt>''' in your user scripts). |
|||
* Choose to match only (for log=rights only): |
|||
** Log entries that added this right, ''eg "sysop" in "(none) to sysop"'' |
|||
** Log entries that removed this right, ''eg "rollbacker" in "rollbacker to (none)"'' |
|||
** Log entries that added '''or''' removed this right |
|||
** Log entries that mention this right, ''eg "sysop" in "sysop, rollbacker to sysop"'' |
|||
* Regex string search for the match chosen above, eg "sysop" or "(sysop|checkuser)". In the rights log, the string regexly searched is a space-delimited list of the rights (not comma separated). In all other logs, it will search the entire string's plain text representation (minus XML markup, but leaving in invisible unicode). |
|||
* [hilight] will hilight the log entries that match the above critera. |
|||
* [filter] will hide the log entries that ''do not'' match the above critera. |
|||
* Invert will reverse the match behavior of [filter] and [hilight] |
|||
So for example, if you do not care about "rollbacker" changes, you can choose "<tt>Added or Removed</tt>", put in "<tt>rollbacker</tt>", select "<tt>[x] invert</tt>", and click "<tt>[filter]</tt>". It will then hide any entries where the "rollbacker" right was added or removed (but will show lines where it was not changed, eg '''"rollbacker to rollbacker, sysop"'''). |
|||
Can I get some tests in IE6/7 and Opera, and if it behaves, can it be added to the available gadgets? Streamlining/fixes/comments cheerfully tolerated (heh heh). --[[User:Splarka|Splarka]] ([[User_talk:Splarka|rant]]) 01:33, 12 January 2008 (UTC) |
|||
:Opera 9.2 is fine, I'll be able to check it in IE6 when you remove semicolon from <code>style.display = 'none;'</code>. Also I think the script could apply regex filter to other types of log as well ∴ [[User:Alex Smotrov|AlexSm]] 02:42, 12 January 2008 (UTC) |
|||
::Damn IE. Done. And yes, it probably could be adapted to a general log filter, but right now it is somewhat custom-made for user rights (in english) due to the sloppy way in which the log displays them (that is, it specifically only searches for the rights). Also: The API could possibly be utilized to display them much cleaner. --[[User:Splarka|Splarka]] ([[User_talk:Splarka|rant]]) 02:52, 12 January 2008 (UTC) |
|||
:::Okay, expanded it for all logs, please test the new version. Note that if you are not on Log/rights, you'll be searching the entire line as if it were a plaintext string (no XML markup) and there is no "added/removed" as that only pertains to rights. --[[User:Splarka|Splarka]] ([[User_talk:Splarka|rant]]) 04:51, 12 January 2008 (UTC) |
|||
== New gadget pages == |
|||
As suggested above, I have created [[Wikipedia:Gadget]] for general informations about gadgets and [[Wikipedia:Gadget proposals]] for discussing the addition of user scripts as gadgets. [[User:Cacycle|Сасусlе]] 04:03, 17 January 2008 (UTC) |
|||
== Reworking == |
|||
Would there by any opposition to my reorganizing this page and adding a few more section headers? It's getting harder and harder to find individual gadgets because of how many there are. –[[User:Drilnoth|Drilnoth]] ([[User talk:Drilnoth|T]] • [[Special:Contributions/Drilnoth|C]] • [[Special:Log/Drilnoth|L]]) 02:58, 2 July 2009 (UTC) |
|||
:As long as the new organization makes sense, go ahead; it needs it. :) <nowiki>{</nowiki>{[[User:Nihiltres|<span style="color:#233D7A;">Nihiltres</span>]]|[[User talk:Nihiltres|talk]]|[[Special:Contributions/Nihiltres|edits]]}<nowiki>}</nowiki> 14:40, 2 July 2009 (UTC) |
|||
: Why don't you experiment on a subpage or in your user space, that way the interface would not change too much and irritate users until we have an good final solution. I have noticed this too and had thought of adding the bold gadget name (link) after the checkbox and before the explanation. For the cosmetic gadgets we could come up with a concise explanatory name - just an idea... [[User:Cacycle|Cacycle]] ([[User talk:Cacycle|talk]]) 18:39, 2 July 2009 (UTC) |
|||
::Sure; I'll work something up in a sandbox soon and let you know when I think it's ready. –[[User:Drilnoth|Drilnoth]] ([[User talk:Drilnoth|T]] • [[Special:Contributions/Drilnoth|C]] • [[Special:Log/Drilnoth|L]]) 18:50, 2 July 2009 (UTC) |
|||
== Gadgets dont work on new MediaWiki software == |
|||
Since the new Wikimedia Software came online on Tuesday, my GoogleTrans gadget does not load anymore |
|||
The NavPopups gadget does not load either. |
|||
There is a help file on how to load 'Extensions'. Should we follow this? It requires that a PHP file be made. |
|||
Would this PHP file be gadgetname.php? |
|||
Would'nt administrators need to make this file since it would have the same name as the gadget? |
|||
Has anybody else noticed what I have this morning? |
|||
In the description file for the gadgets all the gadgets now link to Gadget-Gadget file, which doesn't exist |
|||
[[User:Endo999|Endo999]] 14:16, 8 February 2011 (UTC) |
|||
:Back to normal for me now. ---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]<span style="color:darkblue"> '''''</span><sup>[[User talk:Gadget850|''talk'']]</sup> 14:42, 8 February 2011 (UTC) |
|||
::For 10 Min for me. [[User:JackPotte|JackPotte]] ([[User talk:JackPotte|talk]]) 19:46, 8 February 2011 (UTC) |
|||
:::Because of a bug during the first attempt to deployement interface messages were failing a bit (gadgets are technically also interface messages), during the later deployement this was fixed [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 11:04, 8 March 2011 (UTC) |
|||
== ResourceLoader == |
|||
Gadgets are not loaded through ResourceLoader by default, instead we can opt-in on a per-gadget base. |
|||
Although in most cases opting in it should only do good things (saving requests by combining them in 1 request, making it load less and faster (minified() and cache more (served from bits.wikimedia.irg), some edgecases can break. |
|||
For that reason I've added a duplicate entry for Navigation-popups (one of the most popular gadgets) and opted it in for ResourceLoader to see how it goes. |
|||
If no bugs are found we could opt the normal entry and remove this one. I suggest we follow this procedure without rush and only one or few gadgets at a time (there's no deadline set). [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 11:04, 8 March 2011 (UTC) |
|||
: Are you planning to combine the preference settings of all users once we're satisfied, or will all users of the RL version have to switch back manually?.<br>Cheers, [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 11:13, 8 March 2011 (UTC) |
|||
:: That will have to happen manually. So I'd say switch to the new one now, and either wait untill you see no popups and switch your preference back then. Or test it for a few hours and switch back so you won't forget. Either way, they won't be merged. [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 20:56, 9 March 2011 (UTC) |
|||
I'm completely confused. How does one make a gadget to be loaded through ResourceLoader? (so I can start making those improvements on other wiki). |
|||
I only see you duplicated a line on the deifnitions page, but the exact same sourcefiles (popups.js and navpop.css) are being loaded. [[User:Magister Mathematicae|Magister Mathematicae]] ([[User talk:Magister Mathematicae|talk]]) 07:31, 12 March 2011 (UTC) |
|||
: Indeed, that's what I was thinking too when I saw it. I just assumed that there was something going on that simply was not meant for mere mortals like me to understand. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 07:41, 12 March 2011 (UTC) |
|||
: I'm assuming the maginc is in the <tt>[ResourceLoader]</tt> tag in the message. [[User talk:Amalthea|<span style="font-variant:small-caps;color:#832">Amalthea</span>]] 08:33, 12 March 2011 (UTC) |
|||
: Just adding <tt>[ResourceLoader]</tt> does not change the "name" of the gadget in ''user preferences in the database'' so the gadget stays checked if it was checked. I mean that's the only logical way to implement such a switch anyway. — [[user:Alex Smotrov|AlexSm]] 14:53, 12 March 2011 (UTC) |
|||
::[[mw:ResourceLoader/Migration_guide_(users)#Keep_gadgets_central]] and surrounding pages [[user:billinghurst|billinghurst]] ''<span style="font-size:smaller">[[user talk:billinghurst|sDrewth]]</span>'' 23:32, 12 March 2011 (UTC) |
|||
:::With regard to Popups, I have implemented at Commons and Wikisource. To note that I couldn't get the navpop.css file to import by various means, so in the end, I just put in local copies. The popups component worked fine once Krinkle helped me with the syntax. [[user:billinghurst|billinghurst]] ''<span style="font-size:smaller">[[user talk:billinghurst|sDrewth]]</span>'' 23:35, 12 March 2011 (UTC) |
|||
:@Magister Mathematicae: ResourceLoader is a way to load modules. The modules themselfs aren't any different. So it uses the same sources files (no need to duplicate that), but loaded in a different way. The difference between the two lines is two fold. |
|||
:* A) It has a slightly different name ("NavigationpopupsRL" instead of "Navigation_popups"), this is to prevent collisions with existing preferences, it has to be a different name |
|||
:* B) It has the [ResourceLoader] which isn't part of the name but a magic word to trigger the resource loader (which will minify, optimize and combine all resources into 1 single request) |
|||
:@AlexSm: Indeed, the magic word is not part of the name. So once a gadget is known to not break when loading through ResourceLoader (via a temporary copy), the magic word can be added to existing ones and everybody using that gadget will be switched because it didn't change the name thus uses the same preference. That's the whole idea :) |
|||
: [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 11:27, 3 April 2011 (UTC) |
|||
::So, what am I doing wrong? I uncheck the regular Popups and check the RL version, only to find out Popups is defunct. Do I need to check ''both'' checkmarks in my gadgets? <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 11:37, 3 April 2011 (UTC) |
|||
::In fact, in Chrome, ''all'' javascript is dead when the RL version of Popups is enabled. <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 15:12, 3 April 2011 (UTC) |
|||
== Gadget tab structure == |
|||
I'm looking at [[Special:Preferences#preftab-9]] through the eyes of a newcomer, and it seems awfully confusing. Why is there both "editing gadgets" and "user interface - editing gadgets"? And gadgets that are simple enhancements (easy to understand and use, maybe zero-configuration) like the UTC clock are mixed in with advanced stuff (CIDR? Even I don't know what that means) and useful-but-some-learning curve (like Twinkle). I get the impression changing the structure isn't straightforward, but I'm rather tempted to suggest starting again and designing a new structure from scratch. [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 18:51, 6 June 2011 (UTC) |
|||
: Yeah the whole thing needs a makeover. The problem is that some admins just add their favorite scripts to the list and it eventually gets bloated, especially with scripts that are used by less than a few dozen people. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 19:07, 6 June 2011 (UTC) |
|||
::I guessed that. The black/green screen thing seems a bit out there... How hard is it to change the structure? [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 19:13, 6 June 2011 (UTC) |
|||
::: Not hard at all. It's all on this page. Of course, we'd need a discussion on the structure before proceeding, but I am definitely in favor of one. On a related note, I've written a few dozen scripts but even I know that only a handful are useful to a large audience. Many of the scripts on this page are so specialized that they inherently only interest a small number of people. Script packages like Twinkle, however, are useful to such a broad audience that they belong on this page. Also, here's a [[Wikipedia_talk:Gadget#Usage-Stats|list of users for each gadget]], it's about a year old. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 19:21, 6 June 2011 (UTC) |
|||
::::OK. What about having a separate "Advanced Gadgets" tab? That would make it easier to really clear some of the more obscure/confusing stuff out of the way. [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 19:31, 6 June 2011 (UTC) |
|||
::::: That's a good start. I'd say more than half would belong there; essentially, anything that mentions technical terms such as "regex" (regular expressions), "CIDR" (Classless Inter-Domain Routing), etc. would belong. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 19:38, 6 June 2011 (UTC) |
|||
::::: Also, as I mentioned on [[WP:VPP]], a few scripts could be merged into one. The only problem is that each script has a different author; but if we were to create something like [[MediaWiki:Gadget-contributions.js]] which all admins are allowed to edit, then we could import related scripts together and they would then come in a package, therefore no longer requiring that the user install each script separately and instead allowing them to install several related scripts at once. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 19:47, 6 June 2011 (UTC) |
|||
'''Comment''' I'd be loathe to ''remove'' gadgets as it is easier to access them here than the other way. (There are many interesting scripts that users don't find out about as they are hard to find.) However, I do appreciate the concerns raised over the issue of simplicity, and would support a reorganization of the page to that effect. I'm not sure how easy it is to add a tab for "advanced gadgets" (would that require coding from the devs?) but at the very least we could move "advanced" gadgets to the bottom under their own heading. --'''[[User:Ckatz|Ckatz]]'''''<small><sup>[[User_talk:Ckatz|<font color="green">chat</font>]]</sup><sub>[[Special:Contributions/Ckatz|<font color="red">spy</font>]]</sub></small>'' 20:40, 6 June 2011 (UTC) |
|||
:I'm thinking if we had an Advanced Gadgets tab we could ''add'' quite a few useful (perhaps underused) scripts, since that tab could be quite a bit more complex. [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 20:46, 6 June 2011 (UTC) |
|||
:Incidentally, on the subject of adding tabs - I wonder if the Twinkle Preferences panel could be an additional tab for those users who have Twinkle installed? [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 20:48, 6 June 2011 (UTC) |
|||
:: You want to add another tab to Preferences? I don't think we can do that. But, it's easy to add new sections to the Gadgets tab; you just edit this page. Yes, there are a lot of scripts that people will never discover because they aren't listed. The more scripts you have listed, though, the fewer get installed because people don't want to sift through so many scripts, especially when many of the descriptions are hard to decipher. That's why a year ago, I started working on [[Wikipedia:Script Installer]], which lets you go to a script and click "Install this script" without requiring that the user edit anything (check the [[Wikipedia:Script_Installer#Gallery|gallery]]). The Script Installer was supposed to also create a Script Gallery where scripts could be listed, broken down by category, and show many users installed each one to indicate the more popular ones ([[:File:Script Installer Script Library.png|screenshot]]). I stopped working on it a few months ago because I've been busy, etc. but perhaps there's still a need for something like this. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 18:44, 7 June 2011 (UTC) |
|||
:::Twinkle adds extra tabs at the top of the page. Is it really not possible to do something similar for Preferences tabs? Anyway, anything's possible if the software is changed. But if your Script Installer were finished, that could actually serve a similar purpose. It would become a gadget, with an explanation that lots more scripts, some advanced, are available through it. It would remove the "easy installation" motivation for cramming the Gadgets tab. If you can make it happen, more power to you! [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 19:45, 7 June 2011 (UTC) |
|||
:::: Well Script Installer is already done and about a dozen people have it installed already. It's definitely still in beta mode, though, since some features are still missing, such as the ability to uninstall scripts. I've got the most crucial part of being able to install scripts completed a while ago, though. Also, I thought you meant adding tabs to Preferences for ''everyone'', which can't be done. The user would have to install a script to see new tabs in Preferences; I think that's the only way. Or, through a MediaWiki extension, I guess. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 06:24, 8 June 2011 (UTC) |
|||
:::::" The user would have to install a script to see new tabs in Preferences" - well that would actually make sense, if a Gadget on the Gadgets tab, when activated, gave access to an additional Advanced Gadgets tab. [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 06:32, 8 June 2011 (UTC) |
|||
::::::The simplest course of action would still seem to be to move the "advanced" gadgets to the bottom of the page. I'm not sure if another tab is the best approach overall, since it is better to keep gadgets to one tab (as with other option tabs). However, what if there was a gadget that - when selected - enabled the ''display'' of the more advanced gadgets? --'''[[User:Ckatz|Ckatz]]'''''<small><sup>[[User_talk:Ckatz|<font color="green">chat</font>]]</sup><sub>[[Special:Contributions/Ckatz|<font color="red">spy</font>]]</sub></small>'' 06:59, 8 June 2011 (UTC) |
|||
This page needs a makeover indeed. One big improvement is reorganizing according to functionality. Basically, this means renaming the sections, adding some explanatory text and shuffling some gadgets. My initial suggustion would be: |
|||
;Appearance |
|||
:Provides more options to change the appearence of Wikipedia |
|||
;Editing |
|||
:Options to change common editing functions |
|||
;Miscellaneous |
|||
:Options that do not fall under any other category |
|||
;Advanced functionality |
|||
:These gadgets provide advanced functions during reading and editing pages |
|||
Thoughts? <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 13:37, 10 June 2011 (UTC) |
|||
:I think putting "advanced" gadgets at the bottom of the page (or in it's own section) is a great idea, also I would like to encourage the further development of Script Installer, is there any documentation links to explore ? [[User:Mlpearc|<span style='font-family:;color:#800020'>'''Mlpearc'''</span>]] <small>[[User_talk:Mlpearc|<span style='font-family:;color:#CFB53B'>'''powwow'''</span>]]</small> 17:13, 10 June 2011 (UTC) |
|||
:: Yes, it's all in the link I provided, [[Wikipedia:Script Installer]]. <font face="Verdana">[[User:Gary King|<font color="#02b">Gary <b>King</b></font>]] <span style="font-size: 0.9em;">([[User talk:Gary King|<font color="#02e">talk</font>]] · [[User:Gary King/Scripts|<font color="#02e">scripts</font>]])</span></font> 17:32, 10 June 2011 (UTC) |
|||
:::Thank you, and sorry, I missed the previous link. [[User:Mlpearc|<span style='font-family:;color:#800020'>'''Mlpearc'''</span>]] <small>[[User_talk:Mlpearc|<span style='font-family:;color:#CFB53B'>'''powwow'''</span>]]</small> 19:50, 10 June 2011 (UTC) |
|||
:Any ETA? The currently layout sucks. I'd do it myself, but that requires running for RfA. — [[User:Dispenser|Dispenser]] 14:08, 19 July 2011 (UTC) |
|||
:::No it doesn't - for this situation you can always do a [[Help:userspace draft|userspace draft]] and then propose it and if necessary use {{tl|editprotected}}. [[User:Rd232|Rd232]] <sup>[[user talk:rd232|talk]]</sup> 15:33, 19 July 2011 (UTC) |
|||
::I've made a start. <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 15:30, 19 July 2011 (UTC) |
|||
== HideFundraisingNotice gone == |
|||
{{editprotected|ans=yes}} |
|||
If [[MediaWiki:gadget-HideFundraisingNotice]] is unlisted then anyone updating their preferences will have it removed. We had some annoyance at the village pump this year since it was originally stated that users wouldn't have to re-enable the gadget every year. This becomes more important if the fundraiser is held more often (the fundraising team is looking into it). — [[User:Dispenser|Dispenser]] 21:44, 17 January 2012 (UTC) |
|||
: [[File:Pictogram voting wait.svg|20px|link=|alt=]] '''Already done'''<!-- Template:EP --> {{user|Edokter}} appears to have taken care of this on January 19.[https://en.wikipedia.org/enwiki/w/index.php?title=MediaWiki:Gadgets-definition&diff=472069181&oldid=471820329] [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 14:07, 9 February 2012 (UTC) |
|||
::Note, this gadget was suppressing ALL central notices, not just fundraisers - it has been forked now for all and the original is being worked on to be for just FR's (this was done to preserve the UI goal of hiding FR notices without making users re-enable). — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#00FF00;">Talk</span>]]</sup> 04:12, 17 February 2015 (UTC) |
|||
== Typo == |
|||
I can't find the MediaWiki page that contains the actual gadget descriptions, so could an admin who knows where it is make the following correction: "''Adds two new dropdown boxes below the edit summary box, with some useful default summaries''" should be changed to "''Add two new dropdown boxes below the edit summary box, with some useful default summaries''" (basically change "''Adds''" to "''Add''"). Sorry if I'm reporting this in the wrong place... --[[User:90|Andrew]] <small>[[User:90|(User:90)]]</small> [[User talk:90|(talk)]] 23:16, 16 February 2012 (UTC) |
|||
:Both versions seem correct (as in "[this gadget] adds..."), but I've changed it anyway. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 23:41, 16 February 2012 (UTC) |
|||
::True, it works either way, but the modification makes it consistent with the other options which start with Add, Make, Focus, Disable, etc. Thanks! --[[User:90|Andrew]] <small>[[User:90|(User:90)]]</small> [[User talk:90|(talk)]] 23:48, 16 February 2012 (UTC) |
|||
== ReferenceTooltips on by default == |
|||
{{editprotected|answered=yes}} |
|||
Please change the line <tt>* ReferenceTooltips|ReferenceTooltips.js|ReferenceTooltips.css</tt> to <tt>* ReferenceTooltips[default]|ReferenceTooltips.js|ReferenceTooltips.css</tt>, so as to enable the ReferenceTooltips gadget by default. There was consensus for this at [[Wikipedia:Village pump (proposals)/Archive 89#Reference_Tooltips]]. See also [[WP:VPM#ReferenceTooltips]]. Thanks. --[[User:Yair rand|Yair rand]] ([[User talk:Yair rand|talk]]) 23:58, 16 July 2012 (UTC) |
|||
[[File:Yes check.svg|20px|link=|alt=]] '''Done'''<!-- Template:EP --> - [[User:Penwhale|Penwhale]] | <sup>[[User_talk:Penwhale|dance in the air]] and [[Special:Contributions/Penwhale|follow his steps]]</sup> 00:28, 17 July 2012 (UTC) |
|||
== Edit tools == |
|||
{{editprotected|ans=yes}} |
|||
See [[Wikipedia:Gadget/proposals#Edit tools]]. [[User talk:Helder.wiki|Helder]] 21:25, 12 September 2012 (UTC) |
|||
:Could you get someone to check your code? (The last few times I have deployed your code, there have been some mistakes!) Thanks — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 19:25, 13 September 2012 (UTC) |
|||
::You can check it directly on [//test.wikipedia.org/enwiki/w/index.php?title=TestPage&action=edit test.wikipedia.org], where it is [//test.wikipedia.org/enwiki/w/index.php?title=Special:Contributions/Helder.wiki&dir=prev&offset=20120818152418&limit=9&target=Helder.wiki implemented] (and working) right now. [[User talk:Helder.wiki|Helder]] 03:25, 14 September 2012 (UTC) |
|||
:::It needs fixes before it can be implemented here. I've outlined the issues I see, including some much less pressing ones, on the proposals page. -— [[User:Isarra|Isarra]] [[User talk:Isarra|༆]] 18:12, 14 September 2012 (UTC) |
|||
== Open search result list and search suggestions in new tab == |
|||
{{edit protected|ans=yes}} |
|||
In all search forms this gadget makes the search result list or search suggestion open in a new tab via Ctrl-click (PC) and Command-click (Mac). Please add this gadget. It has unanimous support in these two Village Pump discussions: |
|||
*[[Wikipedia:Village pump (technical)/Archive 102#Support or oppose adding gadget to open search in new tab]] - Village pump discussion showed good support for adding gadget. |
|||
*[[commons:Commons:Village pump/Proposals/Archive/2012/08#Support or oppose adding gadget to open search in new tab]] - Discussion showed good support for adding gadget. |
|||
The search gadget: |
|||
*[[commons:User:Timeshifter/Open search in new tab.js]] - JavaScript (JS). |
|||
*[[commons:User talk:Timeshifter/Open search in new tab.js]] - description and JS import info. |
|||
It has been thoroughly discussed in several locations. Discussion links: |
|||
*[[commons:User talk:Timeshifter/Open search in new tab.js#Discussion elsewhere]] |
|||
Please see the main Bugzilla thread: [[Bugzilla:35974]]. It seems that this JavaScript will not get implemented in core MediaWiki until after it gets implemented as a gadget. Several people in that thread said it should first be implemented as a gadget. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 20:05, 17 September 2012 (UTC) |
|||
:Again, this is does not belong in a gadget. It is a basic fix for a deficiency in 2-3 major browsers, just like the js to write in the 'Search' text in the vector searchbox is a basic fix for browsers not supporting that particular html5 feature, and the browser-specific stylesheets for the different versions of IE make up for IE being... well, IE. Is there any particular reason why we need to shove the technicalities of web design in our users' faces with yet another checkbox when this is something that should just work in the first place, and something that people will expect to just work in the first place? -— [[User:Isarra|Isarra]] [[User talk:Isarra|༆]] 20:33, 17 September 2012 (UTC) |
|||
:::According to several people at [[Bugzilla:35974]] it does belong in a gadget. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 21:25, 18 September 2012 (UTC) |
|||
::::There may have been some misinterpretations involved there, but it does need to work consistently and not break any existing browser functionality before being turned on in core. -— [[User:Isarra|Isarra]] [[User talk:Isarra|༆]] 22:56, 18 September 2012 (UTC) |
|||
::Oooh, you don't need to go through bugzilla to change the site javascript. That's what [[MediaWiki:Common.js]] if for; any admin can edit that same as the gadget pages, although for temporary fixes, it'd probably be best to get someone to make a subpage for the thing so it's easier to remove later. Best ask around there what the practice is on this wiki, though. -— [[User:Isarra|Isarra]] [[User talk:Isarra|༆]] 20:37, 17 September 2012 (UTC) |
|||
:::I like this idea. I am the bureaucrat on a wiki at Wikia. I have changed [[MediaWiki:Common.js]] on that wiki. So I know what you are talking about. I don't see why a subpage would be needed. It is only 2 lines of JavaScript that is being added or removed. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 21:25, 18 September 2012 (UTC) |
|||
::::Modularity. From those two lines, though, I have to wonder - does it follow any different key combinations other browsers may use, since there was concern about that in the last discussion, and is the thing it breaks in chrome resolved? Or really, need it activate at all for browsers that already have the intended functionality? -— [[User:Isarra|Isarra]] [[User talk:Isarra|༆]] 22:56, 18 September 2012 (UTC) |
|||
[[File:Usage share of web browsers (Source StatCounter).svg|thumb|[[Usage share of web browsers]].]] |
|||
:::::Ctrl-click (PC) and Command-click (Mac) is fairly standard for opening links in new tabs in most browsers. All this does is extend that functionality to all search forms on Wikipedia. It works for me in Chrome, Internet Explorer, and Firefox. Those are the [[web browsers]] I have installed. Try it yourself and see. It also works in Safari according to what others have said. See the link in the next paragraph. |
|||
:::::I could not figure out what Helder was talking about concerning Chrome. See [[commons:Commons:Village pump/Proposals/Archive/2012/08#Revised version that also works for Mac users]]. Maybe you can duplicate his problem. He is not a native speaker in English, though, and I think that makes it all the more difficult to figure out. Wikipedia search opens in a new tab for me in Chrome when I use Ctrl-click. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 04:30, 19 September 2012 (UTC) |
|||
::::::Right, I apologise for not looking more closely sooner, but js is really not my strong suit. You need to address known issues before trying to get it applied on a wider scale, which includes testing it in all major browsers, including different versions, and removing redundancies and conflicts. This is why it was not added to core, and despite what I said, even a gadget would probably be premature at this stage. Please, do that before continuing with this, and again I'm sorry I assumed it had already been past that before it got here. -— [[User:Isarra|Isarra]] [[User talk:Isarra|༆]] 16:01, 19 September 2012 (UTC) |
|||
::::::Maybe I'm just being paranoid, but yuvipanda [[commons:User:Yuvipanda/newtab-search.js|added a check for fringe cases]], which should help prevent anything weird from happening. I dunno; maybe just throwing the thing in and seeing what happens would be best at this point. Just not in a gadget. Seriously. -— [[User:Isarra|Isarra]] [[User talk:Isarra|༆]] 20:00, 19 September 2012 (UTC) |
|||
:::::::Interesting. Concerning [[commons:User:Yuvipanda/newtab-search.js]]. I left a message here: [[mw:User talk:Yuvipanda#Open search in new tab]]. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 05:41, 20 September 2012 (UTC) |
|||
Request disabled, because I am not sure what is being requested. Please reactivate when you have made your minds up. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:46, 19 September 2012 (UTC) |
|||
:{{t|edit protected}} - I reactivated it after seeing no opposition to my latest request below. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 19:32, 10 October 2012 (UTC) |
|||
===The search gadget is now a preference on the Commons === |
|||
{{edit protected|ans=yes}} |
|||
See: |
|||
*[[commons:Special:Preferences#mw-prefsection-gadgets]] - see "Interface: Other". |
|||
*[[commons:User talk:Rillke/Discuss/2012/2#Gadget implementation. Open search in new tab]] |
|||
*[[commons:MediaWiki:Gadget-search-new-tab.js]] |
|||
*[[commons:MediaWiki talk:Gadget-search-new-tab.js]] |
|||
The last link provides more info, and explains what it does. |
|||
--[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 07:14, 21 September 2012 (UTC) |
|||
::I suggest that since the Commons has implemented this as an optional gadget we can too on Wikipedia. I have not heard of any problems on the Commons. And if there are some peculiar bugs people can always turn this gadget off in preferences. |
|||
::Yuvipanda left [http://commons.wikimedia.org/enwiki/w/index.php?title=User_talk%3ATimeshifter&diff=78897283&oldid=76465277 this message on my talk page on the Commons]: "Hey! Sorry for the delayed reply. I think it should be a gadget, with default on/off left to community. I see it has already been implemented, so maybe I'm too late?" |
|||
::I think we should install this on Wikipedia as an optional gadget for now. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 23:16, 23 September 2012 (UTC) |
|||
:::Please specify exactly what needs to be added where. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:52, 26 September 2012 (UTC) |
|||
(unindent). From looking at how it was done on the Commons it looks like a JavaScript page needs be created in the MediaWiki namespace. I suggest using the same name and JavaScript code as on the Commons page: |
|||
*[[commons:MediaWiki:Gadget-search-new-tab.js]] |
|||
*[[MediaWiki:Gadget-search-new-tab.js]] - Wikipedia page. |
|||
Then a line needs to added to [[MediaWiki:Gadgets-definition]]. See [http://commons.wikimedia.org/enwiki/w/index.php?title=MediaWiki%3AGadgets-definition&diff=78677935&oldid=78675170 this diff] to see what was added on the commons: |
|||
<code>* search-new-tab [ResourceLoader]|search-new-tab.js</code> |
|||
I am an not an admin, and so I can not create or edit pages in the MediaWiki namespace. I don't know if there are more steps involved. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 10:01, 27 September 2012 (UTC) |
|||
:Was there a discussion on ''this'' wiki to have the gadget added? See [[Wikipedia:Gadget/proposals]]. [[User:Rjd0060|Rjd0060]] ([[User talk:Rjd0060|talk]]) 22:50, 29 September 2012 (UTC) |
|||
::Yes. Higher up I linked to the main discussion. It got unanimous support in that discussion: |
|||
::[[Wikipedia:Village pump (technical)/Archive 102#Support or oppose adding gadget to open search in new tab]]. |
|||
::See also: |
|||
::[[Wikipedia:Gadget/proposals#Open search result list or search suggestion in a new tab]] |
|||
::[[Wikipedia:Gadget/proposals#Support or oppose adding gadget to open search in new tab]]. |
|||
::In that discussion one person said: "Took another look at this and completely agree with it being used as a gadget, albeit not as default. I'll see if I can ping an admin in IRC to add it." |
|||
::The other person in that discussion said to put it into [[MediaWiki:Common.js]]. I'd be happy with that too, but I think the majority view in the discussions is for it to be a gadget so that it can be turned off if desired. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 06:30, 30 September 2012 (UTC) |
|||
Surprised to see this request still open. I was hoping an admin familiar with javascript would tackle it. I had a go, and followed your request but it didn't work properly. In the list of gadgets it displayed '''<gadget-search-new-tab>''' and no description of the gadget as the other ones do. So I will disable the request for now and hope (again) that a js-knowledgable admin comes along soon. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:43, 29 October 2012 (UTC) |
|||
:Thanks for trying. I am figuring this out as I go along. I found this: |
|||
:[[Commons:Special:Gadgets]] |
|||
:See the section called "Interface: Other". There one finds "Search results in new tab" and a link at the end of it labeled "[http://commons.wikimedia.org/enwiki/w/index.php?title=MediaWiki:Gadget-search-new-tab&action=edit View source]." It is the source for a page on the Commons that also needs to be created here on Wikipedia: [[MediaWiki:Gadget-search-new-tab]] - on the Commons it is: [[commons:MediaWiki:Gadget-search-new-tab]] |
|||
:I believe once that page is created on Wikipedia, then the description will show up. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 20:04, 29 October 2012 (UTC) |
|||
::You indeed forgot the create the description page at [[MediaWiki:Gadget-search-new-tab]]. I've added the gadget. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 21:04, 29 October 2012 (UTC) |
|||
:::Thanks! I enabled it in my preferences and it works fine. Does the Mac {{Key press|Command}} key also need to be mentioned in the gadget description here?: [[MediaWiki:Gadget-search-new-tab]]. Or do Mac users automatically know to use it when the CTRL key is mentioned for PC users? I use a PC, and so I don't know. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 18:25, 1 November 2012 (UTC) |
|||
::::I'm on a Mac, and I just enabled the gadget; it works just the same in Safari when I use either command or control. (though it opened it in a new window, not in a new tab) [[User:EVula|EVula]] <span style="color: #999;">// [[User talk:EVula|talk]] // [[User:EVula/admin|<span style="color: #366;">☯</span>]] //</span> 18:51, 1 November 2012 (UTC) |
|||
:::::OK. Do some Mac keyboards only have a {{Key press|Command}} key? No Ctrl key? |
|||
:::::According to [https://discussions.apple.com/thread/2502283?start=0&tstart=0 this page], in Safari opening a page in a new tab (instead of a new window) is decided by the browser preferences. In Safari : Preferences > Tabs. --[[User:Timeshifter|'''Timeshifter''']] ([[User talk:Timeshifter|talk]]) 22:48, 3 November 2012 (UTC) |
|||
== Use Resource Loader for HideFundraisingNotice == |
|||
Can we have Resource Loader enabled for HideFundraisingNotice? Or would that cause trouble with the javascript of this gadget? [[User talk:Helder.wiki|Helder]] 22:14, 29 October 2012 (UTC) |
|||
:We can try. Though in the past, gadgets that didn't use document.ready tended to fail with ResourceLoader. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 20:55, 30 October 2012 (UTC) |
|||
:It'll work fine without document ready, in fact, it must not have a document ready wrapper as that will make it impossible for the gadget to do what it intends to do. And on that, though I haven't confirmed, I suspect the gadget is already unable to do what it intends to do. Can someone confirm that it is working currently at all? [[User:Krinkle|Krinkle]] ([[User talk:Krinkle|talk]]) 01:33, 30 June 2013 (UTC) |
|||
::I changed it to have ResourceLoader load HideFundraisingNotice. I'm not sure if the JS is actually working as intended though. Regardless, the CSS component of the gadget should effectively hide any banners. [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 03:41, 11 August 2015 (UTC) |
|||
::: {{re|Kaldari}} You did it [https://en.wikipedia.org/enwiki/w/index.php?title=MediaWiki%3AGadgets-definition&type=revision&diff=675857057&oldid=675268287 only with HideCentralNotice]. HideFunraisingNotice is still loaded without ResourceLoader. [[User:Jack who built the house|Jack who built the house]] ([[User talk:Jack who built the house|talk]]) 15:18, 30 January 2017 (UTC) |
|||
== Where to ask somebody to turn HotCat on for more editors? == |
|||
Per the outcome of a community discussion (see [[Wikipedia_talk:HotCat#Village_Pump_proposal_for_enabling_this_by_default_for_most_editors|here]]) for details, it is agreed to make HotCat available for more editors (turn it on by default). However, nobody really knows how to make it so; posting here was [[Wikipedia:Village_pump_(miscellaneous)/Archive_40#How_to_make_developers_aware_of_VP_discussion.3F|a suggestion from the Village Pump]]. --<sub style="border:1px solid #228B22;padding:1px;">[[User:Piotrus|Piotr Konieczny aka Prokonsul Piotrus]]|[[User talk:Piotrus|<font style="color:#7CFC00;background:#006400;"> reply here</font>]]</sub> 17:38, 15 November 2012 (UTC) |
|||
: You would do it more or less the same way we did it for the "my sandbox" gadget: change <code>[ResourceLoader]</code> to <code>[ResourceLoader|default|rights=???]</code> in the line for HotCat, with an appropriate choice for "<code>???</code>". With "my sandbox" <code>createpage</code> was a logical choice since that right is needed for the gadget to work in the first place. For this one, the choice of right to use will be rather arbitrary; pick anything from [[Special:ListGroupRights]] that is listed for "{{int:group-user}}" and not listed for "{{int:group-all}}". <small>Too bad the VP discussion didn't go for "enable for autoconfirmed editors only", because then <code>autoconfirmed</code> would be the obvious right to use. As it is, <code>createpage</code> is probably still the best arbitrary choice.</small> |
|||
: Note that this works for "make this gadget available only to users with these rights, and enable it by default for them"; there is no way to enable a gadget by default for some users while still making it available to a larger group. In the case of anons versus registered users, this distinction doesn't matter since anons cannot enable or disable gadgets anyway; "not available" and "not enabled by default" are effectively the same for them. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 04:29, 16 November 2012 (UTC) |
|||
::It is enabled now. If this causes any serious problems, feel free to roll back [{{fullurl:MediaWiki:Gadgets-definition|diff=523295397&oldid=520487375}} this edit] of mine. If you notice non-critical problems, please report them at [[Wikipedia talk:HotCat]]. (BTW, I used for the time being the "purge" right, which anons don't have. See [[bugzilla:42171]].) [[User:Lupo|Lupo]] 08:58, 16 November 2012 (UTC) |
|||
====follow up==== |
|||
So, the decision to turn HotCat on by default was a result of a discussion where a whopping ''four'' users supported doing so. That action caused caused some problems and has now been undone. In the future it would probably be good to be sure that there is a significant consensus, arrived at by something like an RFC, before making any such changes. I'm not suggesting anyone acted in bad faith or anything like that, but there was not enough input and not enough critical thinking about the possible confusion it would cause when noobs started using a tool ''without even knowing they were using it and without explanation of how it works and what it is for''. |
|||
For the record, what happened was that the "+" that HotCat adds to the bottom of the page was repeatedly mistaken for a way to add comments at the bottom of a talk page. Because these users saw a sign indicating they could add something and they got no further information they ended up creating category pages that were actually comments, for example [[:Category:Hello Kintetsubuffalo. I am writing regards the history of the Asociacion de Guías y Scouts de Costa Rica, I am member of the national Council]], Obviously that's not a good thing, and a brief [http://en.wikipedia.org/enwiki/w/index.php?title=Wikipedia:Village_pump_(policy)&diff=562180211&oldid=562179459 discussion], which nevertheless had far more support than the original one that turned it on, resulted in it being turned back off. [[User:Beeblebrox|Beeblebrox]] ([[User talk:Beeblebrox|talk]]) 02:07, 30 June 2013 (UTC) |
|||
== Please delete oldeditor.js == |
|||
Please delete oldeditor|oldeditor.js as it has no effect. VisualEditor is not enabled by default, and if it is enabled from [[Special:Preferences#mw-prefsection-editing]], this gadget will still have no effect. --[[User:MK8|MK]] ([[User talk:MK8|talk]]) 07:21, 6 October 2013 (UTC) |
|||
:{{Done}}. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 07:36, 6 October 2013 (UTC) |
|||
== User:Equazcion/SidebarTranslate.js == |
|||
{{editprotected|answered=yes}} |
|||
Please add {{code|<nowiki>* SidebarTranslate|User:Equazcion/SidebarTranslate.js</nowiki>}} to the "appearance" section of the page per [[Wikipedia:Village_pump_(proposals)#Make_SidebarTranslate_into_a_gadget]]. [[User:Armbrust|Armbrust]] <sup>[[User talk:Armbrust|<font color="#E3A857">The</font> <font color="#008000">Homunculus</font>]]</sup> 15:23, 26 November 2013 (UTC) |
|||
:It looks like the process of installing it is actually a little more involved: see [[Wikipedia:Gadget#Installation]]. Also, has anybody double-checked the code per the comment by [[User:Tucoxn|Tucoxn]] at the discussion you linked? [[User:Equazcion|Equazcion]]'s code usually seems reliable (not that I'm in any position to judge), but it can't hurt to have someone else give the ok independently. [[User:Legoktm|Legoktm]], [[User:Edokter|Edokter]] or [[User:TheDJ|TheDJ]], maybe you could do the honours, or maybe you know someone who can? — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪ talk ♪]]</sup> 07:49, 27 November 2013 (UTC) |
|||
:{{ping|Equazcion}} why is .attr('hidden',<nowiki>''</nowiki>) used instead of .hide(), and .removeAttr('hidden') instead of show()? I guess it doesn't really matter, just curious. In the .find('a').each function, you call $(this) a few times. You can just do var $this = $(this), and use $this everywhere. [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 17:42, 27 November 2013 (UTC) |
|||
:Oh also, I'm a bit concerned about defining a function named sort in the global scope, and that someone will accidentally clobber it. Maybe rename it to 'sidebartranslate_sort'? Or move it into the $(document).ready function since it isn't needed outside of it? [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 17:47, 27 November 2013 (UTC) |
|||
::*On the hide thing, the answer is I don't remember. I got into the habit of using the attribute method some time ago, when I had some trouble with hide() and show() in certain situations, whereas I've never had any issue with the former. This may have been in an earlier version of jQuery, or in some special circumstance. I can try hide() and show() here if it'll make the code more readable or something. |
|||
::*Calling $(this) is another force of habit after reading something a while back about variable assignment of $(this) having barely any performance gain as compared to assigning other jQuery selectors to variables. I find it easier to read, probably just due to my own habit, but I can make that change too. |
|||
::*I'll change the name of the sort function. I kinda thought Wikipedia does something magical to separate the scopes of imported scripts, but I don't know where I got that idea from. <font style="color:#0059B2;text-shadow:0px 0px 5px #80BFFF">[[User:Equazcion|<font color="#0059B2">equazcion</font>]] [[User talk:Equazcion|<font color=#0059B2>→</font>]] <span style="font-size:88%">18:13, 27 Nov 2013 (UTC)</span></font> |
|||
:::Did all those now. Seems to be working. <font style="color:#0059B2;text-shadow:0px 0px 5px #80BFFF">[[User:Equazcion|<font color="#0059B2">equazcion</font>]] [[User talk:Equazcion|<font color=#0059B2>→</font>]] <span style="font-size:88%">18:33, 27 Nov 2013 (UTC)</span></font> |
|||
:{{done}}. {{ping|Equazcion}}, it would be helpful if it could work with ResourceLoader for efficiency. Might be some weird stuff if ULS hasn't loaded yet. [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 18:47, 27 November 2013 (UTC) |
|||
::I could work on that, I just don't know what ResourceLoader is. Is that another gadget? I don't see it in the list. <font style="color:#0059B2;text-shadow:0px 0px 5px #80BFFF">[[User:Equazcion|<font color="#0059B2">equazcion</font>]] [[User talk:Equazcion|<font color=#0059B2>→</font>]] <span style="font-size:88%">18:51, 27 Nov 2013 (UTC)</span></font> |
|||
:::See [[mw:ResourceLoader]]. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 18:59, 27 November 2013 (UTC) |
|||
::::After reading a bit of that, I still have no idea what ResourceLoader is =D Let's start this this: How did you determine that this script doesn't work with ResourceLoader? And what is ULS? And PS. If someone wants to go ahead and make my script compliant rather than deal with having to get me to understand this, they can feel free, if that might be easier. <font style="color:#0059B2;text-shadow:0px 0px 5px #80BFFF">[[User:Equazcion|<font color="#0059B2">equazcion</font>]] [[User talk:Equazcion|<font color=#0059B2>→</font>]] <span style="font-size:88%">19:09, 27 Nov 2013 (UTC)</span></font> |
|||
:::::ResourceLoader is basically the system that runs most JS/CSS on the site through load.php. For example, [https://bits.wikimedia.org/en.wikipedia.org/load.php?modules=jquery] loads jQuery. [https://bits.wikimedia.org/en.wikipedia.org/load.php?modules=ext.gadget.SidebarTranslate This] currently only loads the CSS because I removed the [ResourceLoader] specification. [[mw:ULS]] is an extension that adds the #p-langs menu even if there are no language links. I'm not sure if it even matters, I was just thinking of what might have been making it not work. [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 20:36, 27 November 2013 (UTC) |
|||
::::::What I suspect as cause of failure under Resourceloader is load order. Under RL however, this is somewhat controlable. I want to put the gadget under the test section first to see if I can load SidebarTranslate with a dependency on ULS, which in theory, should load both in correct order and prevent any misfires. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 21:16, 27 November 2013 (UTC) |
|||
::::::Looking for ULS's module name, I suspect 'ext.uls'. Please correct me if I'm wrong. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 21:27, 27 November 2013 (UTC) |
|||
:::::::{{red|Uncaught Error: Unknown dependency: ext.uls}}. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 21:37, 27 November 2013 (UTC) |
|||
::::::::After a few misfires, it seems to work with RL just fine, even without the dependency. But that may be random. Please test the version under the Testing gedgets section. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 21:58, 27 November 2013 (UTC) |
|||
:::::::::When you say "after a few misfires", do you mean it took you a few page loads before it worked? Your test version seems to be working for me immediately, at any rate. <font style="color:#0059B2;text-shadow:0px 0px 5px #80BFFF">[[User:Equazcion|<font color="#0059B2">equazcion</font>]] [[User talk:Equazcion|<font color=#0059B2>→</font>]] <span style="font-size:88%">02:28, 28 Nov 2013 (UTC)</span></font> |
|||
::::::::::It did. Seems to work consistently for me as well now. I still want to test with dependency tonight. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 11:05, 28 November 2013 (UTC) |
|||
:::::::: If you read PHP, you can see all the (shockingly many) ULS module names [//git.wikimedia.org/blob/mediawiki%2Fextensions%2FUniversalLanguageSelector.git/master/Resources.php here]. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 03:10, 28 November 2013 (UTC) |
|||
:::::::::I think I want 'ext.uls.interface' then; it seems that one handles #p-lang. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 11:05, 28 November 2013 (UTC) |
|||
:::::Works fine with RL for me, not sure why it wasn't earlier. Yay :) [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 16:54, 3 December 2013 (UTC) |
|||
== Twinkle preferences == |
|||
Which page would you edit to add a piped link to the Twinkle preferences panel next to the Twinkle gadget button? -- [[User talk:John Reaves|John Reaves]] 05:52, 19 December 2013 (UTC) |
|||
:I think you want [[MediaWiki:Gadget-Twinkle]]? [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 16:09, 19 December 2013 (UTC) |
|||
== Specify skin support for a few gadgets == |
|||
{{sudo|ans=y}} |
|||
Hi. I'm coming here from [[bugzilla:64975]]. |
|||
; old |
|||
<pre>dropdown-menus|dropdown-menus.js|dropdown-menus.css</pre> |
|||
; new |
|||
<pre>dropdown-menus[skins=vector,monobook,modern]|dropdown-menus.js|dropdown-menus.css</pre> |
|||
; old |
|||
<pre>CategoryAboveAll|CategoryAboveAll.js</pre> |
|||
; new |
|||
<pre>CategoryAboveAll[skins=monobook]|CategoryAboveAll.js</pre> |
|||
; old |
|||
<pre>MenuTabsToggle[ResourceLoader|dependencies=jquery.cookie]|MenuTabsToggle.js|MenuTabsToggle.css</pre> |
|||
; new |
|||
<pre>MenuTabsToggle[ResourceLoader|dependencies=jquery.cookie|skins=vector]|MenuTabsToggle.js|MenuTabsToggle.css</pre> |
|||
; old |
|||
<pre>Blackskin[ResourceLoader]|Blackskin.css</pre> |
|||
; new |
|||
<pre>Blackskin[ResourceLoader|skins=monobook]|Blackskin.css</pre> |
|||
; old |
|||
<pre>widensearch[ResourceLoader]|widensearch.css</pre> |
|||
; new |
|||
<pre>widensearch[ResourceLoader|skins=vector]|widensearch.css</pre> |
|||
Five lines to update total. Thanks! --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 03:39, 8 May 2014 (UTC) |
|||
(cc: [[User:Helder.wiki|Helder.wiki]], [[User:MatmaRex|MatmaRex]], [[User:Jaredzimmerman (WMF)|Jaredzimmerman]]) |
|||
:All done. I'll note (if I read [[mw:extension:Gadgets]] correctly) that this option only ''hides'' the gadgets; it does not ''disable'' them when initially enabled and switching skins. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 10:38, 8 May 2014 (UTC) |
|||
::That looks like a bug. [[User:Helder.wiki|Helder.wiki]] 12:14, 8 May 2014 (UTC) |
|||
:::Depends on intended behaviour. As far as I can tell after some experimenting, when switching to a different skin, the gadgets ''are'' disabled, and even reset to default when coming back. It seems the documentation is wrong. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 17:55, 8 May 2014 (UTC) |
|||
:: Thanks again for taking care of this. --[[User:MZMcBride|MZMcBride]] ([[User talk:MZMcBride|talk]]) 23:14, 8 May 2014 (UTC) |
|||
== GeoNotice == |
|||
Shouldn't this only be enabled for logged in users with something like rights=purge? [[User:Legoktm|Legoktm]] ([[User talk:Legoktm|talk]]) 08:30, 8 August 2014 (UTC) |
|||
:That would save only one line of code. (And IPs can purge, can't they?) <code style="white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 09:27, 8 August 2014 (UTC) |
|||
:@[[User:Legoktm|Legoktm]] and [[User:Edokter|Edokter]]: I'm fine with that. The [[mw:Manual:User_rights|"purge"]] user right allows purging a page <em>without a confirmation step</em>, while unregistered users are required to do that extra step. [[User:Helder.wiki|Helder]] 13:45, 8 August 2014 (UTC) |
|||
::IPs don't have a watchlist, therefore, don't see watchlist notices; and the geonotice is a special class of watchlist notice. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 14:36, 8 August 2014 (UTC) |
|||
:::The gadget already ensures that the core code is only loaded on the watchlist page. It is one of the reasons we moved it to a gadget in the first place; adding the right has no added value. <code style="white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 15:07, 8 August 2014 (UTC) |
|||
::::{{reply to|Redrose64|Edokter}} the addition of rights=purge would be to make [https://en.wikipedia.org/enwiki/w/load.php?modules=ext.gadget.geonotice this loader code] not to be loaded for anonymous users reading [[Special:Random|any article]]. We already know beforehand the geonotices are not useful to them, so by adding this restriction we would save loading these extra bytes which will just confirm that we don't want to load the core of geonotices. [[User:Helder.wiki|Helder]] 15:43, 8 August 2014 (UTC) |
|||
:I was going to suggest using a right which is more related to what the gadget does (and is still only available for logged in users): viewmywatchlist. However, I noticed [[bugzilla:69301]]. So, rights=purge seems good for now. [[User:Helder.wiki|Helder]] 16:13, 8 August 2014 (UTC) |
|||
::Ideally, we would be able to specify user groups under rights ('user' for registered user in this case), but that doesn't work. Using these specific rights is a hackity hacky hack! Is it really worth those 20 bytes? <code style="white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 19:21, 8 August 2014 (UTC) |
|||
:::{{reply to|Edokter}} not really. The use of user rigths instead of groups is by design (see [[User:Brion VIBBER|Brion]]'s comment on [[bugzilla:12211#c4]]). The problem is that the most appropriated user right for this specific gadget is currently added to anonymous users when it shouldn't. [[User:Helder.wiki|Helder]] 19:45, 8 August 2014 (UTC) |
|||
::::That comment is from 2007. Anyway, your comment kind off exposes my concern; who is to say IPs won't get purge right in the future? <code style="white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 19:51, 8 August 2014 (UTC) |
|||
:::::Well, until then we will be avoid sending these bytes to the readers (and hopefully the bug will be fixed soon). [[User:Helder.wiki|Helder]] 19:55, 8 August 2014 (UTC) |
|||
== DRN wizard == |
|||
The DRN wizard uses lazy loading, but does so using importScript. I'd like to turn it into a module, and as far as I can tell, it has no dependencies, but I'd like to be sure. <code style="white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 20:17, 8 August 2014 (UTC) |
|||
:{{reply to|Edokter}} [[MediaWiki:Gadget-DRN-wizard.js]] uses <code>mw.util.wikiScript</code> (from module "mediawiki.util"), <code>mw.user.tokens</code> (from module "user.tokens") and <code>importStylesheet</code> (from "mediawiki.legacy.wikibits"). [[User:Helder.wiki|Helder]] 21:14, 8 August 2014 (UTC) |
|||
:Moreover, there are a few functions which are assumed to be globals, such as showStep3, and this won't be the case once the script is converted into a module. These needs to be attached to the window object explicitly. [[User:Helder.wiki|Helder]] 21:17, 8 August 2014 (UTC) |
|||
== WP MED 3 month trial == |
|||
[[File:Jmh649 author link screenshot 2014-08-26.png|thumb|417px|Screenshot with the proposed change to the page circled in magenta to make it easier to find.]] |
|||
There has been good consensus at Wikiproject Medicine to assess the impact of a more prominent link to the contributors of a medical article. In discussion, it was agreed that the tagline "From Wikipedia, the free encyclopedia", which gives attribution to Wikipedia, would be a good spot to place a link to wmflabs tool that gives full article info, including the list of contributors. There is a (lengthy) general discussion at [[Wikipedia:Village pump (proposals) #Adding a link to "authors" in Wikipedia's by-line]] which is inconclusive about the general principle, so WPMED is looking for ways to try the idea out on a limited number of medical articles. {{U|TheDJ}} has very kindly build a gadget to allow that (see [[MediaWiki:Gadgets-definition #test]] "ContributorsHack[ResourceLoader|skins=vector|top]|ContributorsHack.js|ContributorsHack.css"), which places the link close to the tagline in articles that are in the hidden [[:Category:Articles with contributors link]] for those with Vector skins and who have the gadget enabled. |
|||
As this trial is confined to a narrow range of articles - at present, only those containing {{tl|Infobox disease}} - I'd like to seek agreement to turn on the gadget by default, and perhaps extend its application to Monobook skin as well for testing. All comments welcome, --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 15:36, 4 September 2014 (UTC) |
|||
:I'm having a bit of a problem with a WikiProject hijacking a part of the ''interface'' outside article space for the purpose of promoting a link to a tool, which btw, is already available in the 'Page info' page. Why should editors of this particular WikiProject deserve such a prominent presence? <code style="white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 23:32, 4 September 2014 (UTC) |
|||
:: Probably because we asked so nicely? What WPMED is trying to ascertain is whether making the link ''more'' prominent leads to unforeseen problems or brings a benefit. It is recognised that going to article 'History', then selecting from the 'External tools' menu the link marked 'Revision history statistics' will give the same information, but several folks have suggested that that is hardly intuitive for a visitor who wanted to see who the contributors are. The trial is only for a short time and on a limited number of articles, so there's an argument that there's little harm possible. Personally, I'm open-minded about the pros and cons, but I regard it as worthwhile to try things out once in a while, just to get a better idea of what might work. --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 00:03, 5 September 2014 (UTC) |
|||
:::I think that this is an interesting research question. I don't really care which articles are chosen, but it's probably preferable if the chosen articles are mostly supported by people who think this is a good idea. It might be okay if the contributors didn't care, but I'd be sad if we ran this trial on a group of articles that was selected on the basis of the most likely contributors being opposed to it. [[User:WhatamIdoing|WhatamIdoing]] ([[User talk:WhatamIdoing|talk]]) 01:18, 12 September 2014 (UTC) |
|||
*'''Support''' This is one WikiProject attempting to study something to see if it 1) results in harm 2) is useful It is the result of hearing concerns from academics regarding the transparency of Wikipedia [[User:Jmh649|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Jmh649|talk]] · [[Special:Contributions/Jmh649|contribs]] · [[Special:EmailUser/Jmh649|email]]) (if I write on your page reply on mine) 23:05, 11 September 2014 (UTC) |
|||
*'''Support''' Health articles are different from other kinds of articles because they are under extreme scrutiny from media and research organizations, because some high-level expertise will be required to make them all as good as we would, and because more than some other parts of Wikipedia the health articles need to be made to be as good as possible as quickly as possible so the interest in meeting needs of potential new editors is greater in this space. For examples of the scrutiny of health content, see [[Wikipedia:WikiProject_Medicine/Research_publications]] for published. No other WikiProject is pressured to respond to such assertive, off-wiki contributors to Wikipedia as those who publish in this list. Greater recognition of contributors is a recurring demand of critics in Wikipedia's health content. |
|||
:To help recruit more medical professionals into contributing to Wikipedia, I feel that easier access to information about the contributors to Wikipedia's health content would be a step toward meeting the needs of the demographic we want to invite. This byline project has the potential to better match Wikipedia's health content with the expectation of traditional academia, who cannot currently be credited for their contributions to Wikipedia in a comparable that they could if they published in traditional channels. This change has little chance of harming the Wikipedia community and could be a powerful bridge to getting health professionals to recognize Wikipedia as a place where any health professional should consider sharing encyclopedic content of the kind Wikipedia strives to provide. |
|||
:Wikipedia is the most consulted source of health information for some demographics, and this project is a great experiment for Wikipedians, readers, potential new contributors, research organizations, and those that like reporting on Wikipedia's health information in academic articles. I am not convinced that claims of harm from this experiment outweigh the likely benefits. [[User:Bluerasberry|<span style="background:#cedff2;color:#11e">''' Blue Rasberry '''</span>]][[User talk:Bluerasberry|<span style="background:#cedff2;color:#11e">(talk)</span>]] 00:19, 12 September 2014 (UTC) |
|||
*'''Comment''' See [[WP:Wikicredit]] for discussion of the general concept of giving credit on Wikipedia. [[User:Bluerasberry|<span style="background:#cedff2;color:#11e">''' Blue Rasberry '''</span>]][[User talk:Bluerasberry|<span style="background:#cedff2;color:#11e">(talk)</span>]] 00:20, 12 September 2014 (UTC) |
|||
*'''Moderately oppose''' The link does not provide increased ability to research the contributors to an article, but merely makes it more convenient. Thus those who are seriously concerned about the credibility of an article can already find the information, and we are mainly making it easier for casual users to find it. My concern is that the former group probably includes most of those whom the proposal is intended to influence, and the latter group may include more activists and those who may be interested in outing or harrassing editors. We have lots of IP editors here who are anti-psychiatry activists, engaged in lawsuits against manufacturers (fluoroquinolones, Paxil, olanzapine, Accutane, Propecia, and others), and I'm not sure its a completely benign thing to encourage them to identify article contributors. I've already been the topic of a series of articles on one anti-psychiatry website and been tracked down by one activist who contacted me by phone to demand reversion of my edits. |
|||
:Second, since most editors do not self-identify, I'm not sure how making this information more convenient increases crediblity.[[User:Formerly 98|Formerly 98]] ([[User talk:Formerly 98|talk]]) 16:08, 12 September 2014 (UTC) |
|||
Interesting! Ping [[User:Jmh649|Doc James]], [[User:RexxS|RexxS]], [[User:Edokter|Edokter]]: What is the status of this, not started yet, already ended, evaluated? This feature is similar to tools on german Wikipedia, that are becoming more popular: |
|||
*[https://tools.wmflabs.org/wikihistory/wh.php?page_title=Goldhut wikihistory @tools.wmflabs] by [[user:APPER]], WikiHistory-user script showing contributors with percent (calculation see [[:de:user:APPER/WikiHistory/Autorenbestimmung]]), see [[:de:user:Atlasowa/edit history visualization#WikiHistory, APPER]] |
|||
[[File:Script-Schnark-artikel-statistik.png|thumb|100px|Schnark artikel-statistik]] |
|||
*[[:de:user:Schnark/js/artikel-statistik]] via user script, see [[:de:user:Atlasowa/edit_history_visualization#Schnark_artikel-statistik]] |
|||
I think it's really useful stuff. What do you think? --[[User:Atlasowa|Atlasowa]] ([[User talk:Atlasowa|talk]]) 22:29, 12 March 2015 (UTC) |
|||
::What you have is excellent. I love how it color codes who write what and how much of the content it represents. We were unable to get consensus to trial our idea here on En Wikipedia. The page we were linking to was not organized well enough and not reliable enough. We have not got around to improving it further. [[User:Doc James|<span style="color:#0000f1">'''Doc James'''</span>]] ([[User talk:Doc James|talk]] · [[Special:Contributions/Doc James|contribs]] · [[Special:EmailUser/Doc James|email]]) 22:47, 12 March 2015 (UTC) |
|||
== dropdown-menus-vector/nonvector == |
|||
I notice that two recent additions, i.e. |
|||
*dropdown-menus-vector[ResourceLoader|hidden|rights=hidden]|dropdown-menus-vector.js |
|||
*dropdown-menus-nonvector[ResourceLoader|hidden|rights=hidden]|dropdown-menus-nonvector.js|dropdown-menus.css |
|||
do not specify {{para|skins}} - presumably, these two gadgets don't work on all skins, hence their naming. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 20:02, 19 January 2015 (UTC) |
|||
:Correct. Loading is governed from MoreMenu (which will be renamed at a later stage). <code style="white-space:nowrap">-- [[[[User:Edokter|<span style="color:#006">User:Edokter</span>]]]] {{[[User talk:Edokter|<span style="color:#060">talk</span>]]}}</code> 23:11, 19 January 2015 (UTC) |
|||
== Teahouse description == |
|||
I notice that the gadget is described as "Wikimedia Foundation's Teahouse project" but as far as I remember it's not a Foundation project. I propose we change it into something that describes what the teahouse actually is for... —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 09:14, 4 April 2015 (UTC) |
|||
:{{ping|TheDJ}} makes sense to me. I made a request on the [[Wikipedia_talk:Teahouse/Host_lounge#Admin_needed:_update_Teahouse_Q.26A_gadget_description|Teahouse hosts forum]]. Thanks, - '''[[User:Jtmorgan|J-Mo]]''' [[User talk:Jtmorgan|<sup style="color:gold">Talk to Me</sup>]] [[Special:EmailUser/Jtmorgan|<sub style="color:purple">Email Me</sub>]] 20:59, 21 April 2015 (UTC) |
|||
:{{done}} ...by Writ Keeper [https://en.wikipedia.org/enwiki/w/index.php?title=MediaWiki:Gadget-teahouse&curid=34876091&diff=657810390&oldid=478684788] - '''[[User:Jtmorgan|J-Mo]]''' [[User talk:Jtmorgan|<sup style="color:gold">Talk to Me</sup>]] [[Special:EmailUser/Jtmorgan|<sub style="color:purple">Email Me</sub>]] 21:35, 21 April 2015 (UTC) |
|||
== mobile-sidebar == |
|||
please add "skin=vector" to this gadget, until the script is fixed to support other skins. peace - [[User:קיפודנחש|קיפודנחש (aka kipod)]] ([[User talk:קיפודנחש|talk]]) 02:37, 16 February 2016 (UTC) |
|||
== type=general == |
|||
Should type=general be added to gadgets that show warnings about it? Such as: "Gadget "ReferenceTooltips" styles loaded twice. Migrate to type=general. See <https://phabricator.wikimedia.org/T42284>." --[[User:Amire80|Amir E. Aharoni]] ([[User talk:Amire80|talk]]) 08:53, 13 October 2016 (UTC) |
|||
:I did it for a few gadgets and they all seem to work. More may be needed—I didn't check every single one. --[[User:Amire80|Amir E. Aharoni]] ([[User talk:Amire80|talk]]) 10:42, 17 February 2017 (UTC) |
|||
::{{ping|Amire80}} Pretty sure the watchlist one should be a type=styles, not general. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 10:48, 17 February 2017 (UTC) |
|||
:::True, thanks. --[[User:Amire80|Amir E. Aharoni]] ([[User talk:Amire80|talk]]) 10:53, 17 February 2017 (UTC) |
|||
== New rules for hidden gadgets == |
|||
{{edit protected|answered=yes}} |
|||
Later this week (December 1st), a change will go into effect on English Wikipedia affecting gadget definitions: "Gadgets will have a new option called "hidden". This means you can register gadgets that can't be turned on or off from the preferences page. Hiding gadgets was already possible by using [rights=hidden]. You should now use [hidden] instead. [rights=hidden] in old gadgets should be changed to [hidden]." [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 21:53, 28 November 2016 (UTC) |
|||
:Thank you, we already have both parameters, suppose we can remove the deprecated parameter after the update. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 00:20, 29 November 2016 (UTC) |
|||
::Could someone remove the obsolete hack "|rights=hidden"? The extension now supports the option natively (see [[phab:T33150]] and [[mw:Special:Diff/2288649]]). [[User:He7d3r|Helder]] 20:41, 27 December 2016 (UTC) |
|||
:::{{done}} — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 14:48, 28 December 2016 (UTC) |
|||
== Add responsiveContent gadget == |
|||
{{editrequest|answered=yes}} |
|||
I request the following edits: |
|||
* Copy [[User:TheDJ/responsiveContent.css]] to [[MediaWiki:Gadget-responsiveContentBase.css]]. (Note, this triggers an error, because the validator does not recognise the valid @supports rule). |
|||
* Copy [[User:TheDJ/responsiveContent.js]] to [[MediaWiki:Gadget-responsiveContent.js]]. |
|||
* Add <code>* responsiveContentBase[ResourceLoader|type=styles|hidden|skins=vector]|responsiveContentBase.css</code> to [[MediaWiki:Gadgets-definition]] in the Browsing section. |
|||
* Add <code>Improved appearance for mobile, narrow and wide screens. Used by Gadget-responsiveContent</code> to [[MediaWiki:Gadget-responsiveContentBase]] |
|||
* Add <code>* responsiveContent[ResourceLoader|type=general|skins=vector|peers=responsiveContentBase]|responsiveContent.js</code> to [[MediaWiki:Gadgets-definition]] in the Appearance section. |
|||
* Add <code><nowiki>Improved appearance for mobile, narrow and wide screens. [[User:TheDJ/responsiveContent|documentation]]</nowiki></code> to [[MediaWiki:Gadget-responsiveContent]] |
|||
This was previously discussed at [[Wikipedia:Village_pump_(technical)/Archive_153#Responsive_content_gadget]]. Identified issues have since been dealt with. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 11:09, 3 March 2017 (UTC) |
|||
:{{ping|TheDJ}} Did these edits. [[User:Jo-Jo Eumerus|Jo-Jo Eumerus]] ([[User talk:Jo-Jo Eumerus|talk]], [[Special:CentralAuth/Jo-Jo Eumerus|contributions]]) 15:59, 3 March 2017 (UTC) |
|||
== ResourceLoader for CSS == |
|||
{{ping|TheDJ}} Marking explicitly as ResourceLoader compatible is not needed for CSS as it’s always considered as compatible; if you really want to mark it as such, please note that it’s <code>ResourceLoader</code> and not <code>ResourceLoader'''<u>s</u>'''</code>. --[[User:Tacsipacsi|Tacsipacsi]] ([[User talk:Tacsipacsi|talk]]) 21:34, 28 March 2017 (UTC) |
|||
{{Edit fully-protected|answered=yes}} |
|||
== Blackskin for Vector == |
|||
Remove vector-2022 from the list of skins supported by responsiveContent in the Appearance section: |
|||
{{editprotected|answered=yes}} |
|||
<pre> |
|||
Blackskin[ResourceLoader|skins=monobook,vector]|Blackskin.css |
|||
</pre> |
|||
— [[User:Dispenser|Dispenser]] 22:04, 11 April 2017 (UTC) |
|||
:Tested and done. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 07:32, 12 April 2017 (UTC) |
|||
<pre>responsiveContent [ResourceLoader |type=general |skins=vector, vector-2022 |peers=responsiveContentBase] |responsiveContent.js</pre> |
|||
==Make WatchlistBase hidden== |
|||
-> |
|||
{{editprotected|answered=y}} |
|||
<pre>responsiveContent [ResourceLoader |type=general |skins=vector |peers=responsiveContentBase] |responsiveContent.js</pre> |
|||
The WatchlistBase gadget should be marked 'hidden' as it's not really a gadget. It provides the base styles for the watchlist needed by other gadgets. It's already marked as 'default' and shouldn't be turned off. [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 17:32, 21 June 2017 (UTC) |
|||
:{{done}} — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 02:07, 22 June 2017 (UTC) |
|||
::{{Reply to|Kaldari|Xaosflux}} This change just broke my preferred watchlist configuration. I had all of the gadgets disabled, to give me the default MW presentation, so I had a consistent appearance across multiple wikis. Hiding the base has broken that for me. [[User:Murph9000|<span style="color:white;background-color:purple;padding:0.1em 0.1em 0.1em 1em;">Murph</span><span style="color:white;background-color:black;padding:0.1em 1em 0.1em 0.1em;">9000</span>]] ([[User talk:Murph9000|talk]]) 17:52, 22 June 2017 (UTC) |
|||
:{{undone}} {{re|Murph9000}} - change has been reverted - can you confirm you are back to normal? — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 18:35, 22 June 2017 (UTC) |
|||
::{{Reply to|Xaosflux}} Yes, I had to go into preferences and disable it again (and interestingly, it wasn't forced on (with the default + hidden config) until I changed something unrelated in prefs). With all watchlist gadgets disabled again, I'm back to my preferred MW default watchlist. Thanks for the quick response! {{Smiley}} [[User:Murph9000|<span style="color:white;background-color:purple;padding:0.1em 0.1em 0.1em 1em;">Murph</span><span style="color:white;background-color:black;padding:0.1em 1em 0.1em 0.1em;">9000</span>]] ([[User talk:Murph9000|talk]]) 18:48, 22 June 2017 (UTC) |
|||
:::{{ping|Xaosflux|Murph9000}} I think what actually needs to happen here is for WatchlistBase to be marked as just hidden, not hidden and default. It is listed as a peer dependency by the other Watchlist gadgets that need it, and if those gadgets are turned off, WatchlistBase should not be loaded. Can we try that out? [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 20:31, 22 June 2017 (UTC) |
|||
::::{{re|Kaldari}} care to try that out on testwiki first? I have not delved far in to this, but am a bit hesitant to just turn off something we have on by default, especially as it is specifically [[MediaWiki:Gadget-WatchlistBase|labeled]] as "do not disable". The most recent editors of this are: {{ping|Krinkle}} and {{ping|MSGJ}} who may have some more input. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 01:57, 23 June 2017 (UTC) |
|||
:::::{{Reply to|Kaldari|Xaosflux}} I don't think (-default, +hidden) would work well with the current implementation of the modules. The base suppresses standard MW functionality, with the other modules adding functionality back or adding new functionality. It seems to have been done that way to give a default level which is minimal (less than MW), then optional additional features. My use case is I'd just like the standard MW functionality without the extra CSS, so I turn all of them off. What's really needed may be support for radio options, selection lists, and generally more advanced configuration in gadget preferences; to give things like {off, reduced, A, B, A+B}. [[User:Murph9000|<span style="color:white;background-color:purple;padding:0.1em 0.1em 0.1em 1em;">Murph</span><span style="color:white;background-color:black;padding:0.1em 1em 0.1em 0.1em;">9000</span>]] ([[User talk:Murph9000|talk]]) 08:10, 23 June 2017 (UTC) |
|||
::::::{{re|Kaldari|Xaosflux|Murph9000}} IIRC, the sordid history is that "the community" asked for watchlist bolding to be enabled, then when that was done "the community" (different people) had a fit and changed [[MediaWiki:Common.css]] to hide it by default for everyone. Eventually that migrated into a default gadget to hide the bolding, with other gadgets to override that gadget. IMO the best solution would be to lose the default gadget and let people who hate it enable the gadget to turn it off. [[User:Anomie|Anomie]][[User talk:Anomie|⚔]] 14:54, 23 June 2017 (UTC) |
|||
Disabled request as there is not yet an actionable request here — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:51, 27 June 2017 (UTC) |
|||
It seems not to be functioning of late, and TBH I don't know why it was enabled to begin with since it wasn't designed for the skin. See also [[phab:T367646]]. |
|||
== ShowJavascriptErrors == |
|||
[[User: |
[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:51, 17 June 2024 (UTC) |
||
:Good point. (it'as autoloaded by mediawiki.util, so you usually it'll be ok, but yeah.. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 20:03, 25 August 2017 (UTC) |
|||
:Also, responsiveContentBase currently in Browsing for both Vector and Timeless probably should be living in the proximity of responsiveContent. Don't really care if that's in Appearance or Browsing. (Why do we have section names that are almost exactly the same in intent?) [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:52, 17 June 2024 (UTC) |
|||
== Beta feature on watchlists and gadgets compatibility == |
|||
:: {{Done}} It looks like when Vector 2022 was new somebody copied all Vector gadgets to Vector 2022, and nobody noticed this since. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 01:05, 18 June 2024 (UTC) |
|||
== Protected edit request on 13 July 2024 == |
|||
Hello |
|||
{{edit fully-protected|MediaWiki:Gadgets-definition|answered=yes}} |
|||
The Global Collaboration team will release soon [[Wikipedia:Village_pump_(technical)#Beta_feature:_advanced_filters_and_more_options_for_Watchlists.2C_starting_September_5|a new presentation and more features on watchlists]]. This Beta feature introduces a new design for some features: |
|||
Please delete the sentence {{tq|Please add an entry for any new gadget to the table at [[Wikipedia:Gadget#Currently installed gadgets]] to make maintenance easier.}} at the top. The referenced table doesn't exist [[Special:Diff/1030149941/1032610278|since 2021]] per [[Wikipedia talk:Gadget/Archive 2#The table of available gadgets|archived discussion]]. —[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 13:15, 13 July 2024 (UTC) |
|||
: {{Done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 17:47, 13 July 2024 (UTC) |
|||
== Removal of EditNoticesOnMobile == |
|||
* as you know, each new change is an item on a list. Unseen changes are displayed in bold with the list bullet filled. Seen changes are in normal typeface and the list bullet is unfilled. |
|||
* it is possible to highlight some particular results ([https://en.wikipedia.org/wiki/Special:RecentChanges?hidebots=1&hidecategorization=1&hideWikibase=1&limit=50&days=7&urlversion=2&highlight=1&userExpLevel__newcomer_color=c2&userExpLevel__learner_color=c1 example on RCs], needs to enable the Beta). The highlight also restyles the list bullet with the chosen color. If two highlighting options match on one change, two bullets, with the two colors will be displayed ([https://en.wikipedia.org/wiki/Special:RecentChanges?hidebots=1&hidecategorization=1&hideWikibase=1&limit=50&days=7&urlversion=2&highlight=1&userExpLevel__newcomer_color=c2&userExpLevel__learner_color=c1&changeType__hidepageedits_color=c5&hidelog=1 example]). |
|||
You can try them on Watchlists [https://en.wikipedia.beta.wmflabs.org on the beta wiki] (don't forget to enable the 'New filters for edit review' Beta there). |
|||
@[[User:Izno|Izno]], I just noticed you removed [[WP:EditNoticesOnMobile|EditNoticesOnMobile]] (ENOM) 10 days ago: [[:Special:Diff/1251928150/prev|MediaWiki:Gadgets-definition (Diff ~1251928150)]]<br style="margin-bottom:0.5em"/>Shortly after the native implementation was rolled out there was a question of [[Wikipedia talk:EditNoticesOnMobile#needed still|whether ENOM was still needed]]. My response was that the native implementation was missing some features, so I didn't think ENOM was obsolete. Assuming the native implementation hasn't been improved since, some shortcomings are:<br/>1. Once dismissed, edit notice can't be read again. (unless the user opens the same page in a private/incognito tab or waits 24 hours) ENOM provides a link on the edit confirmation screen.<br/>2. Will re-show popup every 24 hours no matter what. For ENOM this is 2 weeks or longer. This could result in what I call "notice fatigue" where users may stop reading them.<br/>3. Can't be disabled on a per-page or per-namespace basis (ENOM is disabled in file namespace here IIRC because that notice is more informational than cautionary in nature)<br/>4. [https://phab.wmfusercontent.org/file/data/jpenqy3de2xu4gwqshiu/PHID-FILE-kfuvzp3egiy5b4pwvhga/mf_editnotice_narrow_modal.png Popup is always narrow, no matter how wide your screen is.]<br style="margin-bottom:0.5em"/>I'm more neutral on the matter these days, I have enough worries in my personal life so fewer responsibilities is a pro for me, and one gadget less slightly reduces bandwidth and stuff I suppose. Whether or not we should have an RfC for the removal (as the gadget was installed following an RfC), I'm unsure.<br style="margin-bottom:0.5em"/>Ping @[[User:Xaosflux|Xaosflux]] who helped massively with the deployment of ENOM.<span id="Alexis_Jazz:1730132014285:MediaWiki_talkFTTCLNGadgets-definition" class="FTTCmt"> — <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 16:13, 28 October 2024 (UTC)</span> |
|||
Two existing gadgets can significantly change the user experience we want to propose: |
|||
:If the primary functionality is now being supported upstream, that does seem preferable - as there would be active maintainers. Was any usage data gathered prior to decom? — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 16:38, 28 October 2024 (UTC) |
|||
* [[MediaWiki:Gadget-WatchlistGreenIndicators.css|WatchlistGreenIndicators]] (displays green collapsible arrows and green bullets for changed pages in your watchlist, page history and recent changes — I include the Mono version in it) is enabled by default. Unseen changes have a green dot replacing the usual bullet. This gadget is not compatible with the contextual bullets we want to provide. Our bullets have the same purpose as the green dot and can replace it. |
|||
:I think there is room for opinion here without supporting a fork. Some of your suggested shortcomings look more like opinion than not. Some need improvement upstream rather than continuing to maintain a gadget locally that 'forks' the now-native functionality. On the specific points: |
|||
* [[MediaWiki:Gadget-WatchlistChangesBold.css|WatchlistChangesBold]] (displays pages on your watchlist that have changed since your last visit in bold) is not enabled by default. When activated, this gadget removes the bold experience we want to provide, which may complicate the experience so as the feedback process. |
|||
:# I filed [[phab:T378902]] for this suggestion. |
|||
:# That we have any limit here is different than desktop contexts, either WTE or VE. It shouldn't be: we should shoot for uniformity here as best we can and encourage upstream to think about ways this can be improved in both locations. In which case, 24 hours is much closer to the native state of things than is 2 weeks. |
|||
:# I don't think this is necessary in any system. If we have "informational" edit notices, I think those should just go away in toto. :) |
|||
:# This [[phab:T377611|has an upstream task since a week ago]]. |
|||
:@[[User:Xaosflux|Xaosflux]], "usage data" can not be gathered for default gadgets. Theoretically the user experience will have simply changed based on the noted differences between the two. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 16:46, 3 November 2024 (UTC) |
|||
::I don't have a strong worry if someone wants to keep this as an OPT-IN alternative gadget, but agree we shouldn't compete with the default anymore. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 18:18, 6 November 2024 (UTC) |
|||
== Convert [[MediaWiki:Gadget-switcher.js]] to a template gadget == |
|||
Beta's goal is to have a test phase, that will allow users to provide feedback on everything we propose. We want to provide the same experience on all wikis. To achieve this, we want to make the two gadgets inactive ''only on the Beta Watchlist'' (no visible changes for non-Beta testers). We can do those changes, but we want to have your opinion about them first. |
|||
This default gadget only needs to be loaded on pages having an element with <code>switcher-container</code> class, so is a textbook fit to be a template gadget. From a quick search, looks like [[Module:Mapframe]], [[Module:Location map]] and [[Module:Random slideshow]] will need edits to insert a category which is specified in the gadget definition. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 18:54, 20 December 2024 (UTC) |
|||
The Beta release is on the 5<sup>th</sup>, so we will take a decision at the beginning of next week, based on your actionable and consistent with the project opinions. |
|||
:Seems fine. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 19:51, 20 December 2024 (UTC) |
|||
:[[mw:Template gadgets]] –[[User:Novem Linguae|<span style="color:blue">'''Novem Linguae'''</span>]] <small>([[User talk:Novem Linguae|talk]])</small> 21:22, 20 December 2024 (UTC) |
|||
:{{ping|Trizek (WMF)}} To correct this slightly, we indeed want to show the bold to users of the beta feature. The bold is removed by [[MediaWiki:Gadget-WatchlistBase.css]] currently. We would like to change this so users of the beta feature get bold by default. [[User:Mattflaschen-WMF|Mattflaschen-WMF]] ([[User talk:Mattflaschen-WMF|talk]]) 18:18, 1 September 2017 (UTC) |
|||
:We are talking about something invoked on millions of pages here though correct? I'm certainly a fan of not using default loads when we don't need to - but this seems a bit heavy. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 21:46, 20 December 2024 (UTC) |
|||
::We've had some hellish response by editors the last time we messed with those things, and the stack of specificity overrides that various gadgets have is HUGE in this area. Maybe we can do something like this: [[User:TheDJ/deleteWatchlistModifications.js]] ? It's not ideal, but it's prolly the only way to make sure that it won't affect users outside of the beta. —[[User:TheDJ|Th<span style="color: green">e</span>DJ]] ([[User talk:TheDJ|talk]] • [[Special:Contributions/TheDJ|contribs]]) 20:21, 1 September 2017 (UTC) |
|||
::Heavy as in? – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 07:59, 21 December 2024 (UTC) |
|||
:::Presumably the million or two rows added to catlinks. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:51, 21 December 2024 (UTC) |
|||
::::That and depending on category inclusion when the category is so heavily populated, may have unreliable results. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 17:21, 22 December 2024 (UTC) |
|||
:::::Only unreliable part is the initial population of the category which can take some time due to parser cache. We already use template gadget for WikiMiniAtlas which has a million+ pages and didn't see any issues, due to a 2-stage rollout (adding the template gadget first, then removing the common.js load a month later). The same can be done here. – [[User:SD0001|<span style="font-weight: bold; color: #C30">SD0001</span>]] ([[User talk:SD0001|talk]]) 18:19, 26 December 2024 (UTC) |
|||
::::::Difference there, that is basically a single-purpose gadget - I suspect this one may continue to be reused for more applications as a general utility. This isn't a hard oppose, more of a caution that we could be setting ourselves up for future problems. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 19:35, 26 December 2024 (UTC) |
Latest revision as of 19:35, 26 December 2024
MediaWiki:Gadgets-definition provides the content of the Gadgets tab of Special:Preferences (also visible at Special:Gadgets). This interface message or skin may also be documented on MediaWiki.org or translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by administrators and interface editors. To request a change to the page, add {{edit fully-protected}} to this page, followed by a description of your request. Consider announcing discussions you add here at Wikipedia:Village pump (technical) to bring more people to the discussion. |
Gadgets-definition basic example * exlinks [ResourceLoader |dependencies=mediawiki.util] |exlinks.js Loads the DEFINITION/identifier in preferences from MediaWiki:Gadget-exlinks and then loads the SCRIPT from MediaWiki:Gadget-exlinks.js once the module "mediawiki.util" is available. |
|
||
This page has archives. Sections older than 30 days may be automatically archived by Lowercase sigmabot III when more than 4 sections are present. |
Edit request 17 June 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Remove vector-2022 from the list of skins supported by responsiveContent in the Appearance section:
responsiveContent [ResourceLoader |type=general |skins=vector, vector-2022 |peers=responsiveContentBase] |responsiveContent.js
->
responsiveContent [ResourceLoader |type=general |skins=vector |peers=responsiveContentBase] |responsiveContent.js
It seems not to be functioning of late, and TBH I don't know why it was enabled to begin with since it wasn't designed for the skin. See also phab:T367646.
Izno (talk) 15:51, 17 June 2024 (UTC)
- Also, responsiveContentBase currently in Browsing for both Vector and Timeless probably should be living in the proximity of responsiveContent. Don't really care if that's in Appearance or Browsing. (Why do we have section names that are almost exactly the same in intent?) Izno (talk) 15:52, 17 June 2024 (UTC)
- Done It looks like when Vector 2022 was new somebody copied all Vector gadgets to Vector 2022, and nobody noticed this since. * Pppery * it has begun... 01:05, 18 June 2024 (UTC)
Protected edit request on 13 July 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please delete the sentence Please add an entry for any new gadget to the table at Wikipedia:Gadget#Currently installed gadgets to make maintenance easier.
at the top. The referenced table doesn't exist since 2021 per archived discussion. —andrybak (talk) 13:15, 13 July 2024 (UTC)
Removal of EditNoticesOnMobile
[edit]@Izno, I just noticed you removed EditNoticesOnMobile (ENOM) 10 days ago: MediaWiki:Gadgets-definition (Diff ~1251928150)
Shortly after the native implementation was rolled out there was a question of whether ENOM was still needed. My response was that the native implementation was missing some features, so I didn't think ENOM was obsolete. Assuming the native implementation hasn't been improved since, some shortcomings are:
1. Once dismissed, edit notice can't be read again. (unless the user opens the same page in a private/incognito tab or waits 24 hours) ENOM provides a link on the edit confirmation screen.
2. Will re-show popup every 24 hours no matter what. For ENOM this is 2 weeks or longer. This could result in what I call "notice fatigue" where users may stop reading them.
3. Can't be disabled on a per-page or per-namespace basis (ENOM is disabled in file namespace here IIRC because that notice is more informational than cautionary in nature)
4. Popup is always narrow, no matter how wide your screen is.
I'm more neutral on the matter these days, I have enough worries in my personal life so fewer responsibilities is a pro for me, and one gadget less slightly reduces bandwidth and stuff I suppose. Whether or not we should have an RfC for the removal (as the gadget was installed following an RfC), I'm unsure.
Ping @Xaosflux who helped massively with the deployment of ENOM. — Alexis Jazz (talk or ping me) 16:13, 28 October 2024 (UTC)
- If the primary functionality is now being supported upstream, that does seem preferable - as there would be active maintainers. Was any usage data gathered prior to decom? — xaosflux Talk 16:38, 28 October 2024 (UTC)
- I think there is room for opinion here without supporting a fork. Some of your suggested shortcomings look more like opinion than not. Some need improvement upstream rather than continuing to maintain a gadget locally that 'forks' the now-native functionality. On the specific points:
- I filed phab:T378902 for this suggestion.
- That we have any limit here is different than desktop contexts, either WTE or VE. It shouldn't be: we should shoot for uniformity here as best we can and encourage upstream to think about ways this can be improved in both locations. In which case, 24 hours is much closer to the native state of things than is 2 weeks.
- I don't think this is necessary in any system. If we have "informational" edit notices, I think those should just go away in toto. :)
- This has an upstream task since a week ago.
- @Xaosflux, "usage data" can not be gathered for default gadgets. Theoretically the user experience will have simply changed based on the noted differences between the two. Izno (talk) 16:46, 3 November 2024 (UTC)
- I don't have a strong worry if someone wants to keep this as an OPT-IN alternative gadget, but agree we shouldn't compete with the default anymore. — xaosflux Talk 18:18, 6 November 2024 (UTC)
Convert MediaWiki:Gadget-switcher.js to a template gadget
[edit]This default gadget only needs to be loaded on pages having an element with switcher-container
class, so is a textbook fit to be a template gadget. From a quick search, looks like Module:Mapframe, Module:Location map and Module:Random slideshow will need edits to insert a category which is specified in the gadget definition. – SD0001 (talk) 18:54, 20 December 2024 (UTC)
- Seems fine. Izno (talk) 19:51, 20 December 2024 (UTC)
- mw:Template gadgets –Novem Linguae (talk) 21:22, 20 December 2024 (UTC)
- We are talking about something invoked on millions of pages here though correct? I'm certainly a fan of not using default loads when we don't need to - but this seems a bit heavy. — xaosflux Talk 21:46, 20 December 2024 (UTC)
- Heavy as in? – SD0001 (talk) 07:59, 21 December 2024 (UTC)
- Presumably the million or two rows added to catlinks. Izno (talk) 17:51, 21 December 2024 (UTC)
- That and depending on category inclusion when the category is so heavily populated, may have unreliable results. — xaosflux Talk 17:21, 22 December 2024 (UTC)
- Only unreliable part is the initial population of the category which can take some time due to parser cache. We already use template gadget for WikiMiniAtlas which has a million+ pages and didn't see any issues, due to a 2-stage rollout (adding the template gadget first, then removing the common.js load a month later). The same can be done here. – SD0001 (talk) 18:19, 26 December 2024 (UTC)
- Difference there, that is basically a single-purpose gadget - I suspect this one may continue to be reused for more applications as a general utility. This isn't a hard oppose, more of a caution that we could be setting ourselves up for future problems. — xaosflux Talk 19:35, 26 December 2024 (UTC)
- Only unreliable part is the initial population of the category which can take some time due to parser cache. We already use template gadget for WikiMiniAtlas which has a million+ pages and didn't see any issues, due to a 2-stage rollout (adding the template gadget first, then removing the common.js load a month later). The same can be done here. – SD0001 (talk) 18:19, 26 December 2024 (UTC)
- That and depending on category inclusion when the category is so heavily populated, may have unreliable results. — xaosflux Talk 17:21, 22 December 2024 (UTC)
- Presumably the million or two rows added to catlinks. Izno (talk) 17:51, 21 December 2024 (UTC)
- Heavy as in? – SD0001 (talk) 07:59, 21 December 2024 (UTC)