Difference between revisions of "Reference:Scribunto"

(Blank screen[edit])
m (Text replacement - "|edition=BlueSpice pro |active=Yes" to "|edition=BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |active=Yes")
 
The Scribunto (Latin: "they shall write/let them write (in the future)") extension allows

Extension: Scribunto


Overview
Description: provides a framework for embedding scripting languages
in MediaWiki. Currently the only supported scripting language is Lua. PCRE version compatibility[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit&section=3" title="Edit section: PCRE version compatibility">edit][edit | edit source]

PCRE 8.33 or later is recommended. You can see the version of PCRE used by PHP by viewing a phpinfo() web page, or from the command line with the command php -i | grep 'PCRE'.

CentOS 6 and RHEL 6 are stuck on PCRE 7 and need to be upgraded.

Updating to 8.33 on a server with an older version may be relatively complicated. See Updating to PCRE 8.33 or Higher for details.

Lua[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit&section=24" title="Edit section: Lua">edit][edit | edit source]Learning Lua[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit&section=25" title="Edit section: Learning Lua">edit][edit | edit source]

Lua is a simple programming language intended to be accessible to beginners. For a quick crash-course on Lua, try Learn Lua in 15 Minutes.

The best comprehensive introduction to Lua is the book Programming in Lua. The first edition (for Lua 5.0) is available online and is mostly relevant to Lua 5.1, the version used by Scribunto:

The reference manual is also useful:

Lua environment[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit&section=26" title="Edit section: Lua environment">edit][edit | edit source]

In Lua, the set of all global variables and functions is called an environment.

Each Script error: You must specify a function to call. call runs in a separate environment. Variables defined in one Script error: You must specify a function to call. will not be available from another. This restriction was necessary to maintain flexibility in the wikitext parser implementation.

Blank screen[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit&section=37" title="Edit section: Blank screen">edit][edit | edit source]

Make sure your extension version is applicable to your MediaWiki version.

Source: mediawiki
into articles.
State: stable Dependency: MediaWiki
Developer: Victor Vasiliev, Tim Starling License: GPL v2+ and MIT
Type: MediaWiki Category: Infrastructure
Edition: BlueSpice pro, BlueSpice Farm, BlueSpice Cloud
For more info, visit Mediawiki.

Features[edit source]

Scribunto provides a framework for embedding scripting languages into MediaWiki pages.


For more information visit MediaWiki.


Attachments

Discussions