Invokes global modules from dev.fandom.com.
Installation
Syntax
{{Devmodule|#mod = <module name>|#fun = <function name>|<parameters>}}
#modor#modulename- Name of a module stored on dev.fandom.com, e.g. "InfoboxBuilder".
#funor#fname- Function that will be invoked, e.g. "main". Note that if this is omitted it assumes that the function is "main".
parameters- Any named or numbered parameters, e.g. "1=baby", "character=Zerg".
Example
From another wiki with the Devmodule use this code:
| Code | Output |
|---|---|
| {{Devmodule|#mod=links|wikipedia:Lua}} | wikipedia:Lua |
| Code | Output |
|---|---|
| {{Devmodule|#mod=formatnum|#fun=main|1231231223|en}} | 1,231,231,223 |
Module information
Functions
p.main
Entry point to use module.
Parameters
| Name | Type | purpose |
|---|---|---|
| frame | table | A scribunto frame. |
| Return type | Return purpose |
|---|---|
| string | The return content of the module. |
Text above can be found here (edit)