Module:Jcon/data
Appearance
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| Editing of this module by new or unregistered users is currently disabled. See the protection policy and protection log for more details. If you cannot edit this module and you wish to make a change, you can submit an edit request, discuss changes on the talk page, request unprotection, log in, or create an account. |
| 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 = {}
-- 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'] = 'Ontario M509.svg',
['train station'] = 'Ontario M509.svg',
['tch'] = 'TCH-blank.svg'
}
-- Place types to strip when processing road types
p._placeTypes = {
'municipality',
'municipal',
'city',
'township',
'district',
'county',
'counties',
'united counties',
'region',
'regional',
'regional municipality',
'road'
}
-- Road types from Module:Road_data/strings/CAN/ON
local ON = require('Module:Road data/strings/CAN/ON')
for type, def in pairs(ON) do
p[string.lower(type)] = def
end
return p