Module:Rail/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 269:
style and string.match(style, 'route') then
if string.match(lineTitle, '|') then
root:wikitext((string.gsub(lineTitle, '%[%[.*|(.*)%]%]', tostring(box))))
else
root:wikitext((string.gsub(lineTitle, '%[%[.*(%]%])', '|' .. tostring(box) .. ']]')))
end
elseif style == 'box' then