Help:Transclusion/zh

嵌入包含是一个 MediaWiki 中的通用术语，它指的是使用双花括号“ – ”记号在页面中包含其它内容. 包括模板、其它名字空间中的页面、变量、解析器函数的输出、某些特殊页面、跨维基页面等等.

基本用法
在两层大括号内填写以冒号隔开的名称空间和页面. 这样就可以嵌入包含这个页面. 嵌入模板时需要省略名称空间和冒号： 嵌入主名字空间中的文章时需要省略名称空间： When transcluding a subpage of the target page, you may use the subpage name by itself:

Parameters
Transcluded templates and special pages 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.


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


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

参见

 * Transclusion: A more in-depth explanation