[Fusionforge-commits] r12163 - trunk/src/plugins/wiki/www/locale/zh/pgsrc

Marc-Etienne VARGENAU vargenau at libremir.placard.fr.eu.org
Sat Feb 5 12:23:18 CET 2011


Author: vargenau
Date: 2011-02-05 12:23:18 +0100 (Sat, 05 Feb 2011)
New Revision: 12163

Added:
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FAddingPages
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCalendarPlugin
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCommentPlugin
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FEditText
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FExternalSearchPlugin
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FHelloWorldPlugin
Removed:
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/AddingPages
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/CalendarPlugin
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/CommentPlugin
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/EditText
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/ExternalSearchPlugin
   trunk/src/plugins/wiki/www/locale/zh/pgsrc/HelloWorldPlugin
Log:
Phpwiki update

Deleted: trunk/src/plugins/wiki/www/locale/zh/pgsrc/AddingPages
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/AddingPages	2011-02-05 11:21:15 UTC (rev 12162)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/AddingPages	2011-02-05 11:23:18 UTC (rev 12163)
@@ -1,31 +0,0 @@
-Date: Fri, 10 Sep 2010 13:48:49 +0000
-Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
-X-Rcs-Id: $Id: AddingPages 7682 2010-09-10 12:03:36Z vargenau $
-Content-Type: application/x-phpwiki;
-  pagename=AddingPages;
-  flags="";
-  markup=2;
-  charset=UTF-8
-Content-Transfer-Encoding: binary
-
-要加入一個新的頁面到 wiki, 你所要做的,就是使用一個有意義的標題,
-並且將每個單字的第一個字母改為大寫,像是 StringThemTogetherLikeThis.
-Wiki 會自動辨認為超連結. 除此之外,你也可以把任何單字放到中括號中,
-像這樣 [square brackets].
-
-然後你可以點選新超連結後的問號繼續 ClickTheQuestionMark,
-而 Wiki 將會給你一個製作新頁面的視窗.
-
-如果你想要加入一份帶有複雜標記的文件到 Wiki, 你最好是提供一個 URL,
-這會比直接貼上文件的內容好,像這樣:
-
-PhpWiki project homepage: http://phpwiki.sourceforge.net/
-
-Wiki 不支援 HTML 標籤 (參閱 TextFormattingRules).
-<tags>標籤就只會顯示為標籤.</tags> 為鼓勵使用, Wiki 盡可能地保持簡單.
-
-你的管理者可以打開允許嵌入 HTML 的功能, 但這樣可能就會牽涉到安全性議題.
-
-----
-
-PhpWikiDocumentation

