Extension:ClientSide
From MediaWiki.org
ClientSide Release status: stable |
|
---|---|
Implementation | Parser extension |
Description | Provides functions for generating code in client-side formats such as HTML, CSS and JavaScript |
Author(s) | Trevor Parscal |
Last version | 0.1.1 (2009-02-14) |
MediaWiki | 1.16+ |
Database changes | no |
License | GPLv2 |
Download | |
Check usage (experimental) |
[edit] Description
Provides functions for generating code in client-side formats such as HTML, CSS and JavaScript. Required by Extension:CommunityVoice.
[edit] Purpose
The concept of this code is to provide procedural constructs for generating code which will be sent to the client. This is an alternative to embedding these client side languages as string throughout the PHP. This approach is inline with the design of the Xml class present in the MediaWiki core, however ClientSide takes the concept a step further with CSS and JavaScript generation while providing a somewhat more flexible function argument structure.
[edit] Installation
- From a command line while at the root of your wiki, call the following:
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/ClientSide.git
- Then, in your LocalSettings.php file, add the following line for the ClientSide extension:
require_once( "$IP/extensions/ClientSide/ClientSide.php" );
![]() |
This extension is being used on one or more of Wikimedia's wikis. This means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |