Jump to content

Template:Documentation/Doc

From NixOS Wiki
Revision as of 14:19, 5 June 2025 by DoggoBit (talk | contribs) (Created page with "This template is used for providing documentation for templates. It will "grab" the documentation from the <code>/Doc</code> subpage under the template it's used for. For example, using it on Template:Documentation would grab the documentation from Template:Documentation/Doc. == Usage == In general, the documentation should not be part of the template itself, thus you might want to do follow this general pattern: <pre> <includeonly> <!-- Template-specific co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is used for providing documentation for templates. It will "grab" the documentation from the /Doc subpage under the template it's used for. For example, using it on Template:Documentation would grab the documentation from Template:Documentation/Doc.

Usage

In general, the documentation should not be part of the template itself, thus you might want to do follow this general pattern:

<includeonly>
  <!-- Template-specific code -->
</includeonly><noinclude>{{Documentation}}</noinclude>