Help:Lua: Difference between revisions
Appearance
Content deleted Content added
+shortcut |
No edit summary |
||
Line 1: | Line 1: | ||
{{WikiProject Lua/header|sc1=HELP:LUA}} |
{{WikiProject Lua/header|sc1=HELP:LUA}} |
||
⚫ | |||
⚫ | |||
⚫ | |||
==Documentation== |
==Documentation== |
||
Line 11: | Line 15: | ||
* [[Help:Lua for beginners]] |
* [[Help:Lua for beginners]] |
||
* [[Wikipedia:Lua string functions]] |
* [[Wikipedia:Lua string functions]] |
||
⚫ | |||
⚫ | |||
⚫ | |||
;Sample [[unit test]]s for the "Hello world" modules: |
|||
⚫ | |||
⚫ | |||
== Testing modules == |
== Testing modules == |
||
* [[Module:UnitTests]] - used to power many module unit tests, which are usually found by the name "Module:(your-module- |
* [[Module:UnitTests]] - used to power many module unit tests, which are usually found by the name "Module:(your-module-Sample [[unit test]]s for the "Hello world" modules: |
||
⚫ | |||
⚫ | |||
==Wikipedia resources== |
==Wikipedia resources== |
Revision as of 23:53, 29 March 2013
Template:WikiProject Lua/header
"Hello world"
- 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
- Scribunto Lua reference manual (Manual for the Mediawiki implementation)
- Programming in Lua (Lua.org manual for version 5.2)
How-to guides
- Wikipedia:Lua style guide – standards to improve the readability of code through consistency
- "What do converted templates look like?" (slideshow)
- Help:Lua debugging – a how-to guide about debugging Lua modules
- Help:Lua for beginners
- Wikipedia:Lua string functions
Testing modules
- Module:UnitTests - used to power many module unit tests, which are usually found by the name "Module:(your-module-Sample unit tests for the "Hello world" modules:
- Module:Bananas/testcases – Results
- Module:BananasArgs/testcases – Resultsname)
Wikipedia resources
- Special:PrefixIndex/Module:Sandbox - allows you to work on a set of files within a sandbox prefix.
- Lua (mainspace article)