Template:Weather box/concise C/doc: Difference between revisions

Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikipedia:Wikidata) --> == Usage == The '...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
== Usage ==
The '''Template:Weather box/concise_C''' (Celsius) uses &#123;{Weather box}} to generate a climate table, by using 36 positional parameters. Other parameters are:&nbsp; location=, source= and optional "accessdate=" or sctemp=t. The 36 parameters are: 12 monthly highs (C), 12 lows (total 24) plus an optional 12 monthly rain/precipitation (in mm). Example of coding:
The '''Template:Weather box/Concise_C''' (Celsius) uses &#123;{Weather box}} to generate a climate table, by using 36 positional parameters. Other parameters are:&nbsp; location=, source= and optional "accessdate=" or sctemp=t. The 36 parameters are: 12 monthly highs (C), 12 lows (total 24) plus an optional 12 monthly rain/precipitation (in mm). Example of coding:
<pre>
<pre>
{{Weather box/concise_C
{{Weather box/Concise_C
| location=Marrakech, Morocco (1961-1990)
| location=Marrakech, Morocco (1961-1990)
| source=Hong Kong Observatory<ref name="HKO">
| source=Hong Kong Observatory<ref name="HKO">
Line 16: Line 16:
</pre>
</pre>
The example will generate a climate-table for "Marrakech, Morocco" listing the Celsius temperatures first, then Fahrenheit (in parentheses) below each, followed by precipitation in mm, then in inches (in parentheses). Example result:
The example will generate a climate-table for "Marrakech, Morocco" listing the Celsius temperatures first, then Fahrenheit (in parentheses) below each, followed by precipitation in mm, then in inches (in parentheses). Example result:
{{Weather box/concise_C
{{Weather box/Concise_C
| location=Marrakech, Morocco (1961-1990)
| location=Marrakech, Morocco (1961-1990)
| source=Hong Kong Observatory<ref name="HKO">
| source=Hong Kong Observatory<ref name="HKO">
Line 26: Line 26:
}}
}}


Colors are set by [[Template:Weather box/colpastel]], to set the temperature background colors when parameter "sctemp=pastel". The colder temperatures are purple-shades, the cool are beige, the warm are yellow-shades, and the hot are orange-browns.
<!-- Colors are set by [[Template:Weather box/colpastel]], to set the temperature background colors when parameter "sctemp=pastel". The colder temperatures are purple-shades, the cool are beige, the warm are yellow-shades, and the hot are orange-browns.  


Again, the 12 rain/precipitation parameters can be omitted.
-->Again, the 12 rain/precipitation parameters can be omitted.


==See also==
==See also==

Latest revision as of 21:11, 10 April 2022

Usage

The Template:Weather box/Concise_C (Celsius) uses {{Weather box}} to generate a climate table, by using 36 positional parameters. Other parameters are:  location=, source= and optional "accessdate=" or sctemp=t. The 36 parameters are: 12 monthly highs (C), 12 lows (total 24) plus an optional 12 monthly rain/precipitation (in mm). Example of coding:

{{Weather box/Concise_C
| location=Marrakech, Morocco (1961-1990)
| source=Hong Kong Observatory<ref name="HKO">
  "Climatological Information for Marrakech, Morocco",
  Hong Kong Observatory, 2003. Web: [http://www.hko.gov.hk/wxinfo/climat/world/eng/africa/mor_al/marrakech_e.htm HKO-Marrakech].</ref>
| 18.4|19.9|22.3|23.7|27.5|31.3|36.8|36.5|32.5|27.5|22.2|18.7<!--highs-->
| 5.9 |7.6 |9.4 |11.0|13.8|16.3|19.9|20.1|18.2|14.7|10.4|6.5 <!--lows-->
| 32.2|37.9|37.8|38.8|23.7|4.5 |1.2 |3.4 |5.9 |23.9|40.6|31.4<!--rain-->
}}
                             (Spaces are optional)

The example will generate a climate-table for "Marrakech, Morocco" listing the Celsius temperatures first, then Fahrenheit (in parentheses) below each, followed by precipitation in mm, then in inches (in parentheses). Example result:

Climate data for Marrakech, Morocco (1961-1990)
Month Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Year
Average high °C (°F) 18.4
(65.1)
19.9
(67.8)
22.3
(72.1)
23.7
(74.7)
27.5
(81.5)
31.3
(88.3)
36.8
(98.2)
36.5
(97.7)
32.5
(90.5)
27.5
(81.5)
22.2
(72.0)
18.7
(65.7)
26.4
(79.6)
Average low °C (°F) 5.9
(42.6)
7.6
(45.7)
9.4
(48.9)
11.0
(51.8)
13.8
(56.8)
16.3
(61.3)
19.9
(67.8)
20.1
(68.2)
18.2
(64.8)
14.7
(58.5)
10.4
(50.7)
6.5
(43.7)
12.8
(55.1)
Average precipitation mm (inches) 32.2
(1.27)
37.9
(1.49)
37.8
(1.49)
38.8
(1.53)
23.7
(0.93)
4.5
(0.18)
1.2
(0.05)
3.4
(0.13)
5.9
(0.23)
23.9
(0.94)
40.6
(1.60)
31.4
(1.24)
281.3
(11.08)
Source: Hong Kong Observatory[1]

Again, the 12 rain/precipitation parameters can be omitted.

See also

Notes

  1. "Climatological Information for Marrakech, Morocco", Hong Kong Observatory, 2003. Web: HKO-Marrakech.