Extension:Javascript
From MediaWiki.org
Javascript Release status: stable |
|||
---|---|---|---|
Implementation | User interface | ||
Description | Loads JavaScript files from selected files or directories without duplication. | ||
Author(s) | Aran Dunkley (Nadtalk) | ||
Latest version | 3.0.8 (2012-02-15) | ||
MediaWiki | 1.17+ | ||
Database changes | no | ||
License | GPL v2+ | ||
Download | JavaScript.php | ||
|
|||
Translate the Javascript extension if possible |
|||
Check usage and version matrix; code metrics |
Manage multiple JavaScript files imports from one place. The extension is a single script which you can obtain from here and save into a directory called JavaScript in your extensions directory and include in your LocalSettings.php file. Save all the necessary *.js files into the same locations as the script and they will automatically be loaded by your wiki. For more information see the OrganicDesign page or subversion repository.
To activate the extension, include in your LocalSettings.php file as in the following example:
include("$IP/extensions/JavaScript/JavaScript.php");
See also[edit | edit source]
- Extension:AddScriptCss - parser cache friendly version of 'AddScript'
- Extension:AddScript - allows adding scripts on a per-article basis with a parser-function