Widgets are pages in the Widget namespace (e.g. Widget:Twitter) that can be transcluded like templates but can contain raw HTML, including:
<script>
tags to run any JavaScript (local or remote)<style>
tags to load any CSS (local or remote)<iframe>
tags to embed any content (local or remote)- Smarty syntax
This makes widgets very powerful and useful, but also apt for misuse, so for security reasons, they can only be created or edited by admins and allowed users. If you'd like to develop a widget, you can request the necessary permission at the Village pump.
See also[edit | edit source]
- Widget:Google Form - Simple widget to embed a Google Form, useful to learn by example
- All widgets - All pages in the Widget namespace
- Category:Widget templates - All wrapper templates for widgets
- Extension:Widgets - MediaWiki extension that enables widgets
- https://www.mediawikiwidgets.org - Widgets catalog