Jump to content

MediaWiki talk:Gadgets-definition

Page contents not supported in other languages.
Add topic
From Wikisource

Gadget usage

[edit]

data 20180520

[edit]
GadgetNumber of usersActive users
charinsertDefaultDefault
collapsibleTablesDefaultDefault
dynamicLayoutOverridesDefaultDefault
Easy_LSTDefaultDefault
PurgeTabDefaultDefault
SiteDefaultDefault
WSexportDefaultDefault
TemplatePreloader71735
HotCat65237
UTCLiveClock43829
popups43720
edittop36716
ocr36752
RegexMenuFramework36020
HideFundraisingNotice32825
refToolbar28711
dictLookup2858
addsection-plus26610
mark-proofread21121
Fill_Index20629
specialchars20110
BookMaker18310
ContrastReducer17110
robot17122
userMessages1696
NopInserter15321
WhatLeavesHere1507
pr_test_layout1355
altindex1316
markblocked1236
ShowMessageNames1165
pilcrowMarkers10915
DefaultSummaries1028
Font-Awesome1016
collapseElements814
DebugMode764
PopCategoryDisplay571
CollapsibleNav564
BugStatusUpdate492
CurIDLink352
FlatSidebar322
CleanDeleteReasons152
dynamicNavBars[1]90
massdelete86
  1. 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)Reply

Krinkle has removed this and an equally unused dependency on jquery.tabIndex. --Xover (talk) 06:56, 26 October 2019 (UTC)Reply

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)Reply

@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. Inductiveloadtalk/contribs 21:40, 19 November 2020 (UTC)Reply

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)Reply

@Alien333: Both are already default. Xover (talk) 10:11, 5 September 2024 (UTC)Reply
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)Reply
@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)Reply
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)Reply
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)Reply