Difference between revisions of "Module:Icon"

Jump to navigation Jump to search
309 bytes added ,  15:52, 23 October 2021
no edit summary
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


Navigation menu