Difference between revisions of "Module:Icon"

Jump to navigation Jump to search
6 bytes added ,  16:57, 14 February 2022
no edit summary
Line 59: Line 59:
function p.iconList(frame)
function p.iconList(frame)
list = string.gsub(string.gsub(frame.args[1], '%[%[', ''), '%]%]', '')
list = string.gsub(string.gsub(frame.args[1], '%[%[', ''), '%]%]', '')
list = string.gsub(string.gsub(list, '%{%{item%|', ''), '%}%}', '')
-- list = string.gsub(string.gsub(list, '%{%{item%|', ''), '%}%}', '')
list = string.gsub(list, '<br%s>', ';')
-- list = string.gsub(list, '<br%s>', ';')
list = string.gsub(list, '%|', '-')
-- list = string.gsub(list, '%|', '-')
mw.log(list)
mw.log(list)
list = mw.text.split(list, ';')
list = mw.text.split(list, ';')

Navigation menu