Module:ColPollTable: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 48:
-- looks for parameter "name", otherwise returns "{{{name}}}"
local function argOrCall(name)
return mw.text.trim(args[name]) or Stringstring.format('{{{%s}}}',name)
end
Line 58:
 
for j=1,25 do
local wkdt = Stringstring.format('Week%s-%s',i,j)
local wkcolor = Stringstring.format('Week%s-%s Color',i,j)
wkdt = argOrCall(wkdt)
wkcolor = string.lower(argOrCall(wkcolor))