Module:Sandbox/Sameboat/m1: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 16:
local somelist = args[1]
local result
result = '{|class="wikitable"\n'
local tmp = mw.text.split(somelist, '\n')
for k1, v1 in pairs(tmp) do
Line 25:
else
if (k1 % 2 == 0) then
result = result .. '|-style="background:#888"\n!' .. k1 .. '\n|style="background:#f77"|' .. v2
else
result = result .. '|-\n!' .. k1 .. '\n|' .. v2
Line 31:
end
end
end
result = '{|class="wikitable"\n' .. result .. '|}'
return result
end