Edge Rewrite
Jump to content

Template:Weather box/samples

From Wikipedia, the free encyclopedia
Temperature in Celsius
-30-29-28-27-26-25-24-23-22-21
-20-19-18-17-16-15-14-13-12-11
-10-9-8-7-6-5-4-3-2-1
0123456789
10111213141516171819
20212223242526272829
30313233343536373839
40414243444546474849
50515253545556575859
Temperature in Fahrenheit
-30-28-26-24-22-20-18-16-14-12
-10-8-6-4-202468
10121416182022242628
30323436384042444648
50525456586062646668
70727476788082848688
9092949698100102104106108
110112114116118120122124126128
130132134136138140142144146148

Usage

[edit]

Template:Weather box/colt can be used to produce a background color in a table cell, based off a given number. Insert {{Weather box/colt|0}}, with a number from the Celsius table above as the first parameter, into a style statement.

Example
{| class="wikitable"
|-
| style="{{Weather box/colt|0.0}}"|32
| style="{{Weather box/colt|28.9}}"|84
| style="{{Weather box/colt|63.3}}"|146
|}

Will produce

32 84 146
Month Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Year
Record high °F (°C) 140
(60)
131
(55)
126
(52)
122
(50)
120
(49)
118
(48)
117
(47)
115
(46)
113
(45)
111
(44)
109
(43)
108
(42)
140
(60)
Mean maximum °F (°C) 99
(37)
90
(32)
86
(30)
85
(29)
82
(28)
80
(27)
79
(26)
77
(25)
76
(24)
74
(23)
72
(22)
70
(21)
99
(37)
Mean daily maximum °F (°C) 68
(20)
66
(19)
64
(18)
62
(17)
61
(16)
59
(15)
57
(14)
56
(13)
55
(13)
54
(12)
53
(12)
52
(11)
59
(15)
Daily mean °F (°C) 51
(11)
50
(10)
48
(9)
46
(8)
45
(7)
42
(6)
41
(5)
39
(4)
38
(3)
36
(2)
33
(1)
32
(0)
42
(6)
Mean daily minimum °F (°C) 31
(−1)
29
(−2)
27
(−3)
25
(−4)
23
(−5)
21
(−6)
19
(−7)
17
(−8)
15
(−9)
14
(−10)
13
(−11)
11
(−12)
20
(−6)
Mean minimum °F (°C) 9
(−13)
7
(−14)
5
(−15)
3
(−16)
1
(−17)
0
(−18)
−3
(−19)
−4
(−20)
−5
(−21)
−7
(−22)
−9
(−23)
−11
(−24)
−11
(−24)
Record low °F (°C) −13
(−25)
−15
(−26)
−18
(−28)
−22
(−30)
−26
(−32)
−29
(−34)
−33
(−36)
−45
(−43)
−47
(−44)
−49
(−45)
−51
(−46)
−53
(−47)
−53
(−47)
Average dew point °F (°C) −54
(−48)
−56
(−49)
−58
(−50)
−62
(−52)
−65
(−54)
−69
(−56)
−76
(−60)
−85
(−65)
−94
(−70)
−103
(−75)
−112
(−80)
−130
(−90)
−130
(−90)
Source 1: [1]
Source 2: [2]
mm of rain in a 30-day month
0369121518212427
30333639424548515457
60636669727578818487
90939699102105108111114117
120123126129132135138141144147
150153156159162165168171174177
180183186189192195198201204207
210213216219222225228231234237
240243246249252255258261264267
270273276279282285288291294297
300303306309312315318321324327
inches of rain in a 30-day month
0.00.10.20.30.40.50.60.70.80.9
1.01.11.21.31.41.51.61.71.81.9
2.02.12.22.32.42.52.62.72.82.9
3.03.13.23.33.43.53.63.73.83.9
4.04.14.24.34.44.54.64.74.84.9
5.05.15.25.35.45.55.65.75.85.9
6.06.16.26.36.46.56.66.76.86.9
7.07.17.27.37.47.57.67.77.87.9
8.08.18.28.38.48.58.68.78.88.9
9.09.19.29.39.49.59.69.79.89.9
10.010.110.210.310.410.510.610.710.810.9
11.011.111.211.311.411.511.611.711.811.9
cm of rain in a 30-day month
0.00.30.60.91.21.51.82.12.42.7
3.03.33.63.94.24.54.85.15.45.7
6.06.36.66.97.27.57.88.18.48.7
9.09.39.69.910.210.510.811.111.411.7
12.012.312.612.913.213.513.814.114.414.7
15.015.315.615.916.216.516.817.117.417.7
18.018.318.618.919.219.519.820.120.420.7
21.021.321.621.922.222.522.823.123.423.7
24.024.324.624.925.225.525.826.126.426.7
27.027.327.627.928.228.528.829.129.429.7
30.030.330.630.931.231.531.832.132.432.7
mm of rain a year
0306090120150180210240270
300330360390420450480510540570
600630660690720750780810840870
9009309609901,0201,0501,0801,1101,1401,170
1,2001,2301,2601,2901,3201,3501,3801,4101,4401,470
1,5001,5301,5601,5901,6201,6501,6801,7101,7401,770
1,8001,8301,8601,8901,9201,9501,9802,0102,0402,070
2,1002,1302,1602,1902,2202,2502,2802,3102,3402,370
2,4002,4302,4602,4902,5202,5502,5802,6102,6402,670
2,7002,7302,7602,7902,8202,8502,8802,9102,9402,970
3,0003,0303,0603,0903,1203,1503,1803,2103,2403,270
3,3003,3303,3603,3903,3203,4503,4803,5103,5403,570
inches of rain a year
0123456789
10111213141516171819
20212223242526272829
30313233343536373839
40414243444546474849
50515253545556575859
60616263646566676869
70717273747576777879
80818283848586878889
90919293949596979899
100101102103104105106107108109
110111112113114115116117118119
cm of rain a year
0369121518212427
30333639424548515457
60636669727578818487
90939699102105108111114117
120123126129132135138141144147
150153156159162165168171174177
180183186189192195198201204207
210213216219222225228231234237
240243246249252255258261264267
270273276279282285288291294297
300303306309312315318321324327
330333336339332345348351354357

