Module:Sandbox/BrandonXLF/3: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 161:
if export ~= '' then export = export .. ' ' end -- Add a NBSP after the picture if it exists
export = export .. getText(frame, route, roadInfo, args) -- Return text of road 1
if args['dir'] then export = export .. ' ' .. args['dir'] end -- Add the dir
if args['con'] then
export = export .. ' / ' .. getText(frame, args['con'], roadInfo, args) -- Add the text of the first concurrency
if args['condir'] then export = export .. '/ ' .. args['condir'] end -- Add the dir
end
if args['con2'] then
export = export .. ' / ' .. getText(frame, args['con2'], roadInfo, args) -- Add the text of the first concurrency
if args['condir2'] then export = export .. '/ ' .. args['condir2'] end -- Add the dir
end
if args['tch'] then
export = export .. ' / [[Trans-Canada Highway|TCH]]' -- Add the TCH text
end
end
 
-- Add the direction to the text output
if args['dir'] then
export = export .. ' ' .. args['dir']
 
if args['condir'] then
export = export .. '/' .. args['condir']
end
if args['condir2'] then
export = export .. '/' .. args['condir2']
end
end