1 Date: Thu, 3 Jul 2008 10:56:37 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FIncludePagePlugin;
9 Content-Transfer-Encoding: binary
11 The *~IncludePage* plugin will "include" other pages in this wiki. In the language of hypertext this is called <i>transclusion</i>. The pages will render in distinct tables. You can also load external pages in a more limited fashion with the [FrameInclude|Help:FrameIncludePlugin] plugin.
15 <?plugin IncludePage page=OtherPage rev=6 quiet=1 words=50 lines=6?>
23 the revision (defaults to most recent)
25 if set, inclusion appears as normal content
27 maximum number of bytes to include
29 maximum number of words to include
31 maximum number of lines to include
33 maximum number of sections to include
35 include a named section
37 when including a named section show the heading
41 !! ~IncludePage page=samplepage
42 <?plugin IncludePage page=samplepage ?>
44 !! ~IncludePage page=samplepage lines=6
45 <?plugin IncludePage page=samplepage lines=6 ?>
47 !! ~IncludePage page=samplepage section="Second section"
48 <?plugin IncludePage page=samplepage section="Second section" ?>
50 !! ~IncludePage page=samplepage section="Second section" sectionhead=true
51 <?plugin IncludePage page=samplepage section="Second section" sectionhead=true ?>
53 !! ~IncludePage page=samplepage sections=2
54 <?plugin IncludePage page=samplepage sections=2 ?>
56 !! ~IncludePage page=samplepage section="Second section" sections=2
57 <?plugin IncludePage page=samplepage section="Second section" sections=2 ?>
59 !! ~IncludePage page=samplepage quiet=1
60 <?plugin IncludePage page=samplepage quiet=1 ?>
62 !! ~IncludePage page=samplepage lines=6 quiet=1
63 <?plugin IncludePage page=samplepage lines=6 quiet=1 ?>
65 !! ~IncludePage page=samplepage section="Second section" quiet=1
66 <?plugin IncludePage page=samplepage section="Second section" quiet=1 ?>
68 !! ~IncludePage page=samplepage section="Second section" sectionhead=true quiet=1
69 <?plugin IncludePage page=samplepage section="Second section" sectionhead=true quiet=1 ?>
71 !! ~IncludePage page=samplepage sections=2 quiet=1
72 <?plugin IncludePage page=samplepage sections=2 quiet=1 ?>
74 !! ~IncludePage page=samplepage section="Second section" sections=2 quiet=1
75 <?plugin IncludePage page=samplepage section="Second section" sections=2 quiet=1 ?>
79 * ~RedirectTo plugin is not handled correctly.
80 * Line and word limit doesn't work if the included page itself includes a plugin.
85 * bug fixes by [Reini Urban|PhpWiki:ReiniUrban]
86 * "sections" parameter implemented by Marc-Etienne Vargenau, Alcatel-Lucent
90 * [Help:IncludePagesPlugin] (to include multiple pages)
91 * [Help:TemplatePlugin] (to include a page with parameters)
92 * [Help:FrameIncludePlugin] (to include an external page)
95 [PhpWikiDocumentation] [CategoryWikiPlugin]