Module:Adjacent stations/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 609:
}
if mw.ustring.match(icon, regex[1]) then
icon = mw.ustring.gsub(icon, tmpregex[1], size .. '%1')
-- elseif mw.ustring.match(icon, tmpregex[2]) then
-- icon = gsub(icon, tmpregex[2], size .. '%1')
-- elseif mw.ustring.match(icon, tmpregex[3]) then
-- icon = gsub(icon, tmpregex[3], size .. '%1')
else
icon = mw.ustring.gsub(icon, '(%[%[[^%]|]+)([%]|])', '%1' .. size .. '%2')