Manual:Interface/JavaScript/de

MediaWiki:Common.js enthält JavaScript, das für alle Benutzer geladen wird. Geben Sie "MediaWiki:Common.js" in das Suchfeld Ihres Wikis ein. It will tell you if the page doesn't exist; if so, and you have the necessary, just create it with the code you need to execute. There are similar pages affecting only users of specific (see below).

Wenn auf true gesetzt ist, können Benutzer ihre eigene Schnittstelle anpassen, indem sie bestimmte Benutzer-Unterseiten mit Kleinbuchstaben-Titel (siehe unten) erstellen oder importieren. 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.



Liste der JavaScript Seiten
Note that any scripts or gadgets won't load on Special:Preferences itself, or if safemode is used.



Globale Skripte

 * MediaWiki:Common.js - applies to all skins, but ignored by the mobile website provided by
 * MediaWiki:skinname.js - applies to a specific skin, for example MediaWiki:Vector.js
 * - applies to a specific user group, for example MediaWiki:Group-sysop.js
 * MediaWiki:Mobile.js - applies to the mobile website; provided by
 * Special:Gadgets - can be activated by any user in, or may be enabled by default for all users; provided by



Persönliche Skripte
Personal scripts are only available if is set to.


 * User:Example/common.js - Alle Skins - eingeführt 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:



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



Seitenspezifisch (Wikibase-Erweiterung)
Some additional information will be available when the site supports :



Hooks für Erweiterungen

 * - 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.



Siehe auch

 * How to enhance wiki content with JavaScript