NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{scrollbar:icons=false}

h1. {page-info:title}

This page and the child pages, listed below, demonstrate including an excerpt from one or more pages on another page.
{children}

Refer to these pages to see the markup for the excerpt and multi-excerpt.

h2. Include Macro Example

The include macro allows you to include an entire page in the same space on another page. Includes can be tagged by means of labels, making them easier to track than excerpts and multi-excerpts.

The following is an included page with one line of text. The page is a child of this one.

{include:Test Page To Include}

The markup is:

{code}{include:Test Page To Include}{code}

h2. Excerpt Macro Example

The excerpt macro has a limitation; you can only define one excerpt on a page.

This is the markup:

{code}
{excerpt-include:Page with Second Excerpt}
{code}

The markup is rendered as follows:

{excerpt-include:Page with Second Excerpt}

h2. Multi-Excerpt Include Example

This is the markup:

{code}
{multi-excerpt-include:pageTitle=Page with FirstMulti ExcerptExcerpts|name=Information one page one|nopanel=true}
{multi-excerpt-include:pageTitle=Page with FirstMulti ExcerptExcerpts|name=name=Information two page one|nopanel=true}
{code}

The markup is rendered as follows:

{multi-excerpt-include:pageTitle=Page with FirstMulti ExcerptExcerpts|name=Information one page one|nopanel=true}
\\
{multi-excerpt-include:pageTitle=Page with FirstMulti ExcerptExcerpts|name=Information two page one|nopanel=true}

You can define as many excerpts as needed on a single page with the multi=excerpt macro and you can include a multi-excerpt from a page in another space.

{scrollbar:icons=false}