Difference between revisions of "Reference:Scribunto"
(→Blank screen[edit]) |
Fbaeckmann (talk | contribs) m (Text replacement - "|edition=BlueSpice pro |active=Yes" to "|edition=BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |active=Yes") |
Extension: Scribunto
Overview | |||
---|---|---|---|
Description: | provides a framework for embedding scripting languages |
Contents
- 1 PCRE version compatibility[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=3" title="Edit section: PCRE version compatibility">edit]
-
2 Lua[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=24" title="Edit section: Lua">edit]
- 2.1 Learning Lua[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=25" title="Edit section: Learning Lua">edit]
- 2.2 Lua environment[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=26" title="Edit section: Lua environment">edit]
- 2.3 Blank screen[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=37" title="Edit section: Blank screen">edit]
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'
.
- Scribunto will not work with versions of PCRE lower than 8.10.
- PCRE 8.31 has bugs with JIT pattern studying that breaks various patterns when used with HHVM.
- PCRE 8.32 has a bug that will cause it to reject certain non-character codepoints, which will cause errors in the mw.html module.
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§ion=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§ion=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:
- Programming in Lua (scroll down past the book ads to find the text)
The reference manual is also useful:
Lua environment[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=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§ion=37" title="Edit section: Blank screen">edit][edit | edit source]Make sure your extension version is applicable to your MediaWiki version.
Source: mediawikiinto 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 | ||
Features[edit source]
Scribunto provides a framework for embedding scripting languages into MediaWiki pages.
For more information visit MediaWiki.
The '''Scribunto''' ([https://en.wikipedia.org/wiki/Latin Latin]: "''[https://en.wiktionary.org/wiki/scribunto they shall write/let them write (in the future)]''") extension allows {{BSExtensionInfobox |desc=provides a framework for embedding scripting languages in MediaWiki. Currently the only supported scripting language is [http://www.lua.org/ Lua]. ===<span id="PCRE_version_compatibility" class="mw-headline">PCRE version compatibility</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=3" title="Edit section: PCRE version compatibility">edit]</span></span>=== PCRE 8.33 or later is recommended. You can see the version of [https://en.wikipedia.org/wiki/PCRE PCRE] used by PHP by viewing a phpinfo() web page, or from the command line with the command <code>php -i | grep 'PCRE'</code>. * Scribunto will not work with versions of PCRE lower than 8.10. * PCRE 8.31 has bugs with JIT pattern studying that [https://phabricator.wikimedia.org/T73922 breaks various patterns when used with HHVM]. * PCRE 8.32 has [http://bugs.exim.org/show_bug.cgi?id=1340 a bug] that will cause it to reject certain [https://en.wikipedia.org/wiki/en:Mapping_of_Unicode_characters#Non-characters non-character codepoints], which will cause errors in the mw.html module. 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 [into articles. |status=stable |developer=Victor Vasiliev, Tim Starling |type=MediaWiki |edition=BlueSpice pro, BlueSpice Farm, BlueSpice Cloud |active=Yes |compatible=MediaWiki |category=Infrastructure |license=GPL v2+ and MIT |docu=https://www.mediawiki.org/wiki/Updating_to_PCRE_8.33_or_Higher Updating to PCRE 8.33 or Higher] for details. ==<span id="Lua" class="mw-headline">Lua</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=24" title="Edit section: Lua">edit]</span></span>== ===<span id="Learning_Lua" class="mw-headline">Learning Lua</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=25" title="Edit section: Learning Lua">edit]</span></span>=== Lua is a simple programming language intended to be accessible to beginners. For a quick crash-course on Lua, try [http://tylerneylon.com/a/learn-lua/ 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: * [http://www.lua.org/pil/index.html Programming in Lua] (scroll down past the book ads to find the text) The reference manual is also useful: * [Extension:Scribunto }}'''Scribunto''' provides a framework for embedding scripting languages into MediaWiki pages. For more information visit [https://www.mediawiki.org/wiki/Special:MyLanguage/Extension:Scribunto/Lua_reference_manual Lua reference manual] ===<span id="Lua_environment" class="mw-headline">Lua environment</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=26" title="Edit section: Lua environment">edit]</span></span>=== In Lua, the set of all global variables and functions is called an environment. Each {{#invoke:}} call runs in a separate environment. Variables defined in one {{#invoke:}} will not be available from another. This restriction was necessary to maintain flexibility in the wikitext parser implementation. ===<span id="Blank_screen" class="mw-headline">Blank screen</span><span class="mw-editsection"><span class="mw-editsection-bracket">[<a href="https://www.mediawiki.org/w/index.php?title=Extension:Scribunto&action=edit§ion=37" title="Edit section: Blank screen">edit]</span></span>=== Make sure your extension version is applicable to your MediaWiki version. '''Source: '''[https://www.mediawiki.org/wiki/Extension:Scribunto mediawiki] MediaWiki]. {{Translation}} [[Category:BlueSpice_pro]] [[Category:MediaWiki]] [[Category:Extension]]
(36 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{BSExtensionInfobox | |
+ | |desc=provides a framework for embedding scripting languages into articles. | ||
+ | |status=stable | ||
+ | |developer=Victor Vasiliev, Tim Starling | ||
+ | |type=MediaWiki | ||
+ | |edition=BlueSpice pro, BlueSpice Farm, BlueSpice Cloud | ||
+ | |active=Yes | ||
+ | |compatible=MediaWiki | ||
+ | |category=Infrastructure | ||
+ | |license=GPL v2+ and MIT | ||
+ | |docu=https://www.mediawiki.org/wiki/Extension:Scribunto | ||
+ | }}'''Scribunto''' provides a framework for embedding scripting languages into MediaWiki pages. | ||
+ | For more information visit [https://www.mediawiki.org/wiki/Extension:Scribunto MediaWiki]. | ||
− | + | {{Translation}} | |
− | + | [[Category:BlueSpice_pro]] | |
− | + | [[Category:MediaWiki]] | |
− | + | [[Category:Extension]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |