Module:Jcon/data
Appearance
![]() | This module is rated as ready for general use. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by sandbox testing rather than repeated trial-and-error editing. |
![]() | This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
![]() | This module depends on the following other modules: |
This module contains the data used by Module:Jcon, which is used by Template:Jcon.
local p = {}
local ETR407Text = {
['link'] = 'Ontario Highway 407',
['display'] = '407 ETR'
}
local ETR407Shield = {
['guide'] = 'Highway407crest.svg',
['shield'] = '407 Express Toll Route Traffic Sign.svg'
}
-- MTO signs
p.signs = {
['hospital'] = '[[File:Ontario M401.svg|19px]]',
['airport'] = '[[File:Ontario M502.svg|19px]]',
['bus'] = '[[File:Ontario M506.svg|19px]]',
['ferry'] = '[[File:Ontario M508.svg|19px]]',
['train station'] = '[[File:Ontario M509.svg|19px]]',
['tch'] = '[[File:TCH-blank.svg|x20px]]'
}
-- Road types
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',
['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',
['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'
}
}
-- Aliases for road types
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