Module:ExplodeAndList
Appearance
Documentation for this module may be created at Module:ExplodeAndList/doc
local p = {}
function p.explodeAndList(frame)
local titulonan = frame.args[1] or ""
local nombernan = frame.args[2] or ""
local titulonan_list = mw.text.split(titulonan, '<br />')
local nombernan_list = mw.text.split(nombernan, '<br />')
local result = {}
for i = 1, math.min(#titulonan_list, #nombernan_list) do
table.insert(result, '* ' .. titulonan_list[i] .. ' ' .. nombernan_list[i])
end
return table.concat(result, '\n')
end
return p