Template:LuaFunction/doc

Overview
LuaFunction is a template similar to T, used to examplain the syntax of a Lua function.

Syntax
1, where:
 * is the name of the function. Can be anything. Strictly required.
 * , and later ones are the arguments for a function. Optional.
 * Use ; to specify the flags of the variable, seperated by ,. The correct usage is: arg;type1, type2, .... type can be any of these:
 * can be used as a trailing value to disable the flags display all together.

Examples

 * Example 1
 * As simple as possible

produces


 * Example 2
 * With function name and couple of arguments

produces


 * Example 3
 * With function name, couple of arguments and corresponding types

produces


 * Example 3
 * With function name, couple of arguments and multiple corresponding types and one argument with no types

produces