PHP extension to allow users to enable JS-based, user-provided gadgets from their preferences page (Homepage). This is not meant for reporting bugs or problems with local gadgets themselves.
Details
Sun, Nov 17
Already supported.
Sat, Nov 16
Wed, Nov 13
Change #1088874 merged by jenkins-bot:
[mediawiki/extensions/Gadgets@master] Show if gadget is hidden
Sun, Nov 10
Change #1088874 had a related patch set uploaded (by Pppery; author: Pppery):
[mediawiki/extensions/Gadgets@master] Show if gadget is hidden
Tue, Nov 5
Fri, Nov 1
This issue has been already discussed thorougly in the task linked by Bugreporter.
Change #1085310 merged by jenkins-bot:
[mediawiki/extensions/Gadgets@master] Fix safe mode warning message
Change #1085311 merged by jenkins-bot:
[mediawiki/core@master] preferences: Fix safe mode warning message
Thu, Oct 31
Change #1085311 had a related patch set uploaded (by Ammarpad; author: Ammarpad):
[mediawiki/core@master] preferences: Fix safe mode warning message
Change #1085310 had a related patch set uploaded (by Ammarpad; author: Ammarpad):
[mediawiki/extensions/Gadgets@master] Fix safe mode warning message
Gadgets also shows similar message under Gadgets preference tab and it has the same problem
Sat, Oct 26
Hi, my suggestion for naming conventions is:
Oct 10 2024
the category existence check has already happened on the first server loading of the edit page which is the only load for live preview
The parse API should return ext.gadget.Calculator as one of the modules.
I believe the problem is the module presence (to be eligible for return) is dependent on category existence, but the category existence check has already happened on the first server loading of the edit page which is the only load for live preview. You can request the parsing API to return the categories of the page blindly, but then you really have to parse that info (maybe in MediaWiki-extensions-Gadgets) and dynamically load the module if it qualifies.
The only benefit with supporting templates is that using them in interface messages won't weirdly cause a category to show up at the bottom in unexpected contexts like special pages. It also doesn't need a row in categorylinks, sure, but I suspect communities would toss in a category anyway for tracking.
Oct 4 2024
@Tacsipacsi Regarding the sandboxes of templates with template gadgets, when I work in such sandboxes, I generally don't want to load the same gadget as the main template, but a modified version of the gadget, which I usually store in a subpage of my userpage and load from my common.js
Sure, other approaches may be (marginally) better, but realistically speaking, will take years to happen. This approach can be implemented now and wouldn't block or hinder the development of better alternatives. If anything, it would give it some extra push by helping the development of actual tools to be loaded by said alternatives.
Yup, <templatescripts> (akin to <templatestyles>) seems much cleaner.
I still think T241524: Parser function for loading gadgets is the way to go, not this. If a template with a template gadget has a sandbox, there are two options:
Hi! I just submitted 1077955 to add support for templates in the gadget definitions. After the merge of 1005092, me and a few others developed several JavaScript-enhanced templates (see template gadgets and global gadgets). However, although loading gadgets via categories is technically enough, it leads to the creation of many obscure and otherwise useless categories (see every subcategory here and here). This is unnecessary and cumbersome, it would be better if we could load gadgets based on the presence of specific templates, which is generally the intended functionality anyway.
Change #1077955 had a related patch set uploaded (by Sophivorus; author: Sophivorus):
[mediawiki/extensions/Gadgets@master] Add support for templates in definitions
Change #1077955 had a related patch set uploaded (by Sophivorus; author: Sophivorus):
[mediawiki/extensions/Gadgets@master] Add support for templates in definitions
Oct 2 2024
Sep 21 2024
Sep 12 2024
Sep 10 2024
Sep 9 2024
Sep 7 2024
Sep 6 2024
Sep 2 2024
Just mentioning that soon TLSv1.2 will be phased out and given https://caniuse.com/?search=tls%201.3 vs https://caniuse.com/?search=await users who can't use async/await won't be able to connect at all so the whole discussion here about compatibility and impact is moot.
Aug 30 2024
I wanted to note T373711: Add support for Scribunto, JavaScript, CSS, JSON and Vue to CodeMirror 6 which I hope to have tackled by MW 1.44, if not sooner. This is not a proposal to replace CodeEditor/Ace (yet), but CodeMirror does already has support for Vue. So I guess keep that in mind in your decision making.