Difference between revisions of "Template:Climate"

From Wikitravel
Jump to: navigation, search
(oops, not the 'description' cell. So made that one white-space:normal)
m (Protected "Template:Climate" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(10 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>'''Template:Climate''' formats simple climate info. Give it Metric or Imperial units of measure depending which is appropriate for the location you describe.
'''Template:Climate''' formats simple climate info. Give it Metric or Imperial units of measure depending which is appropriate for the location you describe.
 
  
 
'''Usage''' and copy-and-paste wiki markup to use this template are on the [[Template talk:Climate|talk page]].
 
'''Usage''' and copy-and-paste wiki markup to use this template are on the [[Template talk:Climate|talk page]].
  
 
Part of '''[[Wikitravel:Climate Expedition]]'''. [[Template:ClimateCelsius]] or [[Template:ClimateFahrenheit]] are also nice.
 
Part of '''[[Wikitravel:Climate Expedition]]'''. [[Template:ClimateCelsius]] or [[Template:ClimateFahrenheit]] are also nice.
</noinclude>
+
</noinclude>{| 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 #000000; float:right; background:#f3f3ff; white-space:nowrap;"
{| border="0" cellpadding="1" cellspacing="1" style="width:30em; margin:1em; padding:0.5em; text-align:center; font-size:80%; border:1px solid #000000; float:right; background:#f3f3ff; white-space:nowrap;"
 
 
!width="100" style="text-align:left; font-size:120%; background: #ECECEC"|Climate
 
!width="100" style="text-align:left; font-size:120%; background: #ECECEC"|Climate
 
!width="25" style="background: #ECECEC"|Jan
 
!width="25" style="background: #ECECEC"|Jan
Line 66: Line 64:
 
   {{{novprecip|}}}
 
   {{{novprecip|}}}
 
   {{{decprecip|}}}
 
   {{{decprecip|}}}
   | Precipitation [[Metric and Imperial equivalents|{{#ifeq:{{lc:{{{units|}}}}}|metric|(cm)|(in)}}]] |}}
+
   | Precipitation [[Metric and Imperial equivalents|{{#ifeq:{{lc:{{{units|}}}}}|metric|(mm)|(in)}}]] |}}
 
| {{{janprecip|}}} || {{{febprecip|}}} || {{{marprecip|}}} || {{{aprprecip|}}} || {{{mayprecip|}}} || {{{junprecip|}}} || {{{julprecip|}}} || {{{augprecip|}}} || {{{sepprecip|}}} || {{{octprecip|}}} || {{{novprecip|}}} || {{{decprecip|}}}
 
| {{{janprecip|}}} || {{{febprecip|}}} || {{{marprecip|}}} || {{{aprprecip|}}} || {{{mayprecip|}}} || {{{junprecip|}}} || {{{julprecip|}}} || {{{augprecip|}}} || {{{sepprecip|}}} || {{{octprecip|}}} || {{{novprecip|}}} || {{{decprecip|}}}
 +
|- style="white-space:nowrap"
 +
| style="text-align:left" | {{#if:
 +
  {{{jansnow|}}}
 +
  {{{febsnow|}}}
 +
  {{{marsnow|}}}
 +
  {{{aprsnow|}}}
 +
  {{{maysnow|}}}
 +
  {{{junsnow|}}}
 +
  {{{julsnow|}}}
 +
  {{{augsnow|}}}
 +
  {{{sepsnow|}}}
 +
  {{{octsnow|}}}
 +
  {{{novsnow|}}}
 +
  {{{decsnow|}}}
 +
  | Snowfall [[Metric and Imperial equivalents|{{#ifeq:{{lc:{{{units|}}}}}|metric|(cm)|(in)}}]] |}}
 +
| {{{jansnow|}}} || {{{febsnow|}}} || {{{marsnow|}}} || {{{aprsnow|}}} || {{{maysnow|}}} || {{{junsnow|}}} || {{{julsnow|}}} || {{{augsnow|}}} || {{{sepsnow|}}} || {{{octsnow|}}} || {{{novsnow|}}} || {{{decsnow|}}}
 
|- style="white-space:nowrap"
 
|- style="white-space:nowrap"
 
| style="text-align:left" | {{#if:
 
| style="text-align:left" | {{#if:
Line 102: Line 116:
 
|-
 
|-
 
|colspan="13" style="text-align:left; white-space:normal;"|{{#if:{{{description|}}}|<hr/>{{{description|}}}|}}
 
|colspan="13" style="text-align:left; white-space:normal;"|{{#if:{{{description|}}}|<hr/>{{{description|}}}|}}
|}
+
|}<noinclude>[[Category:Climate templates]]</noinclude>

Latest revision as of 19:43, 21 May 2014

Template:Climate formats simple climate info. Give it Metric or Imperial units of measure depending which is appropriate for the location you describe.

Usage and copy-and-paste wiki markup to use this template are on the talk page.

Part of Wikitravel:Climate Expedition. Template:ClimateCelsius or Template:ClimateFahrenheit are also nice.

Climate Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec