Template talk:Infobox Weather
From Wikipedia, the free encyclopedia
Contents |
[edit] Examples
Weather averages for Example City | |||||||||||||
Month | Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec | Year |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Avg high °F | x | x | x | x | x | x | x | x | x | x | x | x | x |
Avg low °F | x | x | x | x | x | x | x | x | x | x | x | x | x |
Avg high °C | x | x | x | x | x | x | x | x | x | x | x | x | x |
Avg low °C | x | x | x | x | x | x | x | x | x | x | x | x | x |
Precipitation (in) | x | x | x | x | x | x | x | x | x | x | x | x | x |
Precipitation (cm) | x | x | x | x | x | x | x | x | x | x | x | x | x |
Source: Weatherbase [1] Jan 2006 |
[edit] Code to produce the above box with editors notes on use
{{Infobox Weather <!-- This was created with weatherbase.com in mind as the source, but --> |metric_first = <!--Entering Yes or True will swap unit order to metric first then Imperial --> |location = Example City <!-- any source can be used.--> |Jan_Hi_°F = x |Feb_Hi_°F = x <!--ALL fields must be filled in. Exception = built in {{cite web}} below. --> |Mar_Hi_°F = x |Apr_Hi_°F = x <!--If only Imperial/English units are available, you must convert to metric |May_Hi_°F = x and enter where needed--> |Jun_Hi_°F = x |Jul_Hi_°F = x <!--If only SI/metric units are available, you must also convert to Imperial |Aug_Hi_°F =x units and enter where needed.--> |Sep_Hi_°F =x |Oct_Hi_°F =x <!-- www.weatherbase.com gives global weather info in both Imperial and metric.--> |Nov_Hi_°F =x |Dec_Hi_°F =x |Year_Hi_°F = x |Jan_Hi_°C = x |Feb_Hi_°C = x |Mar_Hi_°C = x |Apr_Hi_°C = x |May_Hi_°C = x |Jun_Hi_°C = x |Jul_Hi_°C = x |Aug_Hi_°C = x |Sep_Hi_°C = x |Oct_Hi_°C = x |Nov_Hi_°C = x |Dec_Hi_°C = x |Year_Hi_°C = x |Jan_Lo_°F = x |Feb_Lo_°F = x |Mar_Lo_°F = x |Apr_Lo_°F = x |May_Lo_°F = x |Jun_Lo_°F =x |Jul_Lo_°F =x |Aug_Lo_°F =x |Sep_Lo_°F =x |Oct_Lo_°F =x |Nov_Lo_°F =x |Dec_Lo_°F =x |Year_Lo_°F =x |Jan_Lo_°C = x |Feb_Lo_°C = x |Mar_Lo_°C = x |Apr_Lo_°C = x |May_Lo_°C = x |Jun_Lo_°C =x |Jul_Lo_°C =x |Aug_Lo_°C =x |Sep_Lo_°C =x |Oct_Lo_°C =x |Nov_Lo_°C =x |Dec_Lo_°C =x |Year_Lo_°C =x |Jan_Precip_inch = x |Feb_Precip_inch = x |Mar_Precip_inch = x |Apr_Precip_inch = x |May_Precip_inch =x |Jun_Precip_inch =x |Jul_Precip_inch =x |Aug_Precip_inch =x |Sep_Precip_inch =x |Oct_Precip_inch =x |Nov_Precip_inch =x |Dec_Precip_inch =x |Year_Precip_inch =x |Jan_Precip_cm = x <!--This is in CENTImetres not MILLImetres.--> |Feb_Precip_cm = x <!--If the source uses mm be sure to convert to cm first.--> |Mar_Precip_cm = x |Apr_Precip_cm = x |May_Precip_cm = x |Jun_Precip_cm = x |Jul_Precip_cm = x |Aug_Precip_cm = x |Sep_Precip_cm = x |Oct_Precip_cm = x |Nov_Precip_cm = x |Dec_Precip_cm = x |Year_Precip_cm = x |source = Weatherbook <ref name= >{{cite web <!--BUILT in ref name and cite web.--> | url =http://www.weatherbase.com| title = | accessdate = | accessmonthday = | accessyear = | author = | last = | first = | date = | year = | month = | publisher = | language = }}</ref> |accessdate = Jan 2006 <!--accessdate that shows in weatherbox--> }}
[edit] Unit order
|metric_first = Yes
This will swap the unit order to metric first then Imperial. See Montreal for an example.
Template:Infobox Weather metric, for the same box but with metric listed first. —The preceding unsigned comment was added by CambridgeBayWeather (talk • contribs) 11:45, 13 December 2006 (UTC).
- In order to maintain just one standard infobox, I have added the metric first option. By entering Yes this will swap the order of the units to well metric first. —MJCdetroit 15:29, 13 December 2006 (UTC)
[edit] Comments
It looks good and the weatherbase source looks good as well. It appears that they are using Toronto/Pearson Airport at Environment Canada as the source. I wonder if people would be interested in the maximum/minimums for the town as well? CambridgeBayWeather (Talk) 03:17, 6 November 2006 (UTC)
- I don't know. They can always be optional for a town. Where editors may want an expanded version for say an article that was specifically about the climate of a location. In any case thanks. —MJCdetroit 03:46, 6 November 2006 (UTC)
[edit] Precipitation unit change
I think the units should change from cm to mm. Total precipitation is always in mm; only snowfall is listed in cm because it takes 10 times as much snow to equal the same amount of rainfall but total precipitation is always in mm. Making this change will make the infobox more consistent within the articles they are placed within. With millimetres you also avoid the decimal point- so no fractions making it easier to read and it is preferred to have units in multiples of 1000 (ie mm, m, km etc.). Samy23 03:02, 16 December 2006 (UTC)
- I debated this when I developed this template. I even mentationed it to User:CambridgeBayWeather a few days ago . I settled with centimetres because the main website that I kept seeing used with this type of table was www.weatherbase.com and they used cm. However, I think that I am going to expand this template in the future to include an option for having millimetres displayed if the that's what the source unit is. It will take some time to put together because it would have to be able to display mm or cm but not both. —MJCdetroit 04:53, 16 December 2006 (UTC)
Yes having both cm and mm would indeed be a bad idea but as you can see most articles have -total- precipitation listed as mm. Had you used a more metric friendly website you'd probably have gotten the same thing: mm. It does concern me that the person doing an infobox on weather and its subsequent mandatory metrication is anti-metric himself. Samy23 06:38, 16 December 2006 (UTC)