Template:Documentation subpage/doc: Difference between revisions
Appearance
Add noinclude tags for usage examples |
m Fix category names |
||
Line 2: | Line 2: | ||
Marks a page as documentation subpage to a template. It should be applied to all /doc pages for templates. | Marks a page as documentation subpage to a template. It should be applied to all /doc pages for templates. | ||
All pages marked with this template are placed in the [[:Category:documentation | All pages marked with this template are placed in the [[:Category:template documentation|template documentation]] category. | ||
The template documented should include the corresponding [[:Template:documentation|documentation]] template. | The template documented should include the corresponding [[:Template:documentation|documentation]] template. |
Latest revision as of 16:49, 2 August 2024
Marks a page as documentation subpage to a template. It should be applied to all /doc pages for templates.
All pages marked with this template are placed in the template documentation category.
The template documented should include the corresponding documentation template.
Usage
The template must be placed inside <noinclude></noinclude>
tags to avoid transcluding categories into the template.
<noinclude>
{{documentation subpage}}
</noinclude>
Optionally, the name of the page documented by the article can be specified.
<noinclude>
{{documentation subpage|[[:Template:documentation subpage]]}}
</noinclude>