[go: nahoru, domu]

Template talk:Weather box: Difference between revisions

Content deleted Content added
(4 intermediate revisions by 4 users not shown)
Line 1:
{{WikiProject Weather|class=Template|importance=no}}
{{Template talk:Weather box/HelpBox}}
{{WikiProject banner shell|
{{WikiProject Weather|class=Template|importance=no}}
}}
{{Archive box |search=yes |bot=MiszaBot II |age=3 |units=months |auto=long |index=/Archive index}}
{{User:MiszaBot/config
Line 87 ⟶ 89:
 
As solar energy is increasingly important this is now often collected by meteorology organisations.
 
== Accumulation error ==
 
Problem: The annual total of the secondary measurement system is calculated by summing the '''rounded''' monthly figures, hence the rounding error for each month accumulates.
 
Example: Below, each month of 1mm (0.04 in) is correctly rounded to 0.0 in, but the annual total of 12mm (0.47 in) is shown to be 0.0 in, instead of 0.5 in, as it adds 12 times 0.0.
 
Solution: For the annual total of the secondary measurement system, convert the annual total of the primary measuring system.
 
{{Weather box|width=auto
|metric first = yes
|single line = yes
|location= this talk page
 
|Jan precipitation mm=1
|Feb precipitation mm=1
|Mar precipitation mm=1
|Apr precipitation mm=1
|May precipitation mm=1
|Jun precipitation mm=1
|Jul precipitation mm=1
|Aug precipitation mm=1
|Sep precipitation mm=1
|Oct precipitation mm=1
|Nov precipitation mm=1
|Dec precipitation mm=1
}} [[User:Hypnôs|Hypnôs]] ([[User talk:Hypnôs|talk]]) 00:01, 25 May 2023 (UTC)
:Thanks for the report. I think the idea was to make sure that the displayed numbers added up correctly. That is, so the Year value was the exact sum of the monthly values rather than being off-by-one due to rounding. I'll take a look at it later but I might need a reminder in a few days if no one else works out what to do. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 08:53, 26 May 2023 (UTC)
 
{{Weather box|width=auto
|metric first = yes
|single line = yes
|location= this talk page
|Jan precipitation mm=1.0
|Feb precipitation mm=1.0
|Mar precipitation mm=1.0
|Apr precipitation mm=1.0
|May precipitation mm=1.0
|Jun precipitation mm=1.0
|Jul precipitation mm=1.0
|Aug precipitation mm=1.0
|Sep precipitation mm=1.0
|Oct precipitation mm=1.0
|Nov precipitation mm=1.0
|Dec precipitation mm=1.0
|year precipitation mm=12.0
}}
 
::{{u|Johnuniq}} & {{u|Hypnôs}}. The predominant user of inches for precipitation is the United States. The US standard is to have two decimal places for rain and total precip. I ''think'' that snow is to one decimal place. The WMO standard for mm (rain and total precipitation) and cm (snow) is to one decimal place. If you change the the mm in the example to 1.0 it works a bit better. [[User:CambridgeBayWeather|CambridgeBayWeather]] (solidly non-human), [[User talk:CambridgeBayWeather|Uqaqtuq (talk)]], [[Special:Contributions/CambridgeBayWeather|Huliva]] 18:31, 1 June 2023 (UTC)
 
:::Solid workaround, thank you.
:::Thank you Johnuniq as well for taking the time and looking into this. [[User:Hypnôs|Hypnôs]] ([[User talk:Hypnôs|talk]]) 03:09, 2 June 2023 (UTC)
 
::::{{u|Hypnôs}}. Just realised if you add "|year precipitation mm=12.0" instead of letting it calculate automatically it's a bit more accurate. The 0.04 is due to rounding from {{cvt|1|mm}}. [[User:CambridgeBayWeather|CambridgeBayWeather]] (solidly non-human), [[User talk:CambridgeBayWeather|Uqaqtuq (talk)]], [[Special:Contributions/CambridgeBayWeather|Huliva]] 21:12, 4 June 2023 (UTC)
:::::That's a good workaround. I had forgotten that the year value can be included to specify whatever the editor wants. It even accepts "year precipitation inch" if there was a reason to give a precise value in inches. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 05:30, 5 June 2023 (UTC)
 
== class="notheme" ==
Line 147 ⟶ 94:
{{ping|Seddon}} You edited [[Module:Weather box/row]] on 3 April 2023 ([[Special:Diff/1147938351|diff]]) to add class="notheme" to each row of the table output. The edit summary was "Temporary fix to solve theming in Page Content Service". I don't want a full explanation but can you outline what that is about? Presumably the temporary fix is still needed? I'm planning to update the module soon and am trying to understand changes since I last examined the module. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 04:49, 31 May 2023 (UTC)
:It has been confirmed ([[Special:Diff/1188753801|diff]]) that notheme is permanently wanted in [[Module:Weather box/row]]. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 23:49, 7 December 2023 (UTC)
 
== Colorful boxes 📦 ==
 
While improving the article [[Climate of West Bengal]], I added month wise extreme temperatures in the Indian state. The temperature boxes are colored according to their temperatures intensities. What command to use to color the rainfall boxes? [[User:Kolkatametro|Kolkatametro]] ([[User talk:Kolkatametro|talk]]) 00:20, 20 June 2023 (UTC)
:Similarly to the {{tl|Weather box/colt}} that you used for temperatures, {{tl|Weather box/colp}} can be used for precipitation. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 01:21, 20 June 2023 (UTC)
::Okay. Thank you soo oooo much! [[User:Kolkatametro|Kolkatametro]] ([[User talk:Kolkatametro|talk]]) 23:30, 22 June 2023 (UTC)
 
== possible sunshine ==
Line 396 ⟶ 337:
:::<code><nowiki>|source 1 = TEXT1<ref>REF1</ref>, TEXT2<ref>REF2</ref>, TEXT3<ref>REF3</ref></nowiki></code>
:::[[User:Johnuniq|Johnuniq]] ([[User talk: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 [[User:Javier1957|Javier1957]] ([[User talk:Javier1957|talk]]) 23:45, 18 July 2024 (UTC)
:::Also check {{tl|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. [[User:CambridgeBayWeather|CambridgeBayWeather]] (solidly non-human), [[User talk:CambridgeBayWeather|Uqaqtuq (talk)]], [[Special:Contributions/CambridgeBayWeather|Huliva]] 19:49, 18 July 2024 (UTC)
 
== "Mean maximum" and "Mean daily maximum" are confusing ==
 
Yes I know this has been discussed before, but it's still an issue. I've spent 30-40mins reading comments and looking up parameter text and template docs just figuring out what these two row descriptions are meant to mean. My suggestion is to align the template text with the parameter text. So "Mean maximum" becomes "Average record high" and "Mean daily maximum" becomes "Average high". Regardless of whether changes are ever made, or what they are made to be (because I don't think everyone will ever be happy with the terms used, based on the prior circuitous discussions) I'd also recommend adding notes that appear at the bottom of the template (below "Source:...") explaining what each of the terms in question mean. These notes could be added now while time is taken to determine the best course of action on the proper wording for these rows. [[Special:Contributions/172.59.64.42|172.59.64.42]] ([[User talk:172.59.64.42|talk]]) 02:25, 11 September 2024 (UTC)
:Im not thrilled about the change we made, but i can't say ''average record high'' would be any clearer. It sounds like a contradiction in terms. A monthly ''record'' is not the highest temperature recorded in a 30-day period, it's the highest temperature recorded in every instance of that 30-day period each calendar year. [[user:Soap|—]]<span style="background-color: #a6ffe0; padding: 3px; border-radius: 6px 6px 6px 6px;"><b>[[user talk:Soap|Soap]]</b></span>[[Special:Contributions/Soap|—]] 13:44, 11 September 2024 (UTC)