Template:LuaInvoke/doc

From Fire Emblem Heroes Wiki
Jump to: navigation, search
Template-info.svg Documentation

Displays an invocation of a Scribunto Lua module function.

Parameters[edit source]

  • 1: Module name, excluding the namespace.
  • 2: Function name.
  • meta: If true, displays the function invocation in Lua code as if the linked module is a Lua metamodule.

Example[edit source]

{{LuaInvoke|String|sub}}
{{#invoke:String|sub}}
{{LuaInvoke|UnitData|main}}
{{#invoke:UnitData|main}}
{{LuaInvoke|ListUtil|group_by|meta=1}}
require 'Module:ListUtil'.group_by()

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.