Difference between revisions of "Template:Function"

From Vendetta Lua
Jump to: navigation, search
Line 17: Line 17:
 
</noinclude>
 
</noinclude>
  
 +
<includeonly>
 
{{Function_wrapped
 
{{Function_wrapped
 
| name        = {{{name}}}
 
| name        = {{{name}}}
Line 28: Line 29:
 
| notes        = {{{notes}}}
 
| notes        = {{{notes}}}
 
}}
 
}}
 +
</includeonly>

Revision as of 08:33, 30 March 2011

The following is currently just the intended syntax. No template code exists.
This function will in turn call Template:Function_wrapped

{{Function
| name         = Function Name
| desc         = Function description
| arg1_name    = argument (1,2,...,n) name
| arg1_type    = [nil, boolean, number, string, function, userdata, thread, table]
| arg1_desc    = argument (1,2,...,n) description, including examples if so desired
| ret1_name    = return value (1,2,...,n) name
| ret1_type    = [nil, boolean, number, string, function, userdata, thread, table]
| ret1_desc    = return value (1,2,...,n) description, including examples if so desired
| notes        = notes
}}