Module:Sandbox/Sameboat/m1: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 18:
result = ''
for k1, v1 in ipairs(mw.text.split(somelist, '\n')) do
for k2, v2 in ipairs(mw.text.split(v1 .. '\\', '\\')) do
if (k2 %> 2 ==then 0) thenbreak
elseif (k2 % 2 == 0) then result = result .. '||' .. v2
else
if (k1 % 2 == 0) then
result = result .. '\n|-style="background:#888"\n!' .. k1 .. '\n|' .. v2 .. '||'
else
if (k1 % 2 == 0) then
result = result .. '\n|-\n!' .. k1 .. '\n|' .. v2 .. '||'
result = result .. '\n|-style="background:#888"\n!' .. k1 .. '\n|' .. v2 .. '||'
else result = result .. '\n|-\n!' .. k1 .. '\n|' .. v2 .. '||'
end
end