Help:Including
You can include other pages in your page in several ways:
- Transcluding
- Substituting
Transcluding
Transclusion means that the page identified is used (like a template) and is refreshed when the page is opened or edited.
So, if the page has changed, the new page is used.
This is most commonly used when you want the page being created to always have the latest information.
The syntax to transclude pages is:
{{(namespace:)pagename}}
By default, this syntax transcludes from the Templates group, so:
{{templatename}}
will transclude from the Templates namespace.
To transclude from a named namespace, use:
{{namespace:pagename}}
For example, to transclude from the Help namespace, the syntax is:
{{Help:pagename}}
Normal pages have no namespace. To transclude normal pages, use a blank namespace, for example:
{{:pagename}}
Substitution
Substitution (or subclusion in wiki terms) means that the page identified is used (like a template) and is refreshed only when the page is edited.
So, if the page has changed when editing, the new page is used. If a page is viewed, the page as was when the page was created is used.
This is most commonly used when you want the page to reflect the most recent documentation at the point of creation rather than the latest documentation at this time.
The syntax to substitute pages is:
{{subst:(namespace:)pagename}}
By default, this syntax substitutes from the Templates group, so:
{{subst:templatename}}
will substitute from the Templates namespace.
To substitute from a named namespace, use:
{{subst:namespace:pagename}}
For example, to substitute from the Help namespace, the syntax is:
{{subst:Help:pagename}}
Normal pages have no namespace. To substitute normal pages, use a blank namespace, for example:
{{subst::pagename}}