1 Date: Fri, 10 Sep 2010 13:46:13 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FPhpWeatherPlugin;
9 Content-Transfer-Encoding: binary
11 The **~PhpWeather** [[Help:WikiPlugin|plugin]] is a plugin that uses ~PhpWeather to display
12 a block of text with the current weather for some airport in the
13 world. It looks like this:
15 <<PhpWeather menu=true>>
27 Set this to ##true## to have the plugin generate a menu after the
28 report. The user will able to select a country from this menu, and
29 after that, an airport and a language.
34 Use this to pre-select a specific airport instead of using the
35 default one which is ##EKAH##.
37 If you want the user to be able
38 to change the station using the menu, then you have to use this
39 as ##<~<PhpWeather menu=true icao|~|~=EKYT>>##
40 so that the value can be overwritten when the user submits the form.
42 If you just use ##<~<PhpWeather menu=true icao=EKYT>>##
43 then nothing will happen when the user selects another station from
49 Specify the country code. You can use this if you want pre-select a
50 different country than the one specified in the ICAO.
52 So using ##<~<PhpWeather menu=true cc|~|~=GB icao|~|~=KTTS>>##
53 will show the current weather at the NASA Shuttle Facility, United
54 States (##KTTS##) and at the same time give the user a list of
55 stations in the United Kingdom.
57 As the example shows, then you
58 should use ##cc|~|~=XX## when combining it with **menu** set to ##true##.
62 The default language. When combining **language** with **menu** set
63 to ##true## then remember to use the ##language|~|~=xx## form.
68 You can specify the way the units are printed. The choice is between
69 having both metric and imperial units printed, or just one of
70 them. Setting **units** to ##both_metric## will print the metric value
71 first and then the imperial value in parenthesis. Using ##both_imperial##
72 instead will do the opposite.
74 If you only need the metric or imperial units to be shown, then
75 setting **units** to ##only_metric## or ##only_imperial## will do just that.
81 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]