Module:Sandbox/Sameboat/m1: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 10:
return p[funcName](args)
end
end
p.link = makeInvokeFunction('_link')
function p._link(args)
local result='{|class="wikitable"\n'
local t
t.a='1a'
t.b='2b'
t.c='3c'
t.d='4d'
for k,v in ipair(t) do
result=result..'\n|-\n!'..k..'\n|'..v
end
return result .. '\n|}'
end
Line 30 ⟶ 45:
end
result = '{|class="wikitable"' .. result .. '\n|}'
return result
end
p.link = makeInvokeFunction('_link')
function p._link(args)
local result='{|class="wikitable"\n'
local t
t.a='1a'
t.b='2b'
t.c='3c'
t.d='4d'
for k,v in ipair(t) do
result=result..'\n|-\n!'..k..'\n|'..v
end
return result
end