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 setthe ofchild pages demonstrates, listed below, demonstrate including an excerpt from one or more pages on another page.
{children}

YouRefer canto usethese thepages multi-excerptto macrosee as in the first example, ormarkup for the excerpt macro, as in the second. and multi-excerpt.

h2. Excerpt Macro Example

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

Below are two excerpts from pages with text that needs to appear on this 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 First Excerpt|name=Information one page one|nopanel=true}
\\
{multi-excerpt-include:pageTitle=Page with First Excerpt|name=name=Information two page one|nopanel=true}

{excerpt-include:Page with Second Excerptcode}

BelowThe markup is therendered code for the first example:

{code}as follows:

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

BelowYou iscan thedefine codeas formany theexcerpts second example:

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

The pages where the excerpts shown on this page are defined, are child pages of this page.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}