Extension:WikiScripts

WikiScripts is an extension that allows users to write a modules in a specially designed scripting language and then invoke those modules from wiki pages.

Installation
To install this extension, add the following to LocalSettings.php:

Please bear in mind that you need MediaWiki at least r94435 (1.19) or newer to run the scripts.

There are following configuration variables;
 * $wgScriptsUseGeSHi — enables syntax highlighting of module pages via GeSHi; needs SyntaxHighlight_GeSHi of version r94443 or newer.
 * $wgScriptsAllowRecursion — indicates whether users are allowed to use Recursion. Given the fantasy of our template writers, users may do very insane things with that and hence it is unsafe and disabled by default.
 * $wgScriptsMaxCallStackDepth — the maximum nesting limit of functions.
 * $wgScriptsLimits — variable that allows to impose different limits on the script execution:
 * tokens — amount of tokens (strings, operators, keywords, etc) in the script;
 * evaluations — maximum number of evaluated operations per page (outputted in the parser limit report);
 * depth — maximum depth of the syntax tree (outputted in the parser limit report).

If you have XDebug installed, you will have to increase the function nesting limit to approximately 1000 in default configuration (or cut the value of $wgScriptsMaxCallStackDepth/$wgScriptsLimits['tokens']).

Design

 * /Brainstorming