Skip to content

Include control

Three tags control what appears when a template is transcluded versus when its own page is viewed directly:

TagOn the template's own pageWhen transcluded
<noinclude>…</noinclude>shownremoved
<includeonly>…</includeonly>removedshown
<onlyinclude>…</onlyinclude>shownonly 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>

HonoWiki Engine guide