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:)
Includes the entire text of another page into the current page.

(:include PageName#from#to:)
(:include PageName#from#:)
(:include PageName##to:)
(:include PageName#from:)
Includes lines from PageName between the [[#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.

Note: do not put whitespace between "#from" "#to"

(:include PageName lines=10:)
(:include PageName lines=5..10:)
(:include PageName lines=5..:)
Include the first 10 lines, lines 5-10, or lines 5 and up from PageName. A "line" in this context refers to a line of source. Thus a line may be a paragraph that wraps over several lines on the screen, or a completely blank line.

(:include Page1 Page2 Page3 lines=1..5:)
Include the first five lines from the first available of Page1, Page2, or Page3. (To include lines from a list of pages, use a separate include for each.)

See Also

Styling Note

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 is a wiki-based system for collaborative creation and maintenance of websites.

PmWiki pages look and act like normal web pages, except they have an "Edit" link that makes it easy to modify existing pages and add new pages into the website, using basic editing rules. You do not need to know or use any HTML or CSS. Page editing can be left open to the public or restricted to small groups of authors.

Key PmWiki Features

Custom look-and-feel: A site administrator can quickly change the appearance and functions of a PmWiki site by using different skins and HTML templates. If you can't find an appropriate skin already made, you can easily modify one or create your own.

Access control: PmWiki password protection can be applied to an entire site, to groups of pages, or to individual pages. Password protection controls who can read pages, edit pages, and upload attachments. PmWiki's access control system is completely self-contained, but it can also work in conjunction with existing password databases, such as .htaccess, LDAP servers, and MySQL databases.

Customization and plugin architecture: One principle of the PmWikiPhilosophy is to only include essential features in the core engine, but make it easy for administrators to customize and add new markup. Hundreds of features are already available by using extensions (called "recipes") that are available from the PmWiki Cookbook.

PmWiki is written in PHP and distributed under the General Public License. It is designed to be simple to install, customize, and maintain for a variety of applications. This site is running pmwiki-2.1.0.

PmWiki is a registered trademark of Patrick R. Michaud.

PmWiki's home on the web is at pmwiki.org.

Have a very nice day!

Notes

  • You can also say (:include My/Page#ananchor lines=4:) which starts from, and includes, the line with the anchor [[#myanchor]] for four lines.

  • By default, PmWiki places a limit of 50 include directives for any given page. This limit can be modified by the wiki administrator via the $MaxIncludes variable.

<< Page directives | DocumentationIndex | InterMap >>