Template:Documentation/Doc: Difference between revisions
Appearance
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..." |
(No difference)
|
Revision as of 14:19, 5 June 2025
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>