Module:Jcon/data/sandbox
Appearance
< Module:Jcon | data
This is the module sandbox page for Module:Jcon/data (diff). |
This module contains the data used by Module:Jcon, which is used by Template:Jcon.
local p = {}
-- 407 ETR text exception
local ETR407Text = {
['link'] = 'Ontario Highway 407',
['display'] = '407 ETR'
}
-- 407 ETR image exception
local ETR407Shield = {
['guide'] = 'Highway407crest.svg',
['shield'] = '407 Express Toll Route Traffic Sign.svg',
['toShield'] = '407 ETR svg format.svg',
['shieldTall'] = true
}
-- MTO signs - Table mapping sign names to their image
p.signs = {
['hospital'] = 'Ontario M401.svg',
['airport'] = 'Ontario M502.svg',
['bus'] = 'Ontario M506.svg',
['ferry'] = 'Ontario M508.svg',
['train station'] = 'Ontario M509.svg',
['tch'] = 'TCH-blank.svg'
}
-- Road types - Table mapping of road types to their definitions
-- Text config values
-- prefix - The prefix to use for links
-- type - The road type to use for links and display names
-- Image config values - Fallback order is toShield > toGuide > shield > guide
-- guide - Junction guide file format. %s is the route name/number
-- shield - Reassurance marker file format. %s is the route name/number
-- toGuide - Junction guide file format to use for "to" routes. %s is the route name/number
-- toShield - Reassurance marker file format to use for "to" routes. %s is the route name/number
-- shieldTall - True if the reassurance marker is tall
-- If no tall shields are present, MTO signs will have their height set rather than width
-- Exception config values
-- textExceptions - Table mapping route numbers to a table of:
-- link - The article title
-- display - The shown text
-- imgExceptions - Table mapping route numbers to "Image config values"
p.types = {
['brant'] = {
['prefix'] = 'Brant',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['brant county highway'] = {
['prefix'] = 'Brant',
['type'] = 'County Highway',
['guide'] = 'RR %s jct.svg'
},
['bruce'] = {
['prefix'] = 'Bruce',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['carleton'] = {
['prefix'] = 'Carleton',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['central frontenac'] = {
['prefix'] = 'Central Frontenac',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Central Frontenac Township Road %s.svg'
},
['chatham-kent'] = {
['prefix'] = 'Chatham-Kent',
['type'] = 'Municipal Road',
['guide'] = 'RR %s jct.svg'
},
['cornwall'] = {
['prefix'] = 'Cornwall',
['type'] = 'Municipal Road',
['guide'] = 'RR %s jct.svg'
},
['dufferin'] = {
['prefix'] = 'Dufferin',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['durham'] = {
['prefix'] = 'Durham',
['type'] = 'Regional Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Durham Regional Road %s.svg'
},
['durham regional highway'] = {
['prefix'] = 'Durham',
['type'] = 'Regional Highway',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Durham Regional Highway %s.svg'
},
['elgin'] = {
['prefix'] = 'Elgin',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['essex'] = {
['prefix'] = 'Essex',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Essex County Road %s.png'
},
['frontenac'] = {
['prefix'] = 'Frontenac',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['frontenac islands'] = {
['prefix'] = 'Frontenac Islands',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['grey'] = {
['prefix'] = 'Grey',
['type'] = 'County Road',
['guide'] = 'RR %s jct blue.svg'
},
['haldimand'] = {
['prefix'] = 'Haldimand',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['haldimand county highway'] = {
['prefix'] = 'Haldimand',
['type'] = 'County Highway',
['guide'] = 'RR %s jct.svg'
},
['haliburton'] = {
['prefix'] = 'Haliburton',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['halton'] = {
['prefix'] = 'Halton',
['type'] = 'Regional Road',
['guide'] = 'Halton RR %s jct.svg',
['shield'] = 'Halton Regional Road %s.svg'
},
['hamilton'] = {
['prefix'] = 'Hamilton',
['type'] = 'City Road',
['guide'] = 'RR %s jct blue.svg',
['shield'] = 'Hamilton Ontario Road %s Shield.svg'
},
['hamilton regional road'] = {
['prefix'] = 'Hamilton',
['type'] = 'Regional Road',
['guide'] = 'RR %s jct blue.svg',
['shield'] = 'Hamilton Ontario Road %s Shield.svg'
},
['hastings'] = {
['prefix'] = 'Hastings',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['highway'] = {
['prefix'] = 'Ontario',
['type'] = 'Highway',
['guide'] = 'Ontario %s crown.svg',
['shield'] = 'Ontario %s.svg',
['toGuide'] = 'Ontario To %s crown.svg',
['shieldTall'] = true,
['textExceptions'] = {
['407ETR'] = ETR407Text,
['407 ETR'] = ETR407Text,
['QEW'] = {
['link'] = 'Queen Elizabeth Way',
['display'] = 'Queen Elizabeth Way'
}
},
['imgExceptions'] = {
['407ETR'] = ETR407Shield,
['407 ETR'] = ETR407Shield
}
},
['huron'] = {
['prefix'] = 'Huron',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['kawartha lakes'] = {
['prefix'] = 'Kawartha Lakes',
['type'] = 'Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'KL Road %s.svg'
},
['kingston'] = {
['prefix'] = 'Kingston',
['type'] = 'Road',
['guide'] = 'RR %s jct.svg'
},
['lambton'] = {
['prefix'] = 'Lambton',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['lanark'] = {
['prefix'] = 'Lanark',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['leeds and grenville'] = {
['prefix'] = 'Leeds and Grenville',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['lennox and addington'] = {
['prefix'] = 'Lennox and Addington',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['middlesex'] = {
['prefix'] = 'Middlesex',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['muskoka'] = {
['prefix'] = 'Muskoka',
['type'] = 'District Road',
['guide'] = 'RR %s jct.svg'
},
['niagara'] = {
['prefix'] = 'Niagara',
['type'] = 'Regional Road',
['guide'] = 'RR %s jct blue.svg',
['shield'] = 'Niagara Regional Road %s.svg'
},
['norfolk'] = {
['prefix'] = 'Norfolk',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['norfolk county highway'] = {
['prefix'] = 'Norfolk',
['type'] = 'County Highway',
['guide'] = 'RR %s jct.svg'
},
['north dumfries'] = {
['prefix'] = 'North Dumfries',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['north frontenac'] = {
['prefix'] = 'North Frontenac',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['northumberland'] = {
['prefix'] = 'Northumberland',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['ottawa'] = {
['prefix'] = 'Ottawa',
['type'] = 'Road',
['guide'] = 'RR %s jct.svg'
},
['ottawa-carleton'] = {
['prefix'] = 'Ottawa–Carleton',
['type'] = 'Regional Road',
['guide'] = 'RR %s jct.svg'
},
['oxford'] = {
['prefix'] = 'Oxford',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['peel'] = {
['prefix'] = 'Peel',
['type'] = 'Regional Road',
['guide'] = 'Peel RR %s jct.svg',
['shield'] = 'Peel Regional Road %s.svg'
},
['perth'] = {
['prefix'] = 'Perth',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Perth County Line %s.svg'
},
['perth county line'] = {
['prefix'] = 'Perth',
['type'] = 'County Line',
['guide'] = 'RR %s jct.svg'
},
['peterborough'] = {
['prefix'] = 'Peterborough',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['prescott and russell'] = {
['prefix'] = 'Prescott and Russell',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['prince edward'] = {
['prefix'] = 'Prince Edward',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['quinte west'] = {
['prefix'] = 'Quinte West',
['type'] = 'Municipal Road',
['guide'] = 'RR %s jct.svg'
},
['renfrew'] = {
['prefix'] = 'Renfrew',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['simcoe'] = {
['prefix'] = 'Simcoe',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Simcoe Road %s sign.png'
},
['south frontenac'] = {
['prefix'] = 'South Frontenac',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'South Frontenac Township Road %s.svg'
},
['stormont, dundas and glengarry'] = {
['prefix'] = 'Stormont, Dundas and Glengarry',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['sudbury'] = {
['prefix'] = 'Greater Sudbury',
['type'] = 'Municipal Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Greater Sudbury %s.svg'
},
['toll'] = {
['prefix'] = 'Ontario',
['type'] = 'Highway',
['guide'] = 'Ontario %s crown toll.svg',
['shield'] = 'Ontario %s Toll.svg',
['shieldTall'] = true,
['textExceptions'] = {
['407ETR'] = ETR407Text,
['407 ETR'] = ETR407Text,
},
['imgExceptions'] = {
['407ETR'] = ETR407Shield,
['407 ETR'] = ETR407Shield
}
},
['toronto'] = {
['prefix'] = 'Toronto',
['type'] = 'Municipal Expressway',
['guide'] = '%s Shield.svg',
['shield'] = '%s Shield.svg',
['textExceptions'] = {
['DVP'] = {
['link'] = 'Don Valley Parkway',
['display'] = 'Don Valley Parkway'
},
['Gardiner'] = {
['link'] = 'Gardiner Expressway',
['display'] = 'Gardiner Expressway'
}
}
},
['tyendinaga'] = {
['prefix'] = 'Tyendinaga',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['waterloo'] = {
['prefix'] = 'Waterloo',
['type'] = 'Regional Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'Waterloo Regional Road %s.svg'
},
['wellesley'] = {
['prefix'] = 'Wellesley',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['wellington'] = {
['prefix'] = 'Wellington',
['type'] = 'County Road',
['guide'] = 'RR %s jct.svg'
},
['wilmot'] = {
['prefix'] = 'Wilmot',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['wollaston'] = {
['prefix'] = 'Wollaston',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['woolwich'] = {
['prefix'] = 'Woolwich',
['type'] = 'Township Road',
['guide'] = 'RR %s jct.svg'
},
['york'] = {
['prefix'] = 'York',
['type'] = 'Regional Road',
['guide'] = 'RR %s jct.svg',
['shield'] = 'York Regional Road %s.svg'
}
}
-- Table mapping alises to the name of the road type they refer to
p.aliases = {
['bch'] = 'brant county highway',
['c frontenac'] = 'central frontenac',
['chatham kent'] = 'chatham-kent',
['ck'] = 'chatham-kent',
['ckl'] = 'kawartha lakes',
['cqw'] = 'quinte west',
['drh'] = 'durham regional highway',
['fi'] = 'frontenac islands',
['greater sudbury'] = 'sudbury',
['gs'] = 'sudbury',
['hch'] = 'haldimand county highway',
['hh'] = 'haliburton',
['hrr'] = 'hamilton regional road',
['hwy'] = 'highway',
['kawartha lake'] = 'kawartha lakes',
['kl'] = 'kawartha lakes',
['klinfo'] = 'kawartha lakes',
['la'] = 'lennox and addington',
['lg'] = 'leeds and grenville',
['n dumfries'] = 'north dumfries',
['n frontenac'] = 'north frontenac',
['nch'] = 'norfolk county highway',
['oc'] = 'ottawa-carleton',
['pb'] = 'peterborough',
['pcl'] = 'perth county line',
['pec'] = 'prince edward',
['pr'] = 'prescott and russell',
['qw'] = 'quinte west',
['qwinfo'] = 'quinte west',
['s frontenac'] = 'south frontenac',
['sb'] = 'sudbury',
['sdg'] = 'stormont, dundas and glengarry',
['stormont dundas and glengarry'] = 'stormont, dundas and glengarry',
['stormont, dundas, glengarry'] = 'stormont, dundas and glengarry',
['train'] = 'train station',
['to'] = 'toronto',
['tor'] = 'toronto',
['yr'] = 'york'
}
-- Place types to strip when processing road types
p.placeTypes = {
'municipality',
'municipal',
'city',
'township',
'district',
'county',
'counties',
'united counties',
'region',
'regional',
'regional municipality',
'road'
}
return p