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