Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Paramtest/doc

From AoM Retold
Revision as of 08:14, 28 September 2024 by Adam (talk | contribs) (Created page with "{{Documentation}} {{Helper module |name=Paramtest |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{ {ar...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Paramtest

Function list
L 44 — p.is_empty
L 52 — p.table_is_empty
L 63 — p.default_to
L 74 — p.defaults
L 89 — p.has_content
L 98 — p.table_has_content
L 109 — p.ucfirst
L 123 — p.ucflc

This module is a helper module to be used by other modules; it may not designed to be invoked directly. See AoM Retold:Lua/Helper modules for a full list and more information.

FunctionTypeUse
is_empty(arg)StringReturns true if arg is not defined or contains only whitespace
has_content(arg)StringReturns true if arg exists and does not only contain whitespace
default_to(arg1,arg2)String, Any valueIf 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)TableReturns true if the table has no content, it does not check if the content of the table contains anything
table_has_content(arg)Tablereturns true if the table has content, it does not check if the content of the table contains anything
Cookies help us deliver our services. By using our services, you agree to our use of cookies. We only use cookie to make the site function and save your preferences, nothing else.