Jump to navigation Jump to search
This page is a translated version of the page Help:Transclusion and the translation is 17% complete.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎català • ‎français • ‎galego • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎slovenčina • ‎svenska • ‎čeština • ‎Ελληνικά • ‎русский • ‎українська • ‎עברית • ‎中文 • ‎日本語 • ‎한국어
PD OBS: När du redigerar denna sida samtycker du till att släppa ditt bidrag under CC0. Se hjälpsidorna för Public Domain för mer information.

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.

Grundläggande användning

To transclude a page, include both the namespace and the page name (separated with a colon) within the double-brace:


When transcluding a template, you may omit the namespace and colon:


When transcluding an article in the Main namespace, you may omit the namespace:


When transcluding a subpage of the target page, you may use the subpage name by itself:



Transcluded templates and special pages may accept parameters:

{{note|inline|This is a note.}}

Source page syntax

Three tags (noinclude, includeonly, and onlyinclude) control which content appears in the target page.

Content within the <noinclude></noinclude> tags is excluded from transclusion on the target page. This content still appears on the source page.
Content within the <includeonly></includeonly> tags is transcluded on the target page, but does not appear on the source page.
Content within the <onlyinclude></onlyinclude> tags is transcluded on the target page, and also appears on the source page.

Se även