Global gadgets
Appearance
(Redirected from Global gadget)
Global gadgets are gadgets that are designed and ready to be used in any wiki (Wikimedia or not) and in any language. It doesn't mean that they are currently available in all wikis, but rather that they can be made available with little difficulty.
Examples
[edit]- MiniEdit enables quick and simple edits without leaving the page
- OWIDPopup embeds interactive charts from Our World in Data
- Vivarium produces an interactive instance of Conway's Game of Life
- Formicarium produces an interactive instance of Langton's ant
- ExcerptTree enables navigation of excerpt trees
- DownloadPDF enables printing or downloading a specified set of pages
- InlineSearch allows to search the wiki and display the results in a wiki page
Best practices
[edit]- Host the global gadget code (JavaScript and CSS) at MediaWiki.org, by defining a hidden gadget with the "Global-" prefix.
- In the wikis where the gadget will be enabled, define a local gadget that loads the global code and sets any local configuration.
- Example: w:es:MediaWiki:Gadget-MiniEdit.js
- Write some documentation at MediaWiki.org. Wikis that enable the gadget locally may produce their own local documentation.
- Example: MiniEdit (global documentation) and w:es:Wikipedia:MiniEdit (local documentation)
See also
[edit]- Template gadgets - Gadgets that implement or extend template functionality
- Global modules - Lua modules designed and ready to be used in any wiki