Extension:Uniwiki Javascript

From MediaWiki.org
Jump to: navigation, search

Check usage(experimental)

MediaWiki extensions manual - list
Crystal Clear action run.png
Uniwiki Javascript

Release status: experimental

Implementation Skin
Description Adds uniwiki.js to each page (which currently just provides lightweight i18n support in Javascript), and serves as a placeholder for future Javascript code shared between Uniwiki extensions
Author(s) Merrick Schaefer,
Mark Johnston,
Evan Wheeler,
Adam Mckaig (UniwikiTalk)
Last version 0.1 (2008-07-18)
MediaWiki 1.12.0
License GPLv3
Download From Subversion
Hooks used
BeforePageDisplay
Extension (Results)
1.13.5 1.14.0 trunk
r44068
MediaWiki 1.13.1 - - Yes
1.14.0 - - -
trunk - - -
Configure Supported from 1.15.
MediaWiki Testing

Contents

[edit] What can this extension do?

Nothing, by itself. It provides a foundation on which i18n-via-Javascript support is implemented by other Uniwiki extensions. It will probably be expanded in the future.

[edit] Installation

Create a subdirectory in your extensions directory:
(we do this to make it easy to distribute all Uniwiki extensions as a bundle)

cd /your/wiki/extensions
mkdir uniwiki

Download the extension using subversion:

cd /your/wiki/extensions/uniwiki
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/uniwiki/Javascript

Add the following to LocalSettings.php:

require_once("$IP/extensions/uniwiki/Javascript/Javascript.php");

[edit] Installing the entire Uniwiki bundle

Download all of the Uniwiki extensions using Subversion:

cd /your/wiki/extensions
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/uniwiki uniwiki

Add the following to LocalSettings.php:

# uniwiki
# =======
$uw = "$IP/extensions/uniwiki";
require_once("$uw/CssHooks/CssHooks.php");
require_once("$uw/Javascript/Javascript.php");
require_once("$uw/MooTools12core/MooTools12core.php");
require_once("$uw/AutoCreateCategoryPages/AutoCreateCategoryPages.php");
require_once("$uw/GenericEditPage/GenericEditPage.php");
require_once("$uw/CatBoxAtTop/CatBoxAtTop.php");
require_once("$uw/CustomToolbar/CustomToolbar.php");
require_once("$uw/Layouts/Layouts.php");
require_once("$uw/Authors/Authors.php");
require_once("$uw/CreatePage/CreatePage.php");

[edit] Internationalizing Uniwiki extensions

The Uniwiki extensions are available in several languages already, and it is very easy to add a new language. Each extension that has interface text includes a .i18n file with the internationalized system messages. Follow the instructions here to add the new language to the file.

[edit] See also

Sites using uniwiki extensions
Other extensions from the Uniwiki bundle
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox