Help:Transclusion
<languages /> Template:PD Help Page <translate> Transclusion is a general MediaWiki term for including things into a page using double-brace "<tvar|1>{{}}</>" markup.</translate> <translate> This includes [[<tvar|templates>Special:MyLanguage/Help:Templates</>|templates]], pages in other namespaces, [[<tvar|mg-wrds>Special:MyLanguage/Help:Magic words</>|magic words]], output of [[<tvar|pr-fns>Special:MyLanguage/Help:Parser function</>|parser functions]], some [[<tvar|sp-pgs>Special:MyLanguage/Help:Special pages</>|Special pages]], [[<tvar|iw-pgs>Special:MyLanguage/Manual:Interwiki</>|interwiki pages]], and more.</translate>
<translate>
Target page syntax[edit source]
Basic use[edit source]
To transclude a page, include both the namespace and the page name (separated with a colon) within the double-brace: </translate>
{{Help:Transclusion}}
<translate> When transcluding a [[<tvar|1>Special:MyLanguage/Help:Templates</>|template]], you may omit the namespace and colon: </translate>
{{infobox}}
<translate> When transcluding an article in the Main namespace, you may omit the namespace: </translate>
{{:Transclusion}}
<translate> When transcluding a subpage of the target page, you may use the subpage name by itself: </translate>
{{/doc}}
<translate>
Parameters[edit source]
Transcluded templates and <tvar|1>Template:Ll</> may accept parameters: </translate>
{{note|inline|This is a note.}}
<translate>
Source page syntax[edit source]
Three tags (noinclude, includeonly, and onlyinclude) control which content appears in the target page. </translate>
- noinclude
<translate>
- Content within the
<noinclude></noinclude>
tags is excluded from transclusion on the target page. This content still appears on the source page.</translate> - includeonly
<translate>
- Content within the
<includeonly></includeonly>
tags is transcluded on the target page, but does not appear on the source page.</translate> - onlyinclude
<translate>
- Content within the
<onlyinclude></onlyinclude>
tags is transcluded on the target page, and also appears on the source page.
See also[edit source]
- Transclusion: A more in-depth explanation
</translate>
[[Category:Help{{#translation:}}|Transclusion]]