Content deleted Content added
Alistair3149 (talk | contribs) m 1 revision imported |
Alistair3149 (talk | contribs) No edit summary Tag: 2017 source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Documentation}} |
{{Documentation}} |
||
{{Helper module |
|||
|name=Paramtest |
|||
'''Module:Paramtest''' is a helper module to be used by other modules. See [https://runescape.wiki/w/Module:Paramtest Module:Paramtest] on RuneScape Wiki for more details. |
|||
|fname1 = is_empty(arg) |
|||
|ftype1 = String |
|||
|fuse1 = Returns true if arg is not defined or contains only whitespace |
|||
|fname2 = has_content(arg) |
|||
|ftype2 = String |
|||
|fuse2 = Returns true if arg exists and does not only contain whitespace |
|||
|fname3 = default_to(arg1,arg2) |
|||
|ftype3 = String, Any value |
|||
|fuse3 = If arg1 exists and does not only contain whitespace, the function returns arg1, otherwise returns arg2 |
|||
|fname4 = defaults{ {arg1,arg2},...} |
|||
|ftype4 = {String, Any value}... |
|||
|fuse4 = Does the same as <code>default_to()</code> run over every table passed |
|||
|fname5 = table_is_empty(arg) |
|||
|ftype5 = Table |
|||
|fuse5 = Returns true if the table has no content, it does not check if the content of the table contains anything |
|||
|fname6 = table_has_content(arg) |
|||
|ftype6 = Table |
|||
|fuse6 = returns true if the table has content, it does not check if the content of the table contains anything |
|||
}} |
Latest revision as of 00:30, 7 March 2024
This is a documentation subpage for 'Module:Paramtest'.
It contains usage information, categories, and other content that is not part of the original module page.
This module is unused.
This module is neither invoked by a template nor required/loaded by another module. If this is in error, make sure to add
{{Documentation}}
/{{No documentation}}
to the calling template's or parent's module documentation.Function list |
---|
This module is a helper module to be used by other modules; it may not designed to be invoked directly. See Star Citizen: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 |
table_is_empty(arg) | Table | Returns true if the table has no content, it does not check if the content of the table contains anything |
table_has_content(arg) | Table | returns true if the table has content, it does not check if the content of the table contains anything |