]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - locale/zh/pgsrc/Help%2FTranscludePlugin
Let us say this is PhpWiki 1.4.0
[SourceForge/phpwiki.git] / locale / zh / pgsrc / Help%2FTranscludePlugin
1 Date: Fri, 10 Sep 2010 13:48:49 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FTranscludePlugin;
6   flags="";
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 TranscludePlugin 用來嵌入整個(外部)網頁到 wiki 頁面.
12
13 ==== Plugin Arguments
14
15 =src= |
16   要 transclude 的網頁 URL.
17 =height= |
18   初始化 transclusion 框架的高度.
19   如果,可能的話,在 transcluded 頁面載入後,可以透過 javascript 改變框架大小,
20   讓它能塞下整個 transcluded 頁面. (參閱下面可以得到更多.)
21
22 ==== Bugs / Caveats
23
24 o 頁面是利用 =<iframe>= 標籤達到 transclude 的目的. 舊的瀏覽器不支援
25   ''iframe''. 這種情況下,使用者將會看到超連結.
26
27 o When possible, JavaScript code is used to adjust the height of the
28   _iframe_ so that it fits the entire transcluded page.
29   Unfortunately, this seems possible only when the transcluded page
30   comes from the same server as the wiki page.  (This restriction is
31   due to security checks built in to the JavaScript language.)
32
33 o The recursion detection code does not currently work.  Be careful to
34   avoid recursive transclusions, or you'll be sorry (or at least
35   amused.)
36
37 ==== Example
38
39 {{{
40 <<Transclude src="http://phpwiki.sourceforge.net/demo/ChangeLog" >>
41 }}}
42
43 將會得到
44
45 <<Transclude src="http://phpwiki.sourceforge.net/demo/ChangeLog" >>