Template talk:Weather box
| WikiProject Meteorology | (Rated Template-class) | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||
Archives (Index) |
||||||
|---|---|---|---|---|---|---|
|
||||||
|
|
||||||
| Threads older than 3 months may be archived by MiszaBot II. |
Contents |
[edit] Categories
Does this template add articles to any categories? And if not, why not? Fmph (talk) 12:12, 6 May 2011 (UTC)
- To which categories should it add articles? Frietjes (talk) 15:17, 6 May 2011 (UTC)
- I'm not even sure that suitable categories exist, but something like category:Places with climate panels by country and associated child cats. Fmph (talk) 12:10, 7 June 2011 (UTC)
- Templates should never add content categories. See WP:CATEGORIES for the reasons. Rich Farmbrough, 00:35, 12 January 2012 (UTC).
- Templates should never add content categories. See WP:CATEGORIES for the reasons. Rich Farmbrough, 00:35, 12 January 2012 (UTC).
- I'm not even sure that suitable categories exist, but something like category:Places with climate panels by country and associated child cats. Fmph (talk) 12:10, 7 June 2011 (UTC)
[edit] Rainfall conversion
I just noticed, see Rockhampton#Climate, that in some cases the rainfall when given in mm is being converted to 3 decimal places. It should only be to two. CambridgeBayWeather (talk) 16:23, 3 November 2011 (UTC)
[edit] Issues with recent overhaul
1) For subfreezing temperature values, inputs such as "−2.0" should not have precision reduced, i.e. displayed as "−2". 2) Any input of annual average temperatures prevents conversion to the other temperature scale. The Tartanator 15:26, 5 November 2011 (UTC)
2) For the "Average high" and "Average low" Year, the conversion is not working. In Detroit and Toronto, the value to be converted (Celsius for Detroit and Fahrenheit for Toronto) is not being displayed. —MJCdetroit (tell me) 23:25, 5 November 2011 (UTC)
- It turns out you have to remove the yearly number, like this. However, when the template then does the calculation to two decimal places instead of one. In the dropping of the trailing zero that The Tartanator notes with record high temperatures the zero is left in place (May and November in the above link). For all other temperatures the trailing zero is dropped but the conversion is always to two places, even if the conversion ends in a zero. CambridgeBayWeather (talk) 21:23, 6 November 2011 (UTC)
-
- The precision needs a fix in general. While most entries are set to one decimal, the rainfall in inches is converted to three decimals from entries in mm. De728631 (talk) 00:11, 5 December 2011 (UTC)
- See section above this. The US standard seems to be to two decimal places. CambridgeBayWeather (talk) 12:48, 5 December 2011 (UTC)
- It would be best to use the standard that is provided by the source data. If the source rounds to one decimal then we shouldn't display two decimals just because it is another standard. Filling up the source data with trailing zeros would be scientifically incorrect since you don't know that rounding (floor/ceiling) was behind the source data. And not only does it look weird to have a mixed table with accuracies ranging from 0 to 3 decimals but imo for weather data a higher accuracy than .1 is also not needed for encyclopedic use. De728631 (talk) 23:11, 8 December 2011 (UTC)
- See section above this. The US standard seems to be to two decimal places. CambridgeBayWeather (talk) 12:48, 5 December 2011 (UTC)
- The precision needs a fix in general. While most entries are set to one decimal, the rainfall in inches is converted to three decimals from entries in mm. De728631 (talk) 00:11, 5 December 2011 (UTC)
[edit] Option to not collapse in dependent boxes?
Many cities use this template to create their own template for that city. In an article on the city, it could make sense to have the box collapsed -- but in an article on the city's climate it seems it could very often make more sense to start with the box shown. I am not aware of any way to pass a parameter (in, say, Vancouver Weatherbox) that would control whether the box was shown or hidden on a per article basis.--JimWae (talk) 00:14, 10 December 2011 (UTC)
- Add the following line to the template:
|collapsed={{#if:{{{collapsed|}}}|{{{collapsed}}}}}
Thanks. Suppose we still wanted collapsed to be the default--JimWae (talk) 19:03, 10 December 2011 (UTC)
- Then you'd have to create an opt out word:
|collapsed={{#ifeq:{{{collapsed|}}}|no||Y}}
- Or create an uncollapsed parameter:
|collapsed={{#if:{{{uncollapsed|}}}||Y}}
[edit] Abbreviations
Abbreviation templates are necessary for accessibility. See this discussion.
Which “errors” about year ? If there are any, they exist both after my last change and before my last change. And speaking of errors, Avg and Dec are not English words. If we keep the abbreviations, they need to be correctly marked up, for accessibility's sake.
--Nnemo (talk) 04:01, 14 December 2011 (UTC)
- I've reverted your edits as they introduce errors to the template. In the Year column, Humidex, Record high, Record low and Wind chill all show "Template:Max/27". You need to experiment with the template in a sandbox before adding it to here. CambridgeBayWeather (talk) 16:51, 14 December 2011 (UTC)
- What did you mean that Dec and Avg are not correct? They are not words, but are correct or commonly used abbreviations. Wiktionary uses Dec and Dec. as does this which also uses avg. This site shows AVG and so does Environment Canada. CambridgeBayWeather (talk) 17:17, 14 December 2011 (UTC)
-
- Avg and Dec might be correct abbreviations, they are not correct English words. They are not accessible. So I mark them as abbreviations, with their meaning. This makes them accessible, this is necessary so that a screen reader read them correctly, this also helps the readers who are not familiar with English abbreviations. For most of the people of the planet, English is a foreign language, or not a language at all. The links you give me show some of the abbreviations, with their meaning.
- --Nnemo (talk) 03:43, 16 December 2011 (UTC)
-
-
- Why only some of the abbreviations? Why not the rest of them? My revert of the page had nothing to do with the abbreviations but the bright red "Template:Max/27" error that was showing up. CambridgeBayWeather (talk) 14:56, 16 December 2011 (UTC)
-
[edit] View, Discuss, Edit Links
I propose to include "v" "d" and "e" at the top of the template so that users have an easy way to link directly to a city-specific weatherbox. Thanks, epicAdam(talk) 14:56, 18 December 2011 (UTC)
- Usually those links lead to the template in question. How will they lead to a city-specific weatherbox? CambridgeBayWeather (talk) 08:12, 19 December 2011 (UTC)
- I'm not exactly sure. I was hoping those with more experience in this area than I would have some idea. The city-specific weather boxes for example, Template:New York City weatherbox or Template:Washington, DC weatherbox, use this standard template, so I don't know if including those direct links can be made directly on those pages. Best, epicAdam(talk) 16:12, 19 December 2011 (UTC)
- I added code to the template to allow this to work, like it works with template:navbox. hopefully, this is not controversial and doesn't cause additional problems. Frietjes (talk) 18:17, 19 December 2011 (UTC)
- Excellent! Thank you. Best, epicAdam(talk) 18:29, 19 December 2011 (UTC)
- OK now I get it. Looks good. CambridgeBayWeather (talk) 23:15, 19 December 2011 (UTC)
- Excellent! Thank you. Best, epicAdam(talk) 18:29, 19 December 2011 (UTC)
- I added code to the template to allow this to work, like it works with template:navbox. hopefully, this is not controversial and doesn't cause additional problems. Frietjes (talk) 18:17, 19 December 2011 (UTC)
- I'm not exactly sure. I was hoping those with more experience in this area than I would have some idea. The city-specific weather boxes for example, Template:New York City weatherbox or Template:Washington, DC weatherbox, use this standard template, so I don't know if including those direct links can be made directly on those pages. Best, epicAdam(talk) 16:12, 19 December 2011 (UTC)
[edit] Colour scheme
Is there any recommendation about the usage of temperature colour= "pastel" and rain colour= "green"? Why are there several colour schemes in the first place? Isn't it better if the colours are consistent across articles? Calimo (talk) 09:18, 12 February 2012 (UTC)