Module talk:Sandbox/Matroc/TestmvloadData
Appearance
- This is a test of a code snippet to check if a table is loaded successfully or not -- A variable is being set to indicate whether a table has been loaded or not -- a function written to load that table if it hasn't... Am outputting RUN comments...
- using mv.loadData to load a Module table -- success! Loading a USStates table and looking for AL - Alabama
- TABLE t1 is not LOADED -- LOADED TABLE t1 via function load_t1
TABLE t1 IS LOADED -- DOING SOMETHING
TABLE t1 is ALREADY LOADED
FOUND : AL Alabama@@@Montgomery
- TABLE t1 is not LOADED -- LOADED TABLE t1 via function load_t1
- using mv.loadData to load a Module table -- failure! Loading a Canadian Provinces table (does not exist) and looking for ON.
- Lua error in Module:Sandbox/Matroc/TestmvloadData at line 10: Unable to load table t1.
- using mv.loadData to load a Module table -- success! Loading a USStates table and looking for AL - Alabama
- Note: I created my own Sandbox USStates module... Apparently others are creating table Modules in a slightly different manner which needs to be checked out or examined. Matroc (talk) 01:30, 29 June 2013 (UTC)