Help:Lua

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
 WP:Lua
WPtalk:Lua
 Help
 
 To do
 
 Resources
mw:reference manual
 
 • Help:Lua for beginners  • Help:Lua debugging – about debugging Lua modules  • Wikipedia:Lua style guide – standards to improve the readability of code through consistency  • Module:Sandbox provides a pseudo-namespace for experimenting with Lua modules

"Hello world"[edit]

  • Module:Bananas: The simplest possible script: say "hello world". Providing a single function with no arguments.
  • Module:BananasArgs: Demonstrates how to access and use parameters.

Documentation[edit]

How-to guides[edit]

Debugging modules[edit]

  • Module:SimpleDebug - It allows to collect and view the values of one or several variables and/or customized labels of several points of a lua program.

Testing modules[edit]

Sample unit tests for the "Hello world" modules

Profiling modules and functions[edit]

  • Module:Timing – module to do some simple probing of timing issues, mostly to spot and fix load problems

Patterns[edit]

Wikipedia resources[edit]