Help:Lua debugging: Difference between revisions

Content deleted Content added
m :
Line 26:
 
== Lua sandbox ==
The English wikipedia has the [[mw:Extension:TemplateSandbox|Template Sandbox]] extension installed. There is a Synergy bewteenbetween the "template sandbox" and "Scribuntu" extensions, which allows to develop and modify Lua modules in private (i.e., in the user space) pages, before moving them to the global space.
=== 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.