Module:ColPollTable: Difference between revisions

Content deleted Content added
Created page with 'local p = {} local getArgs local CC_backgrounds = { r = { ['background-color'] = '#FFE6E6' }, d = { ['background-color'] = '#FFE6E6' }, g = { ['background-c...'
 
No edit summary
Line 47:
 
-- looks for parameter "name", otherwise returns "{{{name}}}"
local function argOrCall(name)
return mw.text.trim(args[name]) or String.format('{{{%s}}}',name)
end
Line 54:
local week_tbl = {}
week_tbl.name = 'Week' .. argsOrCall('Week'..i)
week_tbl.date = argsOrCallargOrCall('Week'..i..'Date')
week_tbl.cells = {}