User:BillKing

Below is summary of findings etc. while creating modules with Scribunto (Lua)

 * 1)    TESTED - Create modules containing either an array or matrix (array of arrays) as data source to other modules.
 * 2)    TESTED - Create modules that use a string or an array or an array matrix as data sources.
 * 3) *       Ability to use more than one array contained in a matrix in a module
 * 4) *       Use list of delimited string as arguments to a module
 * 5)    TESTED - Develop an approach for handling data in associative arrays
 * 6) *       Ability to identify data elements
 * 7) *       Ability to break apart data elements using subfields
 * 8)    Types of working modules created on personal wiki
 * 9) *       DONE - simplified infobox module - simple array
 * 10) *       DONE - build sorted table from associative array with options:
 * 11) **           Output column heads or not - no heads - array will not be sortable
 * 12) **           Limited selection of rows to output
 * 13) **           Limited selection of columns to output
 * 14) **           Option to add entry number column to table (5 digit number)
 * 15) *       DONE - use an array to perform lookups (ie. Find a state abbreviation and output the state's official flower or capitol etc.)
 * 16) *       DONE - sort an input string (list) based on a delimiter
 * 17) *       DONE - output string in delimited form or create a list
 * 18) **           option to perform leading article lookups for "A, An, And, The" for sorting purposes
 * 19) *       DONE - limited table check module for certain types of data arrays
 * 20) *       TESTED - ability to create an array from a string (list)
 * 21)    Sandbox TEST modules created on en.wikipedia
 * 22) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/OSdate -- operating system date. (may require a page refresh to keep up to date - old date may be cached?)
 * 23) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/Misc -- miscellaneous functions testing.
 * 24) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/Ship_prefix
 * 25) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/Str_left
 * 26) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/Str_right
 * 27) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/Str_swap
 * 28) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/TestmvloadData
 * 29) *       http://en.wikipedia.org/wiki/Module:Sandbox/Matroc/Testurlencode -- needs more work!
 * 30)    TESTED - Use a variable (created by Variables extension)  to pass to a module
 * 31)    TESTED - Use output of one module and pass output as argument to another module
 * 32)    DONE - Create Categories
 * 33) *       Module created to read in a list and produce Categories on a page
 * 34)    TESTED - Use a template with a ParserFunction switch statement to call preformed invoke to various modules
 * 35) *       ie. Option 1 - invoke an infobox module with different parameters.
 * 36)    TESTED - Can now use a multiline string inside a called Lua module (strings contained in Lua using double brackets), returning it as a single string.
 * 37)   Note: fixed problematic issue with "\n" by editing the LuaStandalone engine for my installation on Windows 7...
 * 38) *  page = &#91;&#91; &#42; One &#42; Two ;Term :Definition &#93;&#93;
 * 39) *       Also, can add variables to a multiline Lua string inside a module. I now use it to add a small section to various pages.
 * 40)    TESTED - Can use an #invoke statement as an argument to a template.
 * 41)    DONE - Module created to swap strings -- ie. swap dog n cat - 'The brown dog jumped over the cat' to 'The brown cat jumped over the dog'
 * 42)    DONE - Module created to count number of elements of a list passed as a string.
 * 43)    DONE - Module created to convert a Roman Numeral to number: ie. mmxiii to 2013
 * 44)    DONE - Module created to repeat a string multiple times (ie. "test" to become "testtesttesttest")
 * 45) *  also can specify another string and replace/repeat multiple times within initial string (ie. "this is a test" - other string "is" to become "this isisisis a test" etc.)
 * 46) ** Specify how many times - 1st or last or a number of occurences etc.
 * 47)    DONE - can check if mv.loadData is successful or not and perform tasks based upon that condition without having the Script Error message appear because of a missing module or mistyped module name.
 * 48)    TESTED - use a table to contain string arguments for gsub etc.
 * 49)    DONE ELSEWHERE - ISBN digit check digit creation - validation
 * 50)    TESTED - ability to pass multiple sets of template parameters to a template as a single parameter that invokes a Lua module..
 * 51)    Other Notes
 * 52)    Note: To trigger error message that will appear within RED Script Error can use following code:  do return error("Your Error Message") end -- simpler just: error("Your Error Message")
 * 53)    If a value of a parameter is 'nil' and want to assign a default value (rather than do an if else statement):
 * 54) *  ie. local variable yesno = frame.args[2] or "no"
 * 55)    Length of a string passed to a module (2 ways I found):
 * 56) *       #frame.args[1] or if made into a variable string.len(variable)
 * 57)    Less typing using string functions:
 * 58) *  test = string.gsub("test","e","E")  change to test = test:gsub("e","E")
 * 59)    Important
 * 60) *   An #invoke's parameter that is a string containing an '=' sign and to be handled by the invoked module will fail -- to resolve enclose the ='s sign in curly brackets -- see: https://en.wikipedia.org/wiki/Help:Templates#Usage_hints_and_workarounds.
 * 61) *   One work around is to set a default in the Module to overcome the 'nil' error but that may or may not be appropriate for all cases.
 * 62) *   Just something to remember!
 * 63) **  Also Note: It is possible to define a variable and pass that variable to a module without having to resort to enclosing the ='s sign in curly brackets, yet other method - replacing the ='s sign with ='s curly brackets with Replace. However, neither the Variables nor the String Functions extensions are incorporated in mediawiki, wikipedia etc. - I use those extensions in my own small personal wikis.
 * 64) ** Good idea when using a passed string to a Lua module to Escape those pesky magic Lua characters.
 * 65)    Works in Progress
 * 66)    DONE: Can pass multiple sets of like named parameters as a single parameter to a template's #invoke while avoiding having to put curly brackets around the ='s and |'s sign...
 * 67) *   Investigating - adding rows and columns and outputting totals in a table
 * 68) *   Investigating - removing numerous templates that I use and replacing them with Scribunto (Lua) modules
 * 69) *   Investigating - creating categories & sub categories based on a simple taxonomy (ie. Basic Library of Congress Classification) ♙