Module:Climate chart/configuration: Difference between revisions
Appearance
Content deleted Content added
add a handful more, will do the others in the code direct |
move tables |
||
Line 1: | Line 1: | ||
local cfg = { |
|||
⚫ | |||
i18n = { |
i18n = { |
||
explainer = 'Climate chart ([[Template:Climate chart/How to read a climate chart|explanation]])', |
explainer = 'Climate chart ([[Template:Climate chart/How to read a climate chart|explanation]])', |
||
Line 23: | Line 23: | ||
max_precipitation = 'maxprecip', |
max_precipitation = 'maxprecip', |
||
source = 'source' |
source = 'source' |
||
}, |
|||
metric_default = { |
|||
precipitation = 80, |
|||
temperature_high = 20, |
|||
temperature_low = 10 |
|||
} |
} |
||
} |
} |
||
cfg.imperial_default = { |
|||
precipitation = metric_default.precipitation / 25.4, |
|||
temperature_high = metric_default.temperature_high * 1.8 + 32, |
|||
temperature_low = metric_default.temperature_low * 1.8 + 32 |
|||
} |
|||
⚫ |
Revision as of 00:24, 17 June 2023
local cfg = {
i18n = {
explainer = 'Climate chart ([[Template:Climate chart/How to read a climate chart|explanation]])',
months = { 'J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D' },
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 = metric_default.precipitation / 25.4,
temperature_high = metric_default.temperature_high * 1.8 + 32,
temperature_low = metric_default.temperature_low * 1.8 + 32
}
return cfg