Skip to content

Include control

Three tags control what appears when a page is included in another versus when its own page is viewed directly:

TagOn the page's own viewWhen included
<noinclude>…</noinclude>shownremoved
<includeonly>…</includeonly>removedshown
<onlyinclude>…</onlyinclude>shownonly this is included
  • <noinclude> — documentation, examples, or notes that belong on the page itself but shouldn't appear everywhere it's included.
  • <includeonly> — content that should appear only at the call sites, never on the page's own view.
  • <onlyinclude> — the strongest: when present, only the wrapped section(s) get included and everything else is ignored (it overrides the others).

Example

<onlyinclude>{{{1}}} — the reusable part</onlyinclude>
<noinclude>
== Usage ==
Documentation and examples, visible only on this page itself.
</noinclude>