Extension:Javascript

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
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
Hooks used
BeforePageDisplay

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]