Content deleted Content added
No edit summary |
No edit summary |
||
(93 intermediate revisions by the same user not shown) | |||
Line 2:
local p = {}
local navbar = require('Module:Navbar').navbar
return navbar('asd')
end▼
p.lengthcheck = function()
local asd = '123456789'
return string.len(asd)
p.indextable = function()
local t={}
t[#t+1]='odin'.. 1 + 0
t[#t+1]='dva'.. '1 + 1'
t[#t+1]='tri'.. 1.5 * 2
return table.concat(t, ', ') .. '.'
local function makeInvokeFunction(funcName)
Line 10 ⟶ 29:
return p[funcName](args)
end
end
p.link = makeInvokeFunction('_link')▼
function p._link(args)
local t = {
{h='a', d='1a'},
{h='b', d='2b'},
{h='c', d='3c'},
{h='d', d='4d'},
}
t[5] = {h = 'e', d = '5e'}
t[6] = {h = 'f', d = '6f'}
t[7] = {h = 'g', d = '7g'}
if i==5 then break
else▼
end
end
result=result..'\n|-'
for i,v in ipairs(t) do
end
result=result..'\n|-'
local t = {
{h='aa', d='1aa'},
{h='bb', d='2bb'},
{h='cc', d='3cc'},
{h='dd', d='4dd'},
}
for i,v in ipairs(t) do
result=result..'\n!'..v.h
end
result=result..'\n|-'
for i,v in ipairs(t) do
result=result..'\n|'..v.d
end
return result .. '\n|}'▼
end
Line 17 ⟶ 76:
local result
result = ''
if k2 > 2 then break
if (
result = result .. '\n|
end
elseif (k2 % 2 == 0) then result = result .. '||' .. v2
end
end
▲ result = result .. '|-\n!' .. k1 .. '\n|' .. v1 .. '\n'
▲ else
▲ result = result .. '|-\n!style="background:#f77"|' .. k1 .. '\n|' .. v1 .. '\n'
▲ end
▲ end
▲ result = '{|class="wikitable"\n' .. result .. '|}'
▲ return result
▲end
▲p.link = makeInvokeFunction('_link')
▲function p._link(args)
▲ local result
▲ for i = 10,100,10 do
▲ result = result .. ':' .. i .. '\n'
end
result = '{|class="wikitable"' .. result .. '\n|}'
return result
end
|