maggasil.blogg.se

Mediawiki common.js
Mediawiki common.js












mediawiki common.js
  1. MEDIAWIKI COMMON.JS SOFTWARE
  2. MEDIAWIKI COMMON.JS CODE

A subset of these names correspond to $ wg variables in PHP, but others are unrelated.For legacy reasons these names are exposed as global JavaScript variables if $wgLegacyJavaScriptGlobals is true, so they use a prefix to avoid collisions.Most of these variables have a wg prefix.

MEDIAWIKI COMMON.JS SOFTWARE

To facilitate JavaScript programming, the MediaWiki software exposes a number of configuration values in an object called mw.config.

  • User: Example/ global.js - per Manual:Wiki family, if Extension:GlobalCssJs is in use in for this family.
  • mediawiki common.js

    User: Example/ skinname.js - per skin, for example User: Example/vector.js always lowercase).User: Example/common.js - all skins - introduced in MW v1.17.They're only available if $wgAllowUserJs is set to true. MediaWiki:Mobile.js - specific to the mobile website and provided by Extension:MobileFrontend.MediaWiki:Group- group.js - per user group, for example MediaWiki:Group-sysop.js.MediaWiki: skinname.js - per skin, for example MediaWiki:Vector.js.MediaWiki:Common.js - all skins, but ignored by the mobile website provided by Extension:MobileFrontend.js and any gadget won't load on Special:Preferences itself. This page covers the state and configuration variables available.įor the general JavaScript API, see the JSDuck documentation. If $wgAllowUserJs is set to true, users can customize the interface for only themselves by creating and importing personal scripts in certain user subpages.Įxtension:Gadgets makes it easier for site admins and users to share JavaScript, see Gadget kitchen. There are similar pages affecting only users of specific skins (see below).

    MEDIAWIKI COMMON.JS CODE

    It will tell you if the page doesn't exist if so, and you have the necessary user rights, just create it with the code you need to execute. MediaWiki:Common.js contains JavaScript that will be loaded for all users.Įnter "MediaWiki:Common.js" into the search box of your wiki. $wgResourceModules, BeforePageDisplay hookĬategory for all things JavaScript Learning JavaScript CORS Broken scripts Core development: coding conventions and unit testing Technical docs on.ContentHandler facility for supporting js as page content.Interface (user-specific, group-specific and site-wide).Core modules, including jQuery and OOjs.ResourceLoader : delivery system for optimized loading and managing of modules.














    Mediawiki common.js