Module:Adjacent stations: Difference between revisions

Content deleted Content added
m better pattern
m remove numbered and blank parameters
Line 930:
code = mw.ustring.gsub(code, '(|[^=|]+)1=', '%1=')
t[2] = '}}'
code = mw.ustring.gsub(code, '|[^=|]+*=$', '')
code = mw.ustring.gsub(code, '|[^=|]*$', '')
end
code = mw.ustring.gsub(code, '|[^=|]+*=|', '|')
code = mw.ustring.gsub(code, '|[^=|]+=\n*|', '\n|')
code = mw.ustring.gsub(code, '|[^=|]*=\n', '\n')
code = mw.ustring.gsub(code, '|[^=|]*\n', '\n')
return t[1]..code..t[2]
end