NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
This set of pages demonstrates including an excerpt from one or more pages on another page.

You can use the multi-excerpt macro as in the first example, or the excerpt macro, as in the second. 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.

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

{excerpt-include:Page with Second Excerpt}

Below is the code for the first example:

{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}
{code}

Below is the code for the 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.