Views
Actions
Search results
From Blue Gold Program Wiki
- Module:Yesno (category Lua metamodules)-- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default)745 bytes (116 words) - 05:11, 26 April 2020
- Module:Arguments (category Lua metamodules)another Lua module -- or from the debug console, so assume that we were passed a table of args -- directly, and assign it to a new variable (luaArgs).10 KB (1,447 words) - 05:11, 26 April 2020
- Module:No globals (category Lua metamodules)local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('Tried to read nil global ' .. tostring(k), 2) end return nil307 bytes (54 words) - 05:11, 26 April 2020