Appearance
Include control
Three tags control what appears when a template is transcluded versus when its own page is viewed directly:
| Tag | On the template's own page | When transcluded |
|---|---|---|
<noinclude>…</noinclude> | shown | removed |
<includeonly>…</includeonly> | removed | shown |
<onlyinclude>…</onlyinclude> | shown | only this is transcluded |
<noinclude>— documentation, examples, or notes that belong on the template page but shouldn't appear everywhere the template is used.<includeonly>— content that should appear only at the call sites, never on the template's own page.<onlyinclude>— the strongest: when present, only the wrapped section(s) get transcluded and everything else is ignored for transclusion (it overrides the others).
Example
<onlyinclude>{{{1}}} — the reusable part</onlyinclude>
<noinclude>
== Usage ==
Documentation and examples, visible only on this template page.
</noinclude>