Module:Sandbox/ProcrastinatingReader/Dbm: Difference between revisions

Content deleted Content added
better document the code
assert position in string
 
(One intermediate revision by the same user not shown)
Line 9:
end
 
keys = table.sort(keys)
return keys
end
Line 20:
local size = 0
for k,v in pairs(args) do
if string.match(v, '^[GgAaFfCcUuRrTtPp]%d%d?$') then -- Begin collecting args for a new CSD
current, size = string.lower(v), 0
tbl[current] = {['size'] = size}
Line 39:
local csdTable = constructCsdTable(args)
local csdKeys = getTableKeys(csdTable)
--if true then return mw.dumpObject(csdTable) end
 
local builtCsdTemplates = {}