Module:WeatherBox: Difference between revisions

Content added Content deleted
m (1 revision imported)
en>Centrist16
m (Centrist16 moved page Module:Weather box to Module:WeatherBox without leaving a redirect)
Line 175: Line 175:
local result, color_str, value_str;
local result, color_str, value_str;
result = {'|- style="text-align: center;"\n! style="height: 16px;" | ', label, "\n"}
result = {'|- style="text-align: center;"\n! scope="row" style="height: 16px;" | ', label, "\n"}
for i = 1,13 do
for i = 1,13 do
color_str = color_values[i];
color_str = color_values[i];
Line 284: Line 284:
end
end
if mode == 'avg' then
if mode == 'avg' then
total = math_mod._round( total / 12, p1 + 1 );
total = math_mod._round( total / 12, p1 );
end
end
return tostring( total ), total;
return tostring( total ), total;