MediaWiki talk:Gadgets-definition
Add topicGadget usage
[edit]data 20180520
[edit]Gadget | Number of users | Active users |
---|---|---|
charinsert | Default | Default |
collapsibleTables | Default | Default |
dynamicLayoutOverrides | Default | Default |
Easy_LST | Default | Default |
PurgeTab | Default | Default |
Site | Default | Default |
WSexport | Default | Default |
TemplatePreloader | 717 | 35 |
HotCat | 652 | 37 |
UTCLiveClock | 438 | 29 |
popups | 437 | 20 |
edittop | 367 | 16 |
ocr | 367 | 52 |
RegexMenuFramework | 360 | 20 |
HideFundraisingNotice | 328 | 25 |
refToolbar | 287 | 11 |
dictLookup | 285 | 8 |
addsection-plus | 266 | 10 |
mark-proofread | 211 | 21 |
Fill_Index | 206 | 29 |
specialchars | 201 | 10 |
BookMaker | 183 | 10 |
ContrastReducer | 171 | 10 |
robot | 171 | 22 |
userMessages | 169 | 6 |
NopInserter | 153 | 21 |
WhatLeavesHere | 150 | 7 |
pr_test_layout | 135 | 5 |
altindex | 131 | 6 |
markblocked | 123 | 6 |
ShowMessageNames | 116 | 5 |
pilcrowMarkers | 109 | 15 |
DefaultSummaries | 102 | 8 |
Font-Awesome | 101 | 6 |
collapseElements | 81 | 4 |
DebugMode | 76 | 4 |
PopCategoryDisplay | 57 | 1 |
CollapsibleNav | 56 | 4 |
BugStatusUpdate | 49 | 2 |
CurIDLink | 35 | 2 |
FlatSidebar | 32 | 2 |
CleanDeleteReasons | 15 | 2 |
9 | 0 | |
massdelete | 8 | 6 |
- ↑ removed 20180520
Remove unneeded dependencies from FlatSidebar and CollapsibleNav
[edit]{{edit protected}} The gadgets definition currently lists…
- FlatSidebar[ResourceLoader|top|dependencies=jquery.cookie,jquery.tabIndex,jquery.throttle-debounce|skins=vector]|FlatSidebar.js|FlatSidebar.css
- CollapsibleNav[ResourceLoader|top|dependencies=jquery.cookie,jquery.tabIndex,jquery.throttle-debounce|skins=vector|type=general]|CollapsibleNav.js|CollapsibleNav.css
…(my emphasis) as dependencies, but neither gadget actually uses the jquery.throttle-debounce library (none of them call either of $.debounce()
or $.throttle()
), so the dependency is incorrect.
In addition to being wasteful and contributing to poor performance for all users, jquery.throttle-debounce is in the process of being deprecated (see phab:T213426) with the net result that it is generating a deprecation warning message in the javascript console. The dependency (the bolded bit) should therefore be removed. --Xover (talk) 08:08, 23 October 2019 (UTC)
- Krinkle has removed this and an equally unused dependency on jquery.tabIndex. --Xover (talk) 06:56, 26 October 2019 (UTC)
JavaScript enabled in the Site gadget
[edit]@Inductiveload: Are you aware that enabling JS for the Site gadget also disables it completely for users without JavaScript enabled (e.g. users of ancient browsers and security-minded users who explicitly disable JS), and delays the styles’ loading even for users with JS enabled? I don’t know what this gadget does, but for a gadget named “Site” I assume that the CSS is not only for content created by the JS. Please consider using a peer gadget to keep the styles work as before. —Tacsipacsi (talk) 21:26, 19 November 2020 (UTC)
- @Tacsipacsi: I was not aware of that. I've made it a peer gadget called Site-styles. It seems to work for me with JS off, can you please check it? Thank you for the heads up, much appreciated.
- FYI, the Site gadget now also contains the JS which produces the page footers, which has just been moved out of Mediawiki:Common.js. Inductiveload—talk/contribs 21:40, 19 November 2020 (UTC)
Marking as default the gadgets that recent(ish)ly became so
[edit]{{editprotected}}
Namely adding |default to MoreMenu and notext. — Alien333 ( what I did
why I did it wrong ) 22:28, 4 September 2024 (UTC)
- @Alien333: Both are already default. Xover (talk) 10:11, 5 September 2024 (UTC)
- Well then this is the wrong page to make this request: at preferences, they're not shown as default. — Alien333 ( what I did
why I did it wrong ) 17:15, 5 September 2024 (UTC)- @Alien333: Hmm. They were missing the (manually added) "(D)" tag in the description (fixed now). Was that what you meant? So far as I know there are no other indications that a given Gadget is default or not in #prefsection-gadgets. Xover (talk) 18:19, 5 September 2024 (UTC)
- That was it, yes. Given it's about the only place most users get to know whether it's default, I thought it good to update it. — Alien333 ( what I did
why I did it wrong ) 18:46, 5 September 2024 (UTC)- Actually, there are two special pages, both linked from the header of the preferences page, which tell the default status: Special:Gadgets says “Enabled for everyone by default” for default gadgets, and Special:GadgetUsage reports Default instead of the usage count. Of course, it’s pretty confusing if some default gadgets have this (D) while others not; but it’s not the only way to find out whether a gadget is default. —Tacsipacsi (talk) 23:29, 5 September 2024 (UTC)
- That was it, yes. Given it's about the only place most users get to know whether it's default, I thought it good to update it. — Alien333 ( what I did
- @Alien333: Hmm. They were missing the (manually added) "(D)" tag in the description (fixed now). Was that what you meant? So far as I know there are no other indications that a given Gadget is default or not in #prefsection-gadgets. Xover (talk) 18:19, 5 September 2024 (UTC)
- Well then this is the wrong page to make this request: at preferences, they're not shown as default. — Alien333 ( what I did