Jump to content

Help:Lua: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
+shortcut
No edit summary
Line 1: Line 1:
{{WikiProject Lua/header|sc1=HELP:LUA}}
{{WikiProject Lua/header|sc1=HELP:LUA}}

== "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==
==Documentation==
Line 11: Line 15:
* [[Help:Lua for beginners]]
* [[Help:Lua for beginners]]
* [[Wikipedia:Lua string functions]]
* [[Wikipedia:Lua string functions]]

== "Hello world" demonstration modules ==
* [[Module:Bananas]]: The simplest possible script, providing a single function with no arguments.
* [[Module:BananasArgs]]: Demonstrates how to access and use parameters.
;Sample [[unit test]]s for the "Hello world" modules:
* [[Module:Bananas/testcases]] – [[Module talk:Bananas/testcases|Results]]
* [[Module:BananasArgs/testcases]] – [[Module talk:BananasArgs/testcases|Results]]


== Testing modules ==
== Testing modules ==
* [[Module:UnitTests]] - used to power many module unit tests, which are usually found by the name "Module:(your-module-name)/tests"
* [[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:
* [[Module:Bananas/testcases]] – [[Module talk:Bananas/testcases|Results]]
* [[Module:BananasArgs/testcases]] – [[Module talk:BananasArgs/testcases|Results]]name)


==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

How-to guides

Testing modules

Wikipedia resources