Deleted: trunk/src/plugins/wiki/www/locale/zh/pgsrc/CalendarPlugin
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/CalendarPlugin	2011-02-05 11:21:15 UTC (rev 12162)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/CalendarPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -1,93 +0,0 @@
-Date: Tue,  4 Jan 2011 11:57:23 +0000
-Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
-X-Rcs-Id: $Id: CalendarPlugin 7799 2011-01-04 11:05:56Z vargenau $
-Content-Type: application/x-phpwiki;
-  pagename=CalendarPlugin;
-  flags="";
-  markup=2;
-  charset=UTF-8
-Content-Transfer-Encoding: binary
-
-CalendarPlugin 可以用來在 wiki 頁面的月曆. 對 PersonalWiki~s 來說是很便利的.
-
-在月曆裡的個別日期連結到一個特別名稱的 wiki 頁面.
-"day pages"(日頁面)的名稱預設會以月曆存在頁面的名稱加上日期.
-
-''此功能是從 [Manila|http://manila.userland.com/] 得到啟示,
-並且首先由 GaryBenson 所實作. 後來則被 JeffDairiki 實作為 WikiPlugin.''
-
-===用法:
-
-{{{
-<<Calendar>>
-}}}
-
-你將會得到:
-<<Calendar>>
-
---------
-
-=== Plugin 引數
-
-==== 月份的選擇
-
-**year**:
-
-  為月曆指定年. (預設: 目前的年份.)
-
-**month**:
-
-  為月曆指定月份. (預設: 目前的月份.)
-
-**month_offset**:
-
-  加到 ''month''. 可以用來含括好幾個月的月曆到一個 wiki 頁面.
-
-  <<Calendar month_offset=+1>>
-
-==== "Day Page" (日頁面)名稱
-
-**date_format**:
-
-  使用 [Strftime| php-function:strftime] 風格的格式字串來為 "day pages"
-  產生頁面名稱.  預設值為 =%Y-%m-%d=.
-
-**prefix**:
-
-  Prepended to the date (formatted per ''date_format'') to generate
-  the "day page" names. The default value is =~[pagename]/=.
-
-==== Appearance
-
-**month_format**:
-
-  使用 [Strftime| php-function:strftime] 風格的格式字串產生
-  月曆的標題. (預設為 =%B, %Y=.)
-
-**wday_format**:
-
-  使用 [Strftime| php-function:strftime] 風格的格式字串產生
-  在月曆上頭的 day-of-week 名稱.
-
-**start_wday**:
-
-  每週是由那一天開始.  這會是一個介於 0 (Sunday)到 6(Saturday) 的整數.
-
-  <<Calendar start_wday=1 >>
-
------
-
-==== Patch for 1.2
-
-GaryBenson wrote the first calendar implementation for PhpWiki 1.2.
-(Since 1.2 doesn't support plugins, it uses a =###CALENDAR###= token
-as a trigger.) Gary provides a screenshot at
-http://inauspicious.org/files/screenshots/calender.png|screenshot, a
-[patch|http://inauspicious.org/files/phpwiki/phpwiki-1.2.0-calendar.patch]
-(on 1.2.0), and
-[calendar.php|http://inauspicious.org/files/phpwiki/calendar.php]
-(which renders a view of the year.)
-
-----
-
-PhpWikiDocumentation

Deleted: trunk/src/plugins/wiki/www/locale/zh/pgsrc/CommentPlugin
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/CommentPlugin	2011-02-05 11:21:15 UTC (rev 12162)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/CommentPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -1,45 +0,0 @@
-Date: Fri, 10 Sep 2010 13:48:49 +0000
-Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
-X-Rcs-Id: $Id: CommentPlugin 7682 2010-09-10 12:03:36Z vargenau $
-Content-Type: application/x-phpwiki;
-  pagename=CommentPlugin;
-  flags="";
-  markup=2;
-  charset=UTF-8
-Content-Transfer-Encoding: binary
-
-== Synopsis
-
-CommentPlugin 可以讓你隱藏部份 Wiki 頁面而無須刪除這些文字. 註解將只會在
-編輯或查看源碼的時候顯現出來.
-
-== Usage
-
-簡單的把 =<<Comment= 和 =>>= 放在要註解的文字前後.
-
-{{{
-<<Comment
-
-== A Hidden Section
-
-這段文字將不會顯示在產生出的 HTML 頁面中, 但在你編輯 WikiMarkup 時,它仍然可以
-被看到.
-
->>
-}}}
-
-== Author
-
-Martin Geisler mailto:gimpster at gimpster.com.
-
-<<Comment
-
-== "Fuzzy" Logic
-Theorem: a cat has nine tails.
-Proof:
-    No cat has eight tails. A cat has one tail more than no cat.
-    Therefore, a cat has nine tails.
-
->>
-----
-WikiPlugin

Deleted: trunk/src/plugins/wiki/www/locale/zh/pgsrc/EditText
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/EditText	2011-02-05 11:21:15 UTC (rev 12162)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/EditText	2011-02-05 11:23:18 UTC (rev 12163)
@@ -1,16 +0,0 @@
-Date: Fri, 10 Sep 2010 13:48:49 +0000
-Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
-X-Rcs-Id: $Id: EditText 7682 2010-09-10 12:03:36Z vargenau $
-Content-Type: application/x-phpwiki;
-  pagename=EditText;
-  flags="";
-  markup=2;
-  charset=UTF-8
-Content-Transfer-Encoding: binary
-
-所有頁面 (除了搜尋結果以外) 的最底部都有一個 EditText 連結.
-如果準備好要編輯這個頁面時,你可以點擊這個連結.
-
-----
-
-PhpWikiDocumentation

Deleted: trunk/src/plugins/wiki/www/locale/zh/pgsrc/ExternalSearchPlugin
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/ExternalSearchPlugin	2011-02-05 11:21:15 UTC (rev 12162)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/ExternalSearchPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -1,58 +0,0 @@
-Date: Tue,  4 Jan 2011 11:57:23 +0000
-Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
-X-Rcs-Id: $Id: ExternalSearchPlugin 7799 2011-01-04 11:05:56Z vargenau $
-Content-Type: application/x-phpwiki;
-  pagename=ExternalSearchPlugin;
-  flags=PAGE_LOCKED;
-  markup=2;
-  charset=UTF-8
-Content-Transfer-Encoding: binary
-
-=== Synopsis
-
-ExternalSearchPlugin 建立可以查詢 InterWiki 或其他內部站台的表單.
-
-=== Typical Usage
-{{{
-<<ExternalSearch
-         url="InterWiki or URL"
-         name="button text"
->>
-}}}
-
-
-=== Arguments
-**url**:
-  指定來自 InterWikiMap 或 url 的 wiki. 任何被使用者輸入的文字將會附加在
-  搜尋 url 後面. 這段替代字串 '**=%s=**' 將會被用來在 url 裡插入搜尋查詢,
-  而不是附加了.
-
-**name**:
-  在送出按鈕上的文字. 對 InterWiki 站台來說,預設為 wiki 名稱,對其他 url 
-  來說,預設為 "External Search".
-
-**formsize**:
-  指定輸入區域大小. (預設: 30 個字元)
-
-**debug**:
-  不要真的重導向到外部站台, 只要印出要被重導向到的 url.
-
-
-=== Examples
-在 MeatBall wiki 上執行全文搜索:
-
-<<ExternalSearch
-         url="http://www.usemod.com/cgi-bin/mb.pl?search="
-         name="MeatBall Search"
->>
-
-在 PHP 站台上搜索 function 名稱:
-<<ExternalSearch url=php-lookup name="PHP Lookup" >>
-
-輸入 PHP 函數以查看文件頁:%%%
-<<ExternalSearch url=php-function >>
-
-輸入PhpWiki上任何已存在的頁面名稱,以直接跳到該頁面.
-<<ExternalSearch url=PhpWiki >>
-----
-PhpWikiDocumentation WikiPlugin

Deleted: trunk/src/plugins/wiki/www/locale/zh/pgsrc/HelloWorldPlugin
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/HelloWorldPlugin	2011-02-05 11:21:15 UTC (rev 12162)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/HelloWorldPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -1,78 +0,0 @@
-Date: Fri, 10 Sep 2010 13:48:49 +0000
-Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
-Content-Type: application/x-phpwiki;
-  pagename=HelloWorldPlugin;
-  flags="";
-  author=test;
-  version=10;
-  lastmodified=1068935007;
-  author_id=test;
-  markup=2;
-  hits=10;
-  charset=UTF-8
-Content-Transfer-Encoding: binary
-
-簡單的範例 plugin.
-
-<<HelloWorld salutation="Hello," name="WikiUser" >>
-
-From the source of this page:
-
-{{{
-<<HelloWorld salutation="Hello," name="WikiUser" >>
-}}}
-
------
-PhpWiki 的 plugin 架構允許你加入自訂的頁面元素. 你所要做的就是繼承 ~WikiPlugin
-類別並實作你的 run() 方法.
-
-<<PhpHighlight
-
-/**
- * A simple demonstration WikiPlugin.
- *
- * Usage:
- * <<HelloWorld> >
- * <<HelloWorld
- *          salutation="Greetings, "
- *          name=Wikimeister
- * > >
- * <<HelloWorld salutation=Hi > >
- * <<HelloWorld name=WabiSabi > >
- */
-
-// Constants are defined before the class.
-if (!defined('THE_END'))
-    define('THE_END', "!");
-
-class WikiPlugin_HelloWorld
-extends WikiPlugin
-{
-    // Five required functions in a WikiPlugin.
-
-    function getName () {
-        return _("HelloWorld");
-    }
-
-    function getDescription () {
-        return _("Simple Sample Plugin");
-
-    }
-
-    // Establish default values for each of this plugin's arguments.
-    function getDefaultArguments() {
-        return array('salutation' => "Hello,",
-                     'name'       => "World");
-    }
-
-    function run($dbi, $argstr, $request) {
-        extract($this->getArgs($argstr, $request));
-
-        // Any text that is returned will not be further transformed,
-        // so use html where necessary.
-        $html = HTML::tt(fmt('%s: %s', $salutation, WikiLink($name, 'auto')),
-                         THE_END);
-        return $html;
-    }
-};
->>

Copied: trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FAddingPages (from rev 12162, trunk/src/plugins/wiki/www/locale/zh/pgsrc/AddingPages)
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FAddingPages	                        (rev 0)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FAddingPages	2011-02-05 11:23:18 UTC (rev 12163)
@@ -0,0 +1,31 @@
+Date: Fri, 10 Sep 2010 13:48:49 +0000
+Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
+X-Rcs-Id: $Id: AddingPages 7682 2010-09-10 12:03:36Z vargenau $
+Content-Type: application/x-phpwiki;
+  pagename=AddingPages;
+  flags="";
+  markup=2;
+  charset=UTF-8
+Content-Transfer-Encoding: binary
+
+要加入一個新的頁面到 wiki, 你所要做的,就是使用一個有意義的標題,
+並且將每個單字的第一個字母改為大寫,像是 StringThemTogetherLikeThis.
+Wiki 會自動辨認為超連結. 除此之外,你也可以把任何單字放到中括號中,
+像這樣 [square brackets].
+
+然後你可以點選新超連結後的問號繼續 ClickTheQuestionMark,
+而 Wiki 將會給你一個製作新頁面的視窗.
+
+如果你想要加入一份帶有複雜標記的文件到 Wiki, 你最好是提供一個 URL,
+這會比直接貼上文件的內容好,像這樣:
+
+PhpWiki project homepage: http://phpwiki.sourceforge.net/
+
+Wiki 不支援 HTML 標籤 (參閱 TextFormattingRules).
+<tags>標籤就只會顯示為標籤.</tags> 為鼓勵使用, Wiki 盡可能地保持簡單.
+
+你的管理者可以打開允許嵌入 HTML 的功能, 但這樣可能就會牽涉到安全性議題.
+
+----
+
+PhpWikiDocumentation

Copied: trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCalendarPlugin (from rev 12162, trunk/src/plugins/wiki/www/locale/zh/pgsrc/CalendarPlugin)
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCalendarPlugin	                        (rev 0)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCalendarPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -0,0 +1,93 @@
+Date: Tue,  4 Jan 2011 11:57:23 +0000
+Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
+X-Rcs-Id: $Id: CalendarPlugin 7799 2011-01-04 11:05:56Z vargenau $
+Content-Type: application/x-phpwiki;
+  pagename=CalendarPlugin;
+  flags="";
+  markup=2;
+  charset=UTF-8
+Content-Transfer-Encoding: binary
+
+CalendarPlugin 可以用來在 wiki 頁面的月曆. 對 PersonalWiki~s 來說是很便利的.
+
+在月曆裡的個別日期連結到一個特別名稱的 wiki 頁面.
+"day pages"(日頁面)的名稱預設會以月曆存在頁面的名稱加上日期.
+
+''此功能是從 [Manila|http://manila.userland.com/] 得到啟示,
+並且首先由 GaryBenson 所實作. 後來則被 JeffDairiki 實作為 WikiPlugin.''
+
+===用法:
+
+{{{
+<<Calendar>>
+}}}
+
+你將會得到:
+<<Calendar>>
+
+--------
+
+=== Plugin 引數
+
+==== 月份的選擇
+
+**year**:
+
+  為月曆指定年. (預設: 目前的年份.)
+
+**month**:
+
+  為月曆指定月份. (預設: 目前的月份.)
+
+**month_offset**:
+
+  加到 ''month''. 可以用來含括好幾個月的月曆到一個 wiki 頁面.
+
+  <<Calendar month_offset=+1>>
+
+==== "Day Page" (日頁面)名稱
+
+**date_format**:
+
+  使用 [Strftime| php-function:strftime] 風格的格式字串來為 "day pages"
+  產生頁面名稱.  預設值為 =%Y-%m-%d=.
+
+**prefix**:
+
+  Prepended to the date (formatted per ''date_format'') to generate
+  the "day page" names. The default value is =~[pagename]/=.
+
+==== Appearance
+
+**month_format**:
+
+  使用 [Strftime| php-function:strftime] 風格的格式字串產生
+  月曆的標題. (預設為 =%B, %Y=.)
+
+**wday_format**:
+
+  使用 [Strftime| php-function:strftime] 風格的格式字串產生
+  在月曆上頭的 day-of-week 名稱.
+
+**start_wday**:
+
+  每週是由那一天開始.  這會是一個介於 0 (Sunday)到 6(Saturday) 的整數.
+
+  <<Calendar start_wday=1 >>
+
+-----
+
+==== Patch for 1.2
+
+GaryBenson wrote the first calendar implementation for PhpWiki 1.2.
+(Since 1.2 doesn't support plugins, it uses a =###CALENDAR###= token
+as a trigger.) Gary provides a screenshot at
+http://inauspicious.org/files/screenshots/calender.png|screenshot, a
+[patch|http://inauspicious.org/files/phpwiki/phpwiki-1.2.0-calendar.patch]
+(on 1.2.0), and
+[calendar.php|http://inauspicious.org/files/phpwiki/calendar.php]
+(which renders a view of the year.)
+
+----
+
+PhpWikiDocumentation

Copied: trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCommentPlugin (from rev 12162, trunk/src/plugins/wiki/www/locale/zh/pgsrc/CommentPlugin)
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCommentPlugin	                        (rev 0)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FCommentPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -0,0 +1,45 @@
+Date: Fri, 10 Sep 2010 13:48:49 +0000
+Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
+X-Rcs-Id: $Id: CommentPlugin 7682 2010-09-10 12:03:36Z vargenau $
+Content-Type: application/x-phpwiki;
+  pagename=CommentPlugin;
+  flags="";
+  markup=2;
+  charset=UTF-8
+Content-Transfer-Encoding: binary
+
+== Synopsis
+
+CommentPlugin 可以讓你隱藏部份 Wiki 頁面而無須刪除這些文字. 註解將只會在
+編輯或查看源碼的時候顯現出來.
+
+== Usage
+
+簡單的把 =<<Comment= 和 =>>= 放在要註解的文字前後.
+
+{{{
+<<Comment
+
+== A Hidden Section
+
+這段文字將不會顯示在產生出的 HTML 頁面中, 但在你編輯 WikiMarkup 時,它仍然可以
+被看到.
+
+>>
+}}}
+
+== Author
+
+Martin Geisler mailto:gimpster at gimpster.com.
+
+<<Comment
+
+== "Fuzzy" Logic
+Theorem: a cat has nine tails.
+Proof:
+    No cat has eight tails. A cat has one tail more than no cat.
+    Therefore, a cat has nine tails.
+
+>>
+----
+WikiPlugin

Copied: trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FEditText (from rev 12162, trunk/src/plugins/wiki/www/locale/zh/pgsrc/EditText)
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FEditText	                        (rev 0)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FEditText	2011-02-05 11:23:18 UTC (rev 12163)
@@ -0,0 +1,16 @@
+Date: Fri, 10 Sep 2010 13:48:49 +0000
+Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
+X-Rcs-Id: $Id: EditText 7682 2010-09-10 12:03:36Z vargenau $
+Content-Type: application/x-phpwiki;
+  pagename=EditText;
+  flags="";
+  markup=2;
+  charset=UTF-8
+Content-Transfer-Encoding: binary
+
+所有頁面 (除了搜尋結果以外) 的最底部都有一個 EditText 連結.
+如果準備好要編輯這個頁面時,你可以點擊這個連結.
+
+----
+
+PhpWikiDocumentation

Copied: trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FExternalSearchPlugin (from rev 12162, trunk/src/plugins/wiki/www/locale/zh/pgsrc/ExternalSearchPlugin)
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FExternalSearchPlugin	                        (rev 0)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FExternalSearchPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -0,0 +1,58 @@
+Date: Tue,  4 Jan 2011 11:57:23 +0000
+Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
+X-Rcs-Id: $Id: ExternalSearchPlugin 7799 2011-01-04 11:05:56Z vargenau $
+Content-Type: application/x-phpwiki;
+  pagename=ExternalSearchPlugin;
+  flags=PAGE_LOCKED;
+  markup=2;
+  charset=UTF-8
+Content-Transfer-Encoding: binary
+
+=== Synopsis
+
+ExternalSearchPlugin 建立可以查詢 InterWiki 或其他內部站台的表單.
+
+=== Typical Usage
+{{{
+<<ExternalSearch
+         url="InterWiki or URL"
+         name="button text"
+>>
+}}}
+
+
+=== Arguments
+**url**:
+  指定來自 InterWikiMap 或 url 的 wiki. 任何被使用者輸入的文字將會附加在
+  搜尋 url 後面. 這段替代字串 '**=%s=**' 將會被用來在 url 裡插入搜尋查詢,
+  而不是附加了.
+
+**name**:
+  在送出按鈕上的文字. 對 InterWiki 站台來說,預設為 wiki 名稱,對其他 url 
+  來說,預設為 "External Search".
+
+**formsize**:
+  指定輸入區域大小. (預設: 30 個字元)
+
+**debug**:
+  不要真的重導向到外部站台, 只要印出要被重導向到的 url.
+
+
+=== Examples
+在 MeatBall wiki 上執行全文搜索:
+
+<<ExternalSearch
+         url="http://www.usemod.com/cgi-bin/mb.pl?search="
+         name="MeatBall Search"
+>>
+
+在 PHP 站台上搜索 function 名稱:
+<<ExternalSearch url=php-lookup name="PHP Lookup" >>
+
+輸入 PHP 函數以查看文件頁:%%%
+<<ExternalSearch url=php-function >>
+
+輸入PhpWiki上任何已存在的頁面名稱,以直接跳到該頁面.
+<<ExternalSearch url=PhpWiki >>
+----
+PhpWikiDocumentation WikiPlugin

Copied: trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FHelloWorldPlugin (from rev 12162, trunk/src/plugins/wiki/www/locale/zh/pgsrc/HelloWorldPlugin)
===================================================================
--- trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FHelloWorldPlugin	                        (rev 0)
+++ trunk/src/plugins/wiki/www/locale/zh/pgsrc/Help%2FHelloWorldPlugin	2011-02-05 11:23:18 UTC (rev 12163)
@@ -0,0 +1,78 @@
+Date: Fri, 10 Sep 2010 13:48:49 +0000
+Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC1)
+Content-Type: application/x-phpwiki;
+  pagename=HelloWorldPlugin;
+  flags="";
+  author=test;
+  version=10;
+  lastmodified=1068935007;
+  author_id=test;
+  markup=2;
+  hits=10;
+  charset=UTF-8
+Content-Transfer-Encoding: binary
+
+簡單的範例 plugin.
+
+<<HelloWorld salutation="Hello," name="WikiUser" >>
+
+From the source of this page:
+
+{{{
+<<HelloWorld salutation="Hello," name="WikiUser" >>
+}}}
+
+-----
+PhpWiki 的 plugin 架構允許你加入自訂的頁面元素. 你所要做的就是繼承 ~WikiPlugin
+類別並實作你的 run() 方法.
+
+<<PhpHighlight
+
+/**
+ * A simple demonstration WikiPlugin.
+ *
+ * Usage:
+ * <<HelloWorld> >
+ * <<HelloWorld
+ *          salutation="Greetings, "
+ *          name=Wikimeister
+ * > >
+ * <<HelloWorld salutation=Hi > >
+ * <<HelloWorld name=WabiSabi > >
+ */
+
+// Constants are defined before the class.
+if (!defined('THE_END'))
+    define('THE_END', "!");
+
+class WikiPlugin_HelloWorld
+extends WikiPlugin
+{
+    // Five required functions in a WikiPlugin.
+
+    function getName () {
+        return _("HelloWorld");
+    }
+
+    function getDescription () {
+        return _("Simple Sample Plugin");
+
+    }
+
+    // Establish default values for each of this plugin's arguments.
+    function getDefaultArguments() {
+        return array('salutation' => "Hello,",
+                     'name'       => "World");
+    }
+
+    function run($dbi, $argstr, $request) {
+        extract($this->getArgs($argstr, $request));
+
+        // Any text that is returned will not be further transformed,
+        // so use html where necessary.
+        $html = HTML::tt(fmt('%s: %s', $salutation, WikiLink($name, 'auto')),
+                         THE_END);
+        return $html;
+    }
+};
+>>




More information about the Fusionforge-commits mailing list