Content deleted Content added
Module sandboxing |
|||
Line 26:
== Lua sandbox ==
The English wikipedia has the [[mw:Extension:
=== How to use "Template Sandbox" to develop scribuntu module? ===
Let's take a practical example. for this example, assume your user name is "Lua Developer". Let's say you want to test a bug-fix or enhancement to the [[Module:String|String]] module. There are two reasons you can't do it directly: this module contains functions that are used by hundreds of templates, transcluded in milions of articles. any bug will present a huge disruption to wikipedia. The 2nd reason is more prosaic: because this module is so central, it is also protected, and our "Lua Developer" user does not have the required permissions to modify this module.
Line 46:
However, if our developer would create a page named [[User:Lua Developer/sandbox/Module:string]], she would not be able to invoke this module in any way, because the parser will look for a page named "Module:String" and not "Module:string" under the sandbox prefix, Wikipedia will not convert the name to "Module:String" (because it only converts the 1st character in the page name), and will not find it, so it will take the module from the main namespace (if such module exists), or will complain that the module does not exist.
== Plan for extensive debug-display code ==
|