Module:Climate chart/configuration

From AP Wiki

Documentation for this module may be created at Module:Climate chart/configuration/doc

local cfg = {
	i18n = {
		explainer = 'Climate chart ([[Template:Climate chart/How to read a climate chart|explanation]])',
		months = { 'S', 'W', 'B', 'C', 'B', 'S', 'M', 'C', 'T', 'H', 'H', 'L' },
		explainer_key = '█',
		explainer_celsius = ' Average max. and min. temperatures in °C',
		explainer_fahrenheit = ' Average max. and min. temperatures in °F',
		explainer_in = ' Precipitation totals in inches',
		explainer_mm = ' Precipitation totals in mm',
		source = 'Source: %s',
		secondary_title_metric = 'Metric conversion',
		secondary_title_imperial = 'Imperial conversion',
	},
	keyword = {
		imperial = 'imperial'
	},
	arg = {
		title = 1,
		units = 'units',
		clear = 'clear',
		width = 'width',
		float = 'float',
		max_precipitation = 'maxprecip',
		source = 'source'
	},
	metric_default = {
		precipitation = 80,
		temperature_high = 20,
		temperature_low = 10
	}
}

cfg.imperial_default = {
	precipitation = cfg.metric_default.precipitation / 25.4,
	temperature_high = cfg.metric_default.temperature_high * 1.8 + 32,
	temperature_low = cfg.metric_default.temperature_low * 1.8 + 32
}

return cfg
Cookies help us deliver our services. By using our services, you agree to our use of cookies.