Manual:Interface/JavaScript/nl

MediaWiki:Common.js bevat JavaScript die voor alle gebruikers wordt geladen. Vul "MediaWiki:Common.js" in in het zoekveld van uw wiki. U ziet dan of de pagina niet bestaat; in dat geval kunt u als u de benodigde, de pagina aanmaken met de code die u moet uitvoeren. Er zijn vergelijkbare pagina's die allen van belang zijn voor gebruikers die een specifieke gebruiken. (zie hieronder)

If is set to true, users can customize the interface for only themselves by creating and importing personal scripts in certain user subpages. makes it easier for site admins and users to share JavaScript, see.

This page covers the state and configuration variables available. For the general JavaScript API, see the JSDuck documentation.

List of JavaScript pages
Note that any .js and any gadget won't load on Special:Preferences itself.

Global scripts

 * MediaWiki:Common.js - all skins, but ignored by the mobile website provided by
 * MediaWiki:skinname.js - per skin, for example MediaWiki:Vector.js
 * - per user group, for example MediaWiki:Group-sysop.js
 * MediaWiki:Mobile.js - specific to the mobile website and provided by
 * Special:Gadgets

Personal scripts
They're only available if is set to.


 * User:Example/common.js - all skins - introduced in MW v1.17
 * User:Example/skinname.js - per skin, for example User:Example/vector.js; always lowercase )
 * User:Example/global.js - per, if is in use in for this family

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

These values can be accessed through, documented at ResourceLoader/Core modules.

All pages (user/page-specific)
Related to the user currently viewing the page:

Some pages
Some additional variables are present only depending on the page namespace, wiki configuration and/or user preferences.

Page specific (Wikibase extension)
Some additional information will be available when the site supports :

Hooks for extensions

 * - Since MediaWiki 1.17 extensions can add their own site-wide variables through this hook.
 * - Since MediaWiki 1.14 extensions can add their own variables to the OutputPage. If the variable is not dependent on the page being viewed, use the hook instead.