Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Jcon/data

Permanently protected module
From Wikipedia, the free encyclopedia

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