Content deleted Content added
No edit summary |
No edit summary |
||
Line 3:
function p.main(frame)
--
local text = '\n' .. (frame.args[1] or '') .. '\n'
-- clean the input
text = mw.ustring.gsub('%s*[%d][%d]*%s*logo%s*[\r\n]([A-Z][^0-9\r\n]*)[\r\n]', '%1')
-- split into lines
local lines = mw.text.split(text, '[\r\n]')
-- hash to keep track of team abbreviations
|