ICANNWiki:Documentation: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 189: Line 189:
===Gadgets===
===Gadgets===
Gadgets are powerful self-contained JS actions that are loaded ahead of [[MediaWiki:Common.js]], being loaded almost in tandem with the DOM. They need to be declared individually in [[MediaWiki:Gadgets-definition]], and the most useful arguments to use with them are "default" (which effectively turns them into a ResourceLoader) and "hidden" (cannot be disabled by users).
Gadgets are powerful self-contained JS actions that are loaded ahead of [[MediaWiki:Common.js]], being loaded almost in tandem with the DOM. They need to be declared individually in [[MediaWiki:Gadgets-definition]], and the most useful arguments to use with them are "default" (which effectively turns them into a ResourceLoader) and "hidden" (cannot be disabled by users).
* List: [[Special:Gadgets]]
* '''List''': [[Special:Gadgets]]
* Usage: [[Special:GadgetUsage]]
* '''Usage''': [[Special:GadgetUsage]]


==List of Lua modules==
==List of Lua modules==