Template talk:Weather box/Archive 11
![]() | This is an archive of past discussions about Template:Weather box. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 5 | ← | Archive 9 | Archive 10 | Archive 11 |
Color of February precipitation box is slightly darker than it should be.
Throughout my time editing climate sections, I've often noticed that the color of the precipitation box for February is darker than it should be. Higher precipitation values should result in a darker color (and lower values, lighter colors), but sometimes this is not the case. For example, in Template:Atlanta weatherbox, although February precipitation has a value 0.13 inches lower than March, it's lightness value is 0.02 lower than March (the color should be lighter, and should thus have a higher lightness value, but it doesn't). This is a very subtle example (other examples that may be more obvious to the naked eye elude my memory). Or maybe the other months are lighter than they should be. Either way, there's something wrong (or maybe I'm just going crazy and the colors are how they are supposed to be).
As I'm writing this, I now realize that the effect is much more obvious in the snowfall values (which I believe may be due to the fact that the metric units used for snow data in weatherboxes is often an order of magnitude greater than used for other precipitation values, e.g. cm instead of mm, and thus the effect of the error is amplified tenfold). For example, in the weatherbox for Great Falls, Montana, February and March have the same value for average snowfall, but the color for the February snow cell/box is noticeably darker. Akamaikai (talk) 22:04, 13 June 2024 (UTC)
- February has about 28.25 days, on average. March has 31. Compare:
- Feb and Mar same total snowfall per month:
Climate data for Great Falls, Montana (Great Falls Int'l), 1991–2020 normals,[a] extremes 1891–present | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Month | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Year |
Average snowfall inches (cm) | 9.2 (23) |
10.1 (26) |
10.1 (26) |
9.4 (24) |
1.9 (4.8) |
0.3 (0.76) |
0.0 (0.0) |
0.3 (0.76) |
0.8 (2.0) |
5.2 (13) |
9.2 (23) |
9.6 (24) |
66.1 (167.32) |
[citation needed] |
- Feb and Mar same snowfall per day:
Climate data for Great Falls, Montana (Great Falls Int'l), 1991–2020 normals,[b] extremes 1891–present | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Month | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Year |
Average snowfall inches (cm) | 9.2 (23) |
10.1 (26) |
11.1 (28) |
9.4 (24) |
1.9 (4.8) |
0.3 (0.76) |
0.0 (0.0) |
0.3 (0.76) |
0.8 (2.0) |
5.2 (13) |
9.2 (23) |
9.6 (24) |
67.1 (169.32) |
[citation needed] |
- Does that help? – Jonesey95 (talk) 02:53, 14 June 2024 (UTC)
- So the coloring is also based off of how many days are in the month? Also in the second one February is still darker than March. Akamaikai (talk) 16:03, 15 June 2024 (UTC)
- Yes, it is based on a daily rate rather than a cumulative amount per month. As for the color difference, it looks like February is #000054 and March is #00005C, which is a tiny difference that I would chalk up to rounding. – Jonesey95 (talk) 17:30, 15 June 2024 (UTC)
- So the coloring is also based off of how many days are in the month? Also in the second one February is still darker than March. Akamaikai (talk) 16:03, 15 June 2024 (UTC)
Notes
- ^ Mean monthly maxima and minima (i.e. the expected highest and lowest temperature readings at any point during the year or given month) calculated based on data at said ___location from 1991 to 2020.
- ^ Mean monthly maxima and minima (i.e. the expected highest and lowest temperature readings at any point during the year or given month) calculated based on data at said ___location from 1991 to 2020.
- See also this archive thread (2008) and this archive thread (2018) and the "month_adj" function in Module:Weather box/row. – Jonesey95 (talk) 03:18, 14 June 2024 (UTC)
Maximum of only 2 sources for weather boxes
I brought up how I was unable to add a third source for a weather box on the wiki help desk and was told that the maximum amount of sources is 2 and advised that if I want to suggest it be changed to allow a further source to bring it up here.
In my past couple of weeks editing in wikipedia I have had to give up on improving many weather boxes where I may have additional data such as temperature records or they have incomplete data as there are already 2 sources. If weather boxes could have at least 3 sources that would solve this problem. Is there a reason why the maximum is 2? Javier1957 (talk) 04:32, 18 July 2024 (UTC)
- See if Template talk:Weather box/Archive 9#More than 2 sources? works. It's limited to two only because no one has got around to enhancing it although I think some previous discussions have shown that some people prefer to use only the first source line. Johnuniq (talk) 06:03, 18 July 2024 (UTC)
- Thank you. I looked at the link you sent but I wasn't able to see how those pages included more than 2 sources as they are written only as "{'{Edmonton City Center weatherbox}}" for example. Are you able to explain or send me a link to somewhere to learn how to put multiple in the first source line? Earlier I spent an hour or so playing around but I wasn't successful. Cheers
- Javier1957 (talk) 09:26, 18 July 2024 (UTC)
- Now that I look at it, I see that it is very ugly. A quick outline is that you would click, for example, the Edmonton#Climate link. The first weatherbox has various sources and you need to see the wikitext that was used to generate them. Click "Edit" next to the Climate heading. Searching through that shows that the wikitext is not there. Instead, we see
{{Edmonton City Centre weatherbox}}
. That is a template. The easiest way to see them is to now click Preview. Near the bottom of the screen you might be able to see "Templates used in this preview" where you can find Template:Edmonton City Centre weatherbox. Clicking that shows the template which you can edit to see the wikitext. It's a real mess and I would never have been able to follow it until I had been doing this sort of thing for months. It looks like this: |source 1 = TEXT1<ref>REF1</ref>, TEXT2<ref>REF2</ref>, TEXT3<ref>REF3</ref>
- Johnuniq (talk) 10:32, 18 July 2024 (UTC)
- Thank you for your help. I've only been editing for a couple of weeks so it was very difficult for me to follow but the way you have written it worked well and I was able to add more than 2 sources. Cheers Javier1957 (talk) 23:45, 18 July 2024 (UTC)
- Also check {{Yellowknife weatherbox}} which has three sources as "source 1" (all to Environment and Climate Change Canada or ECCC) and one source for "source 2" because it is a different organization from the first. CambridgeBayWeather (solidly non-human), Uqaqtuq (talk), Huliva 19:49, 18 July 2024 (UTC)
- Now that I look at it, I see that it is very ugly. A quick outline is that you would click, for example, the Edmonton#Climate link. The first weatherbox has various sources and you need to see the wikitext that was used to generate them. Click "Edit" next to the Climate heading. Searching through that shows that the wikitext is not there. Instead, we see