도움말:문서 끼워넣기

This page is a translated version of the page Help:Transclusion and the translation is 11% complete.
PD 주의사항: 이 문서를 편집하면 CC0에 따라 당신의 기여한 것을 배포하는 데 동의하는 것으로 간주됩니다. 자세한 내용은 퍼블릭 도메인 도움말 문서를 확인 하세요. PD

문서 끼워넣기(Transclusion) 는 이중 중괄호 문법 "{{}}" 을 사용해 문서내용을 끼워넣는, MediaWiki 에서 사용하는 용어입니다. 이것은 틀(Template) 문서, 다른 이름공간에 있는 문서, 특수 변수(magic words), 구문해석 함수의 출력, 특수문서, 인터위키 문서와 다른것들에게도 동일하게 적용됩니다.

Basic use

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}}

Parameters

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.

‎<noinclude>

Content within the ‎<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>

Content within the ‎<includeonly>...‎</includeonly> tags is transcluded on the target page, but does not appear on the source page.

Source page wikitext What appears on the source page What appears on the target page
Hello <includeonly>world</includeonly> Hello Hello world
‎<onlyinclude>

Content within the ‎<onlyinclude>...‎</onlyinclude> tags is transcluded on the target page, and also appears on the source page.

Source page wikitext What appears on the source page What appears on the target page
Hello <onlyinclude>world</onlyinclude> Hello world world

See also