Help:Transclusion/cs

"Transkluze" je klíčový termín MediaWiki, kterým se rozumí automatické vkládání obsahu do stránky s využitím dvojitých složených závorek " – ". Vkládat lze nejenom šablony, ale také o stránky z jiných jmenných prostorů, systémové proměnné, obsah generovaný parsovacími funkcemi, výstup Speciálních stránek, obsah stránek interwiki, aj.

Basic use
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:

Parameters
Transcluded templates and may accept parameters:

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


 * noinclude
 * Content within the  tags is excluded from transclusion on the target page. This content still appears on the source page.


 * {| class="wikitable"

! Source page wikitext ! What appears on the source page ! What appears on the target page
 * Hello world
 * Hello
 * }
 * Hello
 * }


 * includeonly
 * Content within the  tags is transcluded on the target page, but does not appear on the source page.


 * {| class="wikitable"

! Source page wikitext ! What appears on the source page ! What appears on the target page
 * Hello
 * Hello world
 * }
 * Hello world
 * }


 * onlyinclude
 * Content within the  tags is transcluded on the target page, and also appears on the source page.


 * {| class="wikitable"

! Source page wikitext ! What appears on the source page ! What appears on the target page
 * Hello world
 * world
 * }
 * world
 * }