Transclusion is a general MediaWiki term for including things into a page using double-brace "{{}}" markup. This includes templates, pages in other namespaces, magic words, output of parser functions, some Special pages, interwiki pages, and more.
To transclude a page, include both the namespace and the page name (separated with a colon) within the double-brace:
{{Help:Transclusion}}
When transcluding a template, you may omit the namespace and colon:
{{infobox}}
When transcluding an article in the Main namespace, you may omit the namespace:
{{:Transclusion}}
When transcluding a subpage of the target page, you may use the subpage name by itself:
{{/doc}}
Transcluded templates and Special pages may accept parameters:
{{note|inline|This is a note.}}
Three tags (<noinclude>
, <includeonly>
, and <onlyinclude>
) control which content appears in the target page.
<noinclude>
<noinclude>...</noinclude>
tags is excluded from transclusion on the target page. This content still appears on the source page. Source page wikitext What appears on the source page What appears on the target page Hello <noinclude>world</noinclude>
Hello world Hello
<includeonly>
<includeonly>...</includeonly>
tags is transcluded on the target page, but does not appear on the source page. Other content is also transcluded. Source page wikitext What appears on the source page What appears on the target page Hello <includeonly>world</includeonly>
Hello Hello world
<onlyinclude>
<onlyinclude>...</onlyinclude>
tags is transcluded on the target page, and also appears on the source page. Other content is not transcluded. Source page wikitext What appears on the source page What appears on the target page Hello <onlyinclude>world</onlyinclude>
Hello world world
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4