What is a transclusion?
Transclusion means the inclusion of the content of one page (the transclude) in the content area of another page. Most often, templates are used to achieve a transclusion. If the content of the transclude is changed, the alteration is visible on all sites containing the transclusion.
Scope of application
By using transclusions, you can maximize the consistency in your wiki, minimize redundancy, and optimize your workflows and code. The use of transclusions is especially indicated for the following cases:
- Banner: It will be displayed on other pages through transclusion
- Table: Parts of it or whole tables will be displayed on other pages through transclusion
The functions of transclusions
To use a transclusion, the transclude has to be implemented on the target page by entering the transcludes name in curly braces.
This causes the target page to show the content of the transclude. Future changes made on the transclude will also appear on the target page.
Transclusions with Parameters
It is possible to use both named and unnamed parameters with transclusions.
By using the tags "noinclude", "onlyinclude" and "includeonly" it is possible to only transclude parts of a document.
- Allows to exclude the content between the tags of the transclusions
- Allows to transclude the content between the tags, but doesn't show them on the transclusion template.
- Allows only to transclude the content between the tags.
Classic revisions with MediaWiki
Further information can be found on mediawiki.org