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]

Discussion[View | Edit]

Adding the Widget extension to Appropedia[edit source]

The following are technical notes on how the widget extension was finally, successfully added to Appropedia.

            274 => "Widget",   
            275 => "Widget_talk"
            );
    • to $wgNamespacesWithSubpages = array(
       NS_WIDGET         => false,
       NS_WIDGET_TALK    => false
       );
    • to $wgNamespacesToBeSearchedDefault = array(
      NS_WIDGET           => false,
       NS_WIDGET_TALK      => false
    • with other permissions
$wgGroupPermissions['sysop']['editwidgets']   = true;

Woo hoo! --Lonny 12:48, 20 November 2009 (UTC)

Cookies help us deliver our services. By using our services, you agree to our use of cookies.