Template:Documentation/doc

Revision as of 05:29, 30 July 2025 by FaeriMagic (talk | contribs) (Created page with "This template transcludes documentation from a <code>/doc</code> subpage onto the template page, if it exists. == Basic usage == Place the following at the bottom of the template: <pre><nowiki><noinclude> {{Documentation}} </noinclude></nowiki></pre> This setup ensures that: * When viewing the template page, the documentation is displayed. * When the template is used elsewhere, the documentation is hidden. <noinclude>== Example == Below is a working example using a sub...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template transcludes documentation from a /doc subpage onto the template page, if it exists.

Basic usage

Place the following at the bottom of the template:

<noinclude>
{{Documentation}}
</noinclude>

This setup ensures that:

  • When viewing the template page, the documentation is displayed.
  • When the template is used elsewhere, the documentation is hidden.

Example

Below is a working example using a subpage at Template:Documentation/doc:

This template transcludes documentation from a /doc subpage onto the template page, if it exists.

Basic usage

Place the following at the bottom of the template:

<noinclude>
{{Documentation}}
</noinclude>

This setup ensures that:

  • When viewing the template page, the documentation is displayed.
  • When the template is used elsewhere, the documentation is hidden.