Gadgets: Difference between revisions
m added Category:JavaScript using HotCat |
Add calculator gadget examples |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Gadgets are enhancements to MediaWiki, made of javascript and CSS; but not written as full-blown extensions. | {{Feature | ||
|image=Wikivoyage Interface administrator icon.png | |||
|imgdesc=powerful UX tools | |||
}} | |||
{{#set:feature description = Gadgets are enhancements to MediaWiki, made of javascript and CSS; but not written as full-blown extensions. }} | |||
{{#set:feature notes = One of the best is the wikEd gadget implementation for the wikEd editor }} | |||
{{#set:feature tests = }} | |||
{{#set:feature examples = }} | |||
This is a hand-editted '''information''' page. Be sure to check out the [[Special:Gadgets]] page for system info and the interface defintion page [[MediaWiki:Gadgets-definition]]. | |||
Gadgets are enhancements to MediaWiki, made of javascript and CSS; but not written as full-blown extensions. | |||
{| style="margin: 2em; float: left; border-collapse: separate; border-spacing: 0;" | |||
|- style="background: #d4d0cc;" | |||
| style="padding: 0 0.5em 0 0.8em; border-top: white 1px solid; border-right: black 1px solid; border-bottom: black 1px solid; border-left: white 1px solid;" | <div style="position: relative; top: -0.5em;">[[Image:WikEd logo64x64.gif|64px]]</div> | |||
| style="padding: 0 1.5em 0em 1.5em; border-top: white 1px solid; border-right: black 1px solid; border-bottom: black 1px solid; border-left: white 1px solid;" | | |||
[https://en.wikipedia.org/wiki/User:Cacycle/wikEd '''wikEd''' Homepage] | |||
[https://en.wikipedia.org/wiki/User_talk:Cacycle/wikEd Discussion] | |||
[https://en.wikipedia.org/wiki/User:Cacycle/wikEd_international Translations] | |||
'''[https://en.wikipedia.org/wiki/User:Cacycle/wikEd_help Help]''' | |||
[https://en.wikipedia.org/wiki/User:Cacycle/wikEd.js Code] | |||
|} | |||
This wiki has several Gadgets that you can use. | This wiki has several Gadgets that you can use. | ||
# [[wp:User:Cacycle/wikEd|User:Cacycle/wikEd]] | # [[wp:User:Cacycle/wikEd|User:Cacycle/wikEd]] | ||
# [[mw:Snippets/Toggle_between_dropdown_menus_and_tabs|Snippets/Toggle_between_dropdown_menus_and_tabs]] MenuTabsToggle | # [[mw:Snippets/Toggle_between_dropdown_menus_and_tabs|Snippets/Toggle_between_dropdown_menus_and_tabs]] MenuTabsToggle | ||
# [[wp:Wikipedia:HotCat|Wikipedia:HotCat]] | # [[wp:Wikipedia:HotCat|Wikipedia:HotCat]] | ||
Line 19: | Line 41: | ||
# Import the gadget to the new wiki that wants the gadget feature. | # Import the gadget to the new wiki that wants the gadget feature. | ||
## E.g. <tt>https://freephile.org/wiki/index.php/Special:Import</tt> | ## E.g. <tt>https://freephile.org/wiki/index.php/Special:Import</tt> | ||
# Add the gadget to the gadgets-definition page | # Add the gadget to the [[MediaWiki:Gadgets-definition|gadgets-definition page]] | ||
## E.g. <tt>https://freephile.org/wiki | ## E.g. <tt>https://freephile.org/wiki/MediaWiki:Gadgets-definition</tt> | ||
== Examples == | |||
The '''calculator''' gadget ([https://en.wikipedia.org/wiki/MediaWiki:Gadget-calculator.js implemented in javascript] and exposed via a [https://en.wikipedia.org/wiki/Template:Calculator template]) is versatile and powerful - including many math functions. | |||
See [https://en.wikipedia.org/wiki/Template:Calculator/doc/examples examples in the docs] and Bryan Damon's | |||
[https://en.wikipedia.org/wiki/User:Bryandamon/Calculator_demos Calculator demos] that riff on Brian Wolff's (author) demos - which can be found via the [https://en.wikipedia.org/wiki/Category:Pages_using_gadget_Calculator category page]. {{@todo}} implement the gadget on this wiki. | |||
[[Category:Wiki]] | [[Category:Wiki]] | ||
[[Category:JavaScript]] | [[Category:JavaScript]] |
Latest revision as of 09:37, 30 May 2025
Gadgets | |
---|---|
![]() | |
Image shows: | powerful UX tools |
Summary | |
Title: | Gadgets |
Description: | Gadgets are enhancements to MediaWiki, made of javascript and CSS; but not written as full-blown extensions. |
More | |
Notes: | One of the best is the wikEd gadget implementation for the wikEd editor |
This is a hand-editted information page. Be sure to check out the Special:Gadgets page for system info and the interface defintion page MediaWiki:Gadgets-definition.
Gadgets are enhancements to MediaWiki, made of javascript and CSS; but not written as full-blown extensions.
This wiki has several Gadgets that you can use.
There are a ton of gadgets used on the WikiPedia site: https://meta.wikimedia.org/wiki/Gadgets/wikipedia
There are even gadgets for the Visual Editor
Users[edit]
Visit your preferences (Gadgets tab) to modify which gadgets are turned on or off.
Admins[edit]
- Export the gadget from the wiki that has the gadget.
- E.g.https://en.wikipedia.org/wiki/Special:Gadgets/export/HotCat
- Download the export / save the file locally
- Import the gadget to the new wiki that wants the gadget feature.
- Add the gadget to the gadgets-definition page
Examples[edit]
The calculator gadget (implemented in javascript and exposed via a template) is versatile and powerful - including many math functions.
See examples in the docs and Bryan Damon's
Calculator demos that riff on Brian Wolff's (author) demos - which can be found via the category page. todo implement the gadget on this wiki.