NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Consider using an excerpt or multiexcerpt in the following cases:

If you want two wiki pages to display the same content, consider using an Include page or a multi-excerpt, rather than an excerpt, because it is easier to keep track of where they are used. For information, refer to Finding Where Reused Content Appears or Including the Content of a Page on Another Page

Wiki Markup
{scrollbar:icons=false}

...

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

Panel
titleList of Child Pages

Children Display

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

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.

...

The markup is:

Code Block
{include:Test Page To Include}

Excerpt Macro Example

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

This is the markup:

Code Block
{excerpt-include:Page with Second Excerpt}

The markup is rendered as follows:

...

Multi-Excerpt Include Example

This is the markup to place on the page that has the content you want to render into another pager:

Code Block
{multi-excerpt:name=excerptName}
...
{multi-excerpt}

This is the markup to place on the page where you want to put content from another page:

Code Block
{multi-excerpt-include:pageTitle=Page with Multi Excerpts|name=Information one page one|nopanel=true}
{multi-excerpt-include:pageTitle=Page with Multi Excerpts|name=Information two page one|nopanel=true}

The markup is rendered as follows:

Wiki Markup
{multi-excerpt-include:pageTitle=Page with Multi Excerpts|name=Information one page one|nopanel=true}

To view the Confluence editor view of the macros in use:

  1. Open the child pages. 
  2. Click the Tools (...) icon above the page title, on the right side of the page. 
  3. Select View Source.

Example of including an excerpt

The following is an example of the Excerpt include macro. The excerpt is in italics.

Excerpt Include
Page with Excerpt
Page with Excerpt
nopaneltrue

For instructions, refer to the following Atlassian help pages:

Example of including multiple excerpts

The following is an example of a Multiexcerpt include macro. The multiexcerpt is in italics.

Multiexcerpt include
MultiExcerptNameMultiExcerptExampleOne
nopaneltrue
PageWithExcerptPage with Multiexcerpts

The following is another example of a Multiexcerpt include macro, for a multiexcerpt on the same page. The multiexcerpt is in italics.

Multiexcerpt include
MultiExcerptNameMultiExcerptExampleTwo
nopaneltrue
PageWithExcerptPage with Multiexcerpts

{multi-excerpt-include:pageTitle=Page with Multi Excerpts|name=Information two page one|nopanel=true}
Tip
Wiki Markup

You can define as many excerpts as needed on a single page with the

...

Multiexcerpt macro. You can include a

...

Multiexcerpt from a page in another space

...

Code Block
{multi-excerpt-include:spaceKey:pageName|name=excerptName|nopanel=true}

. The page title is in the form "spacekey:pageName."

{scrollbar:icons=false}
Note

If you include multi-excerpts Multiexcerpts inside one another (nest them) bulleted lists will not render be rendered properly. Links in a multi-excerpt Multiexcerpt include may not render be rendered properly in another multi-excerpt Multiexcerpt include.

Wiki Markup

For instructions, refer to the following Atlassian help page:

https://artemis.atlassian.net/wiki/spaces/SUP/pages/410845659/MultiExcerpt+Server+and+Data+Center+-+User+Guide

Multiexcerpt include
MultiExcerptNameExitDisclaimer
nopaneltrue
PageWithExcerptwikicontent:Exit Disclaimer to Include