1 Date: Fri, 10 Sep 2010 13:48:49 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
4 Content-Type: application/x-phpwiki;
5 pagename=PhpWeatherPlugin;
9 Content-Transfer-Encoding: binary
13 ~PhpWeatherPlugin 是個 WikiPlugin, 他使用 PhpWeather 來顯示目前世界上
16 <<PhpWeather menu=true >>
21 設定為 =true= 是讓 plugin 在報告之後產生選單. 使用者將可以從這個選單
22 去挑選國家,機場或語言. 預設值為 <tt>false</tt>.
25 使用這個引數來先行挑選機場,以替代預設機場 <tt>EKAH</tt>. 如果你想讓使
26 用者能用選單改變地方,那麼你得使用這樣的語法
28 <<PhpWeather menu=true icao||=EKYT >>
30 然後當使用者送出表單時,值將會被覆寫.如果你只用了
32 <<PhpWeather menu=true icao=EKYT >>
34 那麼,當使用者從清單挑選其他地方的時候,將不會有任何事情產生.
37 Specify the country code. You can use this if you want pre-select a
38 different country than the one specified in the ICAO. So using
40 <<PhpWeather menu=true cc||=GB icao||=KTTS >>
42 will show the current weather at the NASA Shuttle Facility, United
43 States (<tt>KTTS</tt>) and at the same time give the user a list of
44 stations in the United Kingdom. As the example shows, then you
45 should use <tt>cc||=XX</tt> when combining it with __menu__ set to
49 The default language. When combining __language__ with __menu__ set
50 to <tt>true</tt> then remember to use the <code>language||=xx</code>
54 You can specify the way the units are printed. The choice is between
55 having both metric and imperial units printed, or just one of
56 them. Setting __units__ to =both_metric= will print the metric value
57 first and then the imperial value in parenthesis. Using
58 =both_imperial= instead will do the opposite.
60 If you only need the metric or imperial units to be shown, then
61 setting __units__ to =only_metric= or =only_imperial= will do just