Page History
Wiki Markup |
---|
{scrollbar:icons=false}
h1. Including the text of a page on another page
To include the text of a page on another page:
* Create the page with the text you want to include. The space root is a good place to create the page, because the page will not interfere with navigation in the space.
* On the page where you want the included text to appear, *use the following markup at the place where the included text should start*: {code} |
Scrollbar | ||
---|---|---|
|
Including the text of a page on another page
To include the text of a page on another page:
...
{include:spacekey:name of page}{code} |
...
. If the page to be included is in the same space, you do not need the spackey. |
...
* Alternatively, you can use the multi-excerpt macro. Refer to [Demonstration of includes and Excerpt-Includes (Multi-Excerpt and Excerpt Macros) |
...
] * Avoid putting a table of contents on a page that is to be included, because the links will not work on the page where the table of contents is included. |
...
As an example of the include macro, the [caArray Installation Guide|https://wiki.nci.nih.gov/x/VQcuAQ] has instructions for printing that are on a page in the space root of the caArray2 space. The markup for the included text is: |
...
{code |
}{include:Instructions for Printing}{code} The instructions are also included below. The markup is: |
...
{code |
}{include:caArray2doc:Instructions for Printing} |
...
{code} {include:caArray2doc:Instructions for Printing |
...
Tip | ||
---|---|---|
title | How to Locate All the Pages Where an} {tip:title=How to Locate All the Pages Where an "Include" is Used | }Enter the include in the Confluence search field as follows: {code }"{include:spacekey:includepagename}" {code} where 'includepagename' is tht title of the included page. |
...
{tip}
{scrollbar:icons=false} |