Mr. Johnson (talk | contribs) No edit summary Tag: Reverted |
Mr. Johnson (talk | contribs) No edit summary Tag: Manual revert |
||
Line 1: | Line 1: | ||
<includeonly>[[Category:Template]]</includeonly><noinclude>[[Category:Template Documentation]]</noinclude> | <includeonly>[[Category:Template]]</includeonly><noinclude>[[Category:Template Documentation]]</noinclude> | ||
{{Template|Documentation}} is used within the template namespace to automate the detection and presentation of documentation. | {{Template|Documentation}} is used within the template namespace to automate the detection and presentation of documentation. | ||
==Usage== | |||
It accepts {{Parameter|none}}. It should be included at the top of every template's main page — [[Boilerplate:Template]] does this automatically. | It accepts {{Parameter|none}}. It should be included at the top of every template's main page — [[Boilerplate:Template]] does this automatically. | ||
Any categories meant to apply to the template itself should be included in the documentation subpage, wrapped inside {{Code|<nowiki><includeonly /></nowiki>}} tags, rather than directly in the body of the template.<!-- This documentation is a bad example, as it has to be specially formatted to prevent template loops.--> | Any categories meant to apply to the template itself should be included in the documentation subpage, wrapped inside {{Code|<nowiki><includeonly /></nowiki>}} tags, rather than directly in the body of the template.<!-- This documentation is a bad example, as it has to be specially formatted to prevent template loops.--> | ||
==Return== | |||
As it relies on the presence or existence of other pages, working examples cannot be provided. | As it relies on the presence or existence of other pages, working examples cannot be provided. |
Latest revision as of 06:18, 19 November 2023
Template:Documentation
is used within the template namespace to automate the detection and presentation of documentation.
Usage
It accepts no parameters. It should be included at the top of every template's main page — Boilerplate:Template does this automatically.
Any categories meant to apply to the template itself should be included in the documentation subpage, wrapped inside <includeonly />
tags, rather than directly in the body of the template.
Return
As it relies on the presence or existence of other pages, working examples cannot be provided.