Template:Climate: Difference between revisions

Content deleted Content added
Conversion of units on mouse over number
move to documentation page
 
(23 intermediate revisions by 10 users not shown)
Line 1:
<includeonly>
{| id="climate_table" border="0" cellpadding="1" cellspacing="1" style="width:30em; margin:1em; padding:0.5em; text-align:center; font-size:80%; border:1px solid #9EBDC7; box-shadow: 2px 2px 5px #9EBDC7; border-radius:3px; float:right; clear:right; background:#f3f3ff; white-space:nowrap;"
<templatestyles src="Template:Climate/style.css" />
!width="100" style="text-align:left; font-size:120%; background: #CEE0E7"| Climate
{{#switch: {{{align|}}}
!width="25" style="background: #CEE0E7"|Jan
| left = <div style="float:left;clear:left;margin-right: 0.5em" class="climate-table left">
!width="25" style="background: #CEE0E7"|Feb
| center = <div style="text-align:center;" class="climate-table center">
!width="25" style="background: #CEE0E7"|Mar
| none = <div class="climate-table">
!width="25" style="background: #CEE0E7"|Apr
| #default = <div style="float:right;clear:right;margin-left: 0.5em" class="climate-table right">
!width="25" style="background: #CEE0E7"|May
}}
!width="25" style="background: #CEE0E7"|Jun
{{climate chart
!width="25" style="background: #CEE0E7"|Jul
| {{{title|{{SUBPAGENAME}}}}}
!width="25" style="background: #CEE0E7"|Aug
| {{{janlow}}}|{{{janhigh}}}|{{#if:{{{janprecip|}}}|{{{janprecip}}}|0}}|jansnow={{{jansnow|}}}|jansun={{{jansun|}}}|janh2o={{{janh2o|}}}
!width="25" style="background: #CEE0E7"|Sep
| {{{feblow}}}|{{{febhigh}}}|{{#if:{{{febprecip|}}}|{{{febprecip}}}|0}}|febsnow={{{febsnow|}}}|febsun={{{febsun|}}}|febh2o={{{febh2o|}}}
!width="25" style="background: #CEE0E7"|Oct
| {{{marlow}}}|{{{marhigh}}}|{{#if:{{{marprecip|}}}|{{{marprecip}}}|0}}|marsnow={{{marsnow|}}}|marsun={{{marsun|}}}|marh2o={{{marh2o|}}}
!width="25" style="background: #CEE0E7"|Nov
| {{{aprlow}}}|{{{aprhigh}}}|{{#if:{{{aprprecip|}}}|{{{aprprecip}}}|0}}|aprsnow={{{aprsnow|}}}|aprsun={{{aprsun|}}}|aprh2o={{{aprh2o|}}}
!width="25" style="background: #CEE0E7"|Dec
| {{{maylow}}}|{{{mayhigh}}}|{{#if:{{{mayprecip|}}}|{{{mayprecip}}}|0}}|maysnow={{{maysnow|}}}|maysun={{{maysun|}}}|mayh2o={{{mayh2o|}}}
| {{{junlow}}}|{{{junhigh}}}|{{#if:{{{junprecip|}}}|{{{junprecip}}}|0}}|junsnow={{{junsnow|}}}|junsun={{{junsun|}}}|junh2o={{{junh2o|}}}
| {{{jullow}}}|{{{julhigh}}}|{{#if:{{{julprecip|}}}|{{{julprecip}}}|0}}|julsnow={{{julsnow|}}}|julsun={{{julsun|}}}|julh2o={{{julh2o|}}}
| {{{auglow}}}|{{{aughigh}}}|{{#if:{{{augprecip|}}}|{{{augprecip}}}|0}}|augsnow={{{augsnow|}}}|augsun={{{augsun|}}}|augh2o={{{augh2o|}}}
| {{{seplow}}}|{{{sephigh}}}|{{#if:{{{sepprecip|}}}|{{{sepprecip}}}|0}}|sepsnow={{{sepsnow|}}}|sepsun={{{sepsun|}}}|seph2o={{{seph2o|}}}
| {{{octlow}}}|{{{octhigh}}}|{{#if:{{{octprecip|}}}|{{{octprecip}}}|0}}|octsnow={{{octsnow|}}}|octsun={{{octsun|}}}|octh2o={{{octh2o|}}}
| {{{novlow}}}|{{{novhigh}}}|{{#if:{{{novprecip|}}}|{{{novprecip}}}|0}}|novsnow={{{novsnow|}}}|novsun={{{novsun|}}}|novh2o={{{novh2o|}}}
| {{{declow}}}|{{{dechigh}}}|{{#if:{{{decprecip|}}}|{{{decprecip}}}|0}}|decsnow={{{decsnow|}}}|decsun={{{decsun|}}}|dech2o={{{dech2o|}}}
| units = {{{units|}}}
| description = {{{description|}}}
| maxprecip = {{{maxprecip|1}}}
| conversion = {{{conversion|no}}}
}}
</div><!--
{{#switch: {{{align|}}}
| left = <div style="float:left;clear:left" class="climate-table left">
| center = <div style="text-align:center" class="climate-table center">
| none = <div class="climate-table">
| #default = <div style="float:right;clear:right;" class="climate-table right">
}}
{| class="climate-table" border="0" cellpadding="1" cellspacing="1"
! width="100" style="text-align:left; font-size:120%; background: #CEE0E7"| Climate
! width="25" | Jan
! width="25" | Feb
! width="25" | Mar
! width="25" | Apr
! width="25" | May
! width="25" | Jun
! width="25" | Jul
! width="25" | Aug
! width="25" | Sep
! width="25" | Oct
! width="25" | Nov
! width="25" | Dec
|- style="line-height:0.1em;"
| colspan="13" |  
Line 78 ⟶ 112:
{{{decsnow|}}}
| Snowfall [[Metric and Imperial equivalents|{{#ifeq:{{lc:{{{units|}}}}}|metric|(cm)|(in)}}]] |}}
| {{climate/convlconvl2|{{{jansnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{febsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{marsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{aprsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{maysnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{junsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{julsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{augsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{sepsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{octsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{novsnow|}}}|{{{units|}}}}} || {{climate/convlconvl2|{{{decsnow|}}}|{{{units|}}}}}
|- style="white-space:nowrap; line-height:1.3em;"
| style="text-align:left" | {{#if:
Line 93 ⟶ 127:
{{{novsun|}}}
{{{decsun|}}}
| DaylightSunshine (hrs/day) |}}
| {{{jansun|}}} || {{{febsun|}}} || {{{marsun|}}} || {{{aprsun|}}} || {{{maysun|}}} || {{{junsun|}}} || {{{julsun|}}} || {{{augsun|}}} || {{{sepsun|}}} || {{{octsun|}}} || {{{novsun|}}} || {{{decsun|}}}
|- style="font-style:italic; line-height:1.3em;"
Line 113 ⟶ 147:
|-
|colspan="13" style="text-align:left; white-space:normal;"|{{#if:{{{description|}}}|<hr/>{{{description|}}}|}}
|}</div>-->{{#if: {{{janh2o|}}}{{{jansun|}}} | [[Category:Verbose Climate graphs]] }}</includeonly><noinclude>
|}<noinclude>{{documentation}}</noinclude>
</noinclude>