Usage

[edit]

Template:Weather box/colp can be used to produce a background color in a table cell, based off a given number. Insert {{Weather box/colp|0}}, with a number from the mm in a 30-day month table above as the first parameter, into a style statement.

Example
{| class="wikitable"
|-
| style="{{Weather box/colp|18}}"|0.7
| style="{{Weather box/colp|157}}"|6.2
| style="{{Weather box/colp|297}}"|11.7
|}

Will produce

0.7 6.2 11.7
Hours of sunlight in a 30-day month
051015202530354045
50556065707580859095
100105110115120125130135140145
150155160165170175180185190195
200205210215220225230235240245
250255260265270275280285290295
300305310315320325330335340345
350355360365370375380385390395
400405410415420425430435440445
450455460465470475480485490495
500505510515520525530535540545
550555560565570575580585590595
600605610615620625630635640645
650655660665670675680685690695
Hours of sunlight a year
050100150200250300350400450
500550600650700750800850900950
1,0001,0501,1001,1501,2001,2501,3001,3501,4001,450
1,5001,5501,6001,6501,7001,7501,8001,8501,9001,950
2,0002,0502,1002,1502,2002,2502,3002,3502,4002,450
2,5002,5502,6002,6502,7002,7502,8002,8502,9002,950
3,0003,0503,1003,1503,2003,2503,3003,3503,4003,450
3,5003,5503,6003,6503,7003,7503,8003,8503,9003,950
4,0004,0504,1004,1504,2004,2504,3004,3504,4004,450
4,5004,5504,6004,6504,7004,7504,8004,8504,9004,950
5,0005,0505,1005,1505,2005,2505,3005,3505,4005,450
5,5005,5505,6005,6505,7005,7505,8005,8505,9005,950
6,0006,0506,1006,1506,2006,2506,3006,3506,4006,450
6,5006,5506,6006,6506,7006,7506,8006,8506,9006,950
Hours of sunlight in a day
0.00.20.40.60.81.01.21.41.61.8
2.02.22.42.62.83.03.23.43.63.8
4.04.24.44.64.85.05.25.45.65.8
6.06.26.46.66.87.07.27.47.67.8
8.08.28.48.68.89.09.29.49.69.8
10.010.210.410.610.811.011.211.411.611.8
12.012.212.412.612.813.013.213.413.613.8
14.014.214.414.615.015.215.415.615.816.0
16.216.416.616.817.017.217.417.617.818.0
18.218.418.618.819.019.219.419.619.820.0
20.220.420.620.821.021.221.421.621.822.0
22.222.422.622.823.023.223.423.623.824.0
Percent sunshine
0123456789
10111213141516171819
20212223242526272829
30313233343536373839
40414243444546474849
50515253555657585960
61626364656667686970
71727374757677787980
81828384858687888990
919293949596979899100

Usage

[edit]

Module:Weather box/colors can be used to produce a background color in a table cell, based off a given number. Insert {{#invoke:Weather box/colors|color_s|0}}, with a number from the hours in a 30-day month table above as the first parameter, into a style statement.

Example
{| class="wikitable"
|-
| style="font-size:85%;{{#invoke:Weather box/colors|color_s|37}}"|450
| style="font-size:85%;{{#invoke:Weather box/colors|color_s|279}}"|3,400
| style="font-size:85%;{{#invoke:Weather box/colors|color_s|522}}"|6,350
|}

Will produce

450 3,400 6,350
  1. "Unknown". Retrieved August 10, 2020.
  2. "Unknown". Retrieved August 10, 2020.