body.skin-vector-2022 .mw-parser-output .skiptotalk,body.mw-mf .mw-parser-output .skiptotalk{display:none}.mw-parser-output .skiptotalk a{display:block;text-align:center;font-style:italic;line-height:1.9}.mw-parser-output .skiptotalk a::before,.mw-parser-output .skiptotalk a::after{content:"↓";font-size:larger;line-height:1.6;font-style:normal}.mw-parser-output .skiptotalk a::before{float:left}.mw-parser-output .skiptotalk a::after{float:right}Skip to table of contents
For information about gadgets, see Wikipedia:Gadget; for the addition of user scripts as gadgets, see Wikipedia:Gadget proposals.

Edit request 8 September 2023[edit]

Description of suggested change: can skins=vector,vector-2022,monobook,timeless,modern,cologneblue be added to dropdown-menus (aka MoreMenu)? It just throws this error when loaded: "[MoreMenu] 'minerva' is not a supported skin. See https://w.wiki/9Se for documentation."Alexis Jazz (talk or ping me) 01:08, 8 September 2023 (UTC)Reply[reply]

 Done Izno (talk) 02:09, 8 September 2023 (UTC)Reply[reply]

Protected edit request on 21 October 2023[edit]

Please make the subtle update marker work in all namespaces, not just in special pages. NW1223<Howl at meMy hunts> 15:22, 21 October 2023 (UTC)Reply[reply]

 Done See also WP:VPT#updated since your last visit Izno (talk) 16:32, 21 October 2023 (UTC)Reply[reply]

Suggesting a gadget TOC[edit]

At MediaWiki talk:Gadgets-definition/Archive 1#Add table of contents? I suggested to add a TOC to Special:Preferences#mw-prefsection-gadgets. It didn't appear practical at the time but MediaWiki makes id's at the sections now. I suggest to add this TOC to MediaWiki:Gadgets-prefstext which is displayed at top of the gadgets tab:

With a TOC like this we may be less concerned about "cluttering" the page with useful gadgets.

A version with Special:Preferences added to the links so it works here for testing:

It works for me even though it also has to switch tab. The links need updating if we change sections at MediaWiki:Gadgets-definition but that's rare. I chose a single-line TOC but it could also be multi-line. Similar code is used in MediaWiki:Pageinfo-header which adds a TOC to page information like https://en.wikipedia.org/w/index.php?title=Example&uselang=en&action=info. PrimeHunter (talk) 17:02, 25 December 2023 (UTC)Reply[reply]

@PrimeHunter I must be confused, this is about displaying a table of contents on the page MediaWiki:Gadgets-definition correct? That page already has a TOC. — xaosflux Talk 17:17, 25 December 2023 (UTC)Reply[reply]
@Xaosflux: No, this is about displaying a TOC at Special:Preferences#mw-prefsection-gadgets. Special pages don't have talk pages so I made the suggestion here. PrimeHunter (talk) 17:23, 25 December 2023 (UTC)Reply[reply]
I have filed phab:T217606 already for this. Izno (talk) 17:27, 25 December 2023 (UTC)Reply[reply]
Yes, in 2019 with no signs it's happening. The other tabs are much shorter and most wikis probably also have a short gadgets tab. I doubt MediaWiki will ever add it. If it does, we can just remove our own version. PrimeHunter (talk) 17:38, 25 December 2023 (UTC)Reply[reply]
Shrug. I don't think it's worth doing. The list of gadgets is not so long as to be totally unwieldy. Izno (talk) 18:14, 25 December 2023 (UTC)Reply[reply]
One related thing to note, the pref searcher works with the gadget desciptors now. — xaosflux Talk 18:34, 25 December 2023 (UTC)Reply[reply]
I don't think that we need a phab ticket to amend MediaWiki:Gadgets-prefstext. --Redrose64 🦌 (talk) 18:37, 25 December 2023 (UTC)Reply[reply]
We do not, which is the mechanism PrimeHunter is proposing to insert the table of contents. Izno (talk) 19:26, 25 December 2023 (UTC)Reply[reply]
Adding to MediaWiki:Gadgets-prefstext seems fine enough to just try, put it under the big warning please. — xaosflux Talk 20:10, 25 December 2023 (UTC)Reply[reply]

Adding validations[edit]

Add ((#invoke:Validate gadgets|validate)) somewhere near the top.

Did you know that gadget names cannot start with a digit, or that requiresES6 flag cannot be used on a default gadget, or that a gadget name can't be more than 244 bytes, or that peer gadgets must be styles-only gadgets?

These are just a few of the checks done by Module:Validate gadgets to help avoid malformed gadget configurations. It also works on previews. (If there are no warnings, the "no issues found" message is shown only during preview.)

A demo is at testwiki:MediaWiki:Gadgets-definition (where the issues are so many that it had to be put in a collapsed box). – SD0001 (talk) 14:54, 4 January 2024 (UTC)Reply[reply]

Added. Writ Keeper  16:21, 4 January 2024 (UTC)Reply[reply]
Very cool module. Galobtter (talk) 01:12, 5 January 2024 (UTC)Reply[reply]