Module:Weather box/sandbox: Difference between revisions

Content deleted Content added
restore version at 03:12, 1 June 2023 to remove temporary tests
sync + try "Percentage possible sunshine" per talk proposal
 
(2 intermediate revisions by 2 users not shown)
Line 178:
annual_mode = 'max',
},
{---------- FIRST LINE AVERAGEMEAN HIGHDAILY MAXIMUM TEMPERATURES ----------
WANTROW = _ifany(' high C') or _ifany(' high F'),
mode = 'temperature',
Line 184:
color_scheme = _colorscheme('temperature', 't'),
scale_factor = '1',
label = 'AverageMean highdaily maximum °' .. _if('metric first', 'C', 'F') .. _ifSingle(' (°' .. _if('metric first', 'F', 'C') .. ')'),
annual_mode = 'avg',
},
Line 196:
annual_mode = 'avg',
},
{---------- FIRST LINE AVERAGEMEAN LOWDAILY MINIMUM TEMPERATURES ----------
WANTROW = _ifany(' low C') or _ifany(' low F'),
mode = 'temperature',
Line 202:
color_scheme = _colorscheme('temperature', 't'),
scale_factor = '1',
label = 'AverageMean lowdaily minimum °' .. _if('metric first', 'C', 'F') .. _ifSingle(' (°' .. _if('metric first', 'F', 'C') .. ')'),
annual_mode = 'avg',
},
Line 295:
annual_mode = 'max',
},
{---------- SECOND LINE AVERAGEMEAN HIGHDAILY MAXIMUM TEMPERATURES ----------
WANTROW = not options.wantSingleLine and (_ifany(' high C') or _ifany(' high F')),
mode = 'temperature',
Line 302:
color_scheme = _colorscheme('temperature', 't'),
scale_factor = '1',
label = 'AverageMean highdaily maximum °' .. _if('metric first', 'F', 'C'),
annual_mode = 'avg',
},
Line 316:
annual_mode = 'avg',
},
{---------- SECOND LINE AVERAGEMEAN LOWDAILY MINIMUM TEMPERATURES ----------
WANTROW = not options.wantSingleLine and (_ifany(' low C') or _ifany(' low F')),
mode = 'temperature',
Line 323:
color_scheme = _colorscheme('temperature', 't'),
scale_factor = '1',
label = 'AverageMean lowdaily minimum °' .. _if('metric first', 'F', 'C'),
show = _if('metric first', '2', '1'),
annual_mode = 'avg',
Line 502:
color_scheme = _colorscheme('sun', 's'),
scale_factor = '7.2',
label = 'PercentPercentage [[Sunshine duration|possible sunshine]]',
annual_mode = 'avg',
},