warframe

This is the documentation page for Module:Lua


Lua is for calling lua functions, that do not fit specifically in other modules, on articles.

On this Wiki, Lua is used in:

Usage

Direct Invocation

{{#invoke:Lua|function|input1|input2|...}}

Documentation

Package items

lua.getArgs(frame, options) (function)
For getting frame or parent arguments.
Parameters:
  • frame The input arguments (table)
  • options Options for getting the args (table)
Returns: The arguments (table)
lua.Raw(frame) (function)
Returns raw wikitext.
Parameter: frame (table)
Returns: Unrendered wikitext (string)
lua.Tabber(frame) (function)
Makes a tabber out of a list of pages.
Parameter: frame (table)
Returns: Rendered wikitext of tabber elements (string)
lua.SubTabber(frame) (function)
Makes a tabber out of all subpages to a page.
Parameter: frame (table)
Returns: Rendered wikitext of tabber elements (string)
lua.CALL(frame) (function)
<module>. <function> is called with the frame/args given to Template:X In other words, allows editors to pass arguments directly to a transcluded #invoke function without defining template parameters on source template article.
Parameter: frame (table)
Returns: Return type depends on called function
lua.dump(frame) (function)
Returns serialized table of a module's contents
Parameter: frame Frame object (table)
Returns: Serialized table (string)

Created with Docbunto

See Also


Code