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

Module:ProcessingFunctions/doc

From Sekaipedia
Revision as of 17:08, 29 March 2023 by ChaoticShadow (talk | contribs) (Created page with "{{documentation subpage}} {{Lua|Module:Yesno}} This module contains several helper functions for Module:InfoboxBuilder and Module:DatatableBuilder templates. == Functions == === stringToArray === <syntaxhighlight lang="lua"> ProcessingFunctions.stringToArray(delimiter) </syntaxhighlight> Pass in the delimiter to be used when splitting the string into tokens. When called, this will return a function that uses the first parameter as the input string to split....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:ProcessingFunctions

This module contains several helper functions for Module:InfoboxBuilder and Module:DatatableBuilder templates.

Functions

stringToArray

ProcessingFunctions.stringToArray(delimiter)

Pass in the delimiter to be used when splitting the string into tokens. When called, this will return a function that uses the first parameter as the input string to split.

stringToBoolOrNil

ProcessingFunctions.stringToBoolOrNil

When called, this function will turn a string into a bool if the string is equivalent to a true value or false value (see Module:Yesno for such values). If the string is neither true nor false, then returns nil.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.