authors (intermediate)
The (:include:)
directive makes it possible to insert the contents of other pages into the current wiki page. All of the include directives below perform a straight text inclusion. In particular, any page links in the included text are assumed to link to pages in the current group if not otherwise qualified.
(:include PageName:)
(:include Group.PageName:)
(:include PageName#from#to:)
(:include PageName#from#:)
(:include PageName##to:)
(:include PageName#from:)
[[#from]]
and [[#to]]
anchors. If "to" is omitted (second example), then all of the lines after [[#from]]
are included (and vice-versa if "from" is omitted). In the last example, include everything between [[#from]]
and the next anchor.
(:include PageName lines=10:)
(:include PageName lines=5..10:)
(:include PageName lines=5..:)
(:include Page1 Page2 Page3 lines=1..5:)
By default, Included pages or lines cannot be distinguished from other text on the page. To provide a visual indication that this text is special, you can apply WikiStyles. For example:
%define=leftborder border-left="2px solid #88f" margin-left="2px" padding="1px 0 3px 10px"% What is PmWiki? >>leftborder<< (:include PmWiki.PmWiki lines=1..4:) >><< ''Have a very nice day!'' |
What is PmWiki? ! PmWiki
Related Links:
Have a very nice day! |
(:include My/Page#ananchor lines=4:)
which starts from, and includes, the line with the anchor [[#myanchor]]
for four lines.
$MaxIncludes
variable.
<< Page directives | DocumentationIndex | InterMap >>