Template:Documentation/doc

From RosieSoCrossing
Revision as of 12:45, 8 September 2025 by Rosie (talk | contribs) (Created page with "==Usage== <pre> {{Documentation|<page title>}} </pre> This template exists to include documentation of a particular template using the <code>doc</code> subpage. Adding <code><nowiki>{{Documentation}}</nowiki></code> in, for example, Template:Notice Box effectively transcludes Template:Notice Box/doc. By default the template will automatically link to a subpage of the page its placed on. The one and only parameter allows you to name a different page instead. Th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{Documentation|<page title>}}

This template exists to include documentation of a particular template using the doc subpage. Adding {{Documentation}} in, for example, Template:Notice Box effectively transcludes Template:Notice Box/doc.

By default the template will automatically link to a subpage of the page its placed on. The one and only parameter allows you to name a different page instead. This is useful if you want related templates to share the same documentation, as you can link them all to the same subpage.