1 Date: Mon, 25 Nov 2002 12:23:00 +0800
\r
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.4pre)
\r
3 Content-Type: application/x-phpwiki;
\r
4 pagename=PhpWeatherPlugin;
\r
8 Content-Transfer-Encoding: binary
\r
10 The ~PhpWeatherPlugin is a WikiPlugin that uses PhpWeather to display a block of text with
\r
11 the current weather for some airport in the world. It looks like this:
\r
13 <?plugin PhpWeather menu=true ?>
\r
18 Set this to =true= to have the plugin generate a menu after the report. The user will
\r
19 able to select a country from this menu, and after that, an airport and a language.
\r
20 The default value is <tt>false</tt>.
\r
23 Use this to pre-select a specific airport instead of using the default one which is
\r
24 <tt>EKAH</tt>. If you want the user to be able to change the station using the menu,
\r
25 then you have to use this as
\r
27 <?plugin PhpWeather menu=true icao||=EKYT ?>
\r
29 so that the value can be overwritten when the user submits the form. If you just use
\r
31 <?plugin PhpWeather menu=true icao=EKYT ?>
\r
33 then nothing will happen when the user selects another station from the list.
\r
36 Specify the country code. You can use this if you want pre-select a different
\r
37 country than the one specified in the ICAO. So using
\r
39 <?plugin PhpWeather menu=true cc||=GB icao||=KTTS ?>
\r
41 will show the current weather at the NASA Shuttle Facility, United States (<tt>KTTS</tt>)
\r
42 and at the same time give the user a list of stations in the United Kingdom. As the
\r
43 example shows, then you should use <tt>cc||=XX</tt> when combining it with __menu__
\r
44 set to <tt>true</tt>.
\r
47 The default language. When combining __lang__ with __menu__ set to <tt>true</tt> then
\r
48 remember to use the <code>lang||=xx</code> form.
\r
51 You can specify the way the units are printed. The choice is between having both metric and
\r
52 imperial units printed, or just one of them. Setting __units__ to =both_metric= will print
\r
53 the metric value first and then the imperial value in parenthesis. Using =both_imperial=
\r
54 instead will do the opposite.
\r
56 If you only need the metric or imperial units to be shown, then setting __units__ to
\r
57 =only_metric= or =only_imperial= will do just that.
\r