Extension:ClientSide

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

  1. 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
    
  2. Then, in your LocalSettings.php file, add the following line for the ClientSide extension:
    require_once( "$IP/extensions/ClientSide/ClientSide.php" );
    


Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox