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. |
Key MediaWiki interface messages | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Edit window instructions | |||||||||||||||||||||
Search-related | |||||||||||||||||||||
Article-related | |||||||||||||||||||||
Edit notices | |||||||||||||||||||||
"Can't edit" notices | |||||||||||||||||||||
Admin action messages | |||||||||||||||||||||
Email-related | |||||||||||||||||||||
Preferences | |||||||||||||||||||||
Community notification |
| ||||||||||||||||||||
| |||||||||||||||||||||
For messages relating to Special: pages, see the list at mw:Manual:Interface/Special pages summary |
How the links work
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 edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please make the subtle update marker work in all namespaces, not just in special pages. NW1223<Howl at me•My hunts> 15:22, 21 October 2023 (UTC)
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)
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)