Content deleted Content added
BrandonXLF (talk | contribs) No edit summary |
BrandonXLF (talk | contribs) No edit summary |
||
Line 11:
if roadInfo['pic'] then
local fileName = roadInfo['pic'][1] .. route .. roadInfo['pic'][2] -- Get filename from template
routeNum = tonumber(routeNum)
-- Override the default format with exceptions for some highways
if division == 'highway' or division == 'toll' then
▲ highwayNumber = string.gsub(route, '%D', '')
▲ if route:upper() == '407ETR' then -- Picture exceptions
fileName = 'Highway407crest.png'
elseif
fileName = 'Ontario Highway ' .. route .. '.svg'
elseif args['shield'] == 'yes' then
fileName = 'Ontario ' .. route .. '.svg'
end
end
Line 58 ⟶ 51:
elseif division == 'kawartha lakes' then
size = '21px'
elseif routeNum and routeNum >= 800 then
size = '20px'
elseif args['shield'] == 'yes' and division == 'highway' then
size = 'x25px'
|