Module:Jcon/data/sandbox
Appearance
< Module:Jcon | data
| This is the module sandbox page for Module:Jcon/data (diff). |
| 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. |
| 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 ON = require('Module:Road data/strings/CAN/ON')
-- 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
p.typeMap = {}
for type, _ in pairs(ON) do
p.typeMap[string.lower(type)] = type
end
return p