Template:Documentation

Revision as of 17:32, 17 June 2024 by Lukflug (talk | contribs) (Created page with "{|style="border:1px solid black;padding:1em;width:100%;background:#E0FFE0;text-align:left" | = Template documentation = {{{{PAGENAME}}/doc}} |}<noinclude>Category:Meta-templates</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template documentation

This template is meant to be included in a <noinclude> block at the end of a template with documentation located in the /doc subpage. This subpage is then transcluded inside a green box in the template page, as with this very text, when read from the main template page. One can use different content by setting the content argument. If there are positional arguments present, these will be used to form a list in the transcluded from notice, rather than the default /doc subpage. For example:

{{Documentation|Template:Documentation page/doc|Template:Redirect page/doc|content=
== Documentation page documentation ==
{{Documentation page/doc}}
== Redirect page documentation ==
{{Redirect page/doc}}
}}

Will produce:

Template documentation

Template loop detected: Template:Documentation/doc