]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/zh/pgsrc/Help%2FPhpWeatherPlugin
Merge OldTextFormattingRules into TextFormattingRules; Rename _GroupInfo --> DebugGro...
[SourceForge/phpwiki.git] / locale / zh / pgsrc / Help%2FPhpWeatherPlugin
1 Date: Fri,  4 Feb 2011 16:44:25 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FPhpWeatherPlugin;
5   flags="";
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 == Synopsis
10
11 ~PhpWeatherPlugin 是個 WikiPlugin, 他使用 PhpWeather 來顯示目前世界上
12 某些機場的氣象. 它看起來像是這樣:
13
14 <<PhpWeather menu=true >>
15
16 == Plugin Arguments
17
18 **menu**:
19   設定為 =true= 是讓 plugin 在報告之後產生選單. 使用者將可以從這個選單
20   去挑選國家,機場或語言. 預設值為 <tt>false</tt>.
21
22 **icao**:
23   使用這個引數來先行挑選機場,以替代預設機場 <tt>EKAH</tt>. 如果你想讓使
24   用者能用選單改變地方,那麼你得使用這樣的語法
25   {{{
26   <<PhpWeather menu=true icao||=EKYT >>
27   }}}
28   然後當使用者送出表單時,值將會被覆寫.如果你只用了
29   {{{
30   <<PhpWeather menu=true icao=EKYT >>
31   }}}
32   那麼,當使用者從清單挑選其他地方的時候,將不會有任何事情產生.
33
34 **cc**:
35   Specify the country code. You can use this if you want pre-select a
36   different country than the one specified in the ICAO. So using
37   {{{
38   <<PhpWeather menu=true cc||=GB icao||=KTTS >>
39   }}}
40   will show the current weather at the NASA Shuttle Facility, United
41   States (<tt>KTTS</tt>) and at the same time give the user a list of
42   stations in the United Kingdom. As the example shows, then you
43   should use <tt>cc||=XX</tt> when combining it with **menu** set to
44   <tt>true</tt>.
45
46 **language**:
47   The default language. When combining **language** with **menu** set
48   to <tt>true</tt> then remember to use the <code>language||=xx</code>
49   form.
50
51 **units**:
52   You can specify the way the units are printed. The choice is between
53   having both metric and imperial units printed, or just one of
54   them. Setting **units** to =both_metric= will print the metric value
55   first and then the imperial value in parenthesis. Using
56   =both_imperial= instead will do the opposite.
57
58   If you only need the metric or imperial units to be shown, then
59   setting **units** to =only_metric= or =only_imperial= will do just
60   that.
61
62 <noinclude>
63 ----
64 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
65 </noinclude>