]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/PhpWeatherPlugin
Fix bad pagename= meta-data.
[SourceForge/phpwiki.git] / pgsrc / PhpWeatherPlugin
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
5   flags="";\r
6   markup=2;\r
7   charset=iso-8859-1\r
8 Content-Transfer-Encoding: binary\r
9 \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
12 \r
13 <?plugin PhpWeather menu=true ?>\r
14 \r
15 !!!Plugin Arguments\r
16 \r
17 __menu__:\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
21 \r
22 __icao__:\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
26   <verbatim>\r
27   <?plugin PhpWeather menu=true icao||=EKYT ?>\r
28   </verbatim>\r
29   so that the value can be overwritten when the user submits the form. If you just use\r
30   <verbatim>\r
31   <?plugin PhpWeather menu=true icao=EKYT ?>\r
32   </verbatim>\r
33   then nothing will happen when the user selects another station from the list.\r
34 \r
35 __cc__:\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
38   <verbatim>\r
39   <?plugin PhpWeather menu=true cc||=GB icao||=KTTS ?>\r
40   </verbatim>\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
45 \r
46 __lang__:\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
49 \r
50 __units__:\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
55 \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