1,124
edits
Line 40: | Line 40: | ||
t = frame.args[1] | t = frame.args[1] | ||
return _requirements(r, v, l, t) | return _requirements(r, v, l, t) | ||
end | |||
function p.iconList(frame) | |||
list = mw.text.split(frame.args[1], ';') | |||
result = '' | |||
for k, v in ipair(list) do | |||
vs = mw.text.split(v, '-') | |||
result = result .. _requirements(vs[1], vs[2], nil, frame.args['text']) | |||
if k ~= table.getn(list) then | |||
result = result .. '<br />' | |||
end | |||
end | |||
return result | |||
end | end | ||