Module:Paramtest/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Paramtest
Module:Paramtest is required by Module:Category handler.
Module:Paramtest is required by Module:Clean image.
Module:Paramtest is required by Module:References.
Function list |
---|
L 11 — p.is_empty L 19 — p.default_to L 30 — p.defaults L 48 — p.has_content L 56 — p.ucfirst L 70 — p.ucflc |
This module is a helper module to be used by other modules; it may not designed to be invoked directly. See Tesseract:Lua/Helper modules for a full list and more information.
Function | Type | Use |
---|---|---|
is_empty(arg) | String | Returns true if arg is not defined or contains only whitespace |
has_content(arg) | String | Returns true if arg exists and does not only contain whitespace |
default_to(arg1,arg2) | String, Any value | If arg1 exists and does not only contain whitespace, the function returns arg1, otherwise returns arg2 |
defaults{ {arg1,arg2},...} | {String, Any value}... | Does the same as default_to() run over every table passed; for technical reasons, all nil are replaced with false |