Template:Documentation subpage/doc: Difference between revisions
Appearance
mNo edit summary |
Add noinclude tags for usage examples |
||
Line 1: | Line 1: | ||
<noinclude>{{documentation subpage}}</noinclude> | <noinclude>{{documentation subpage}}</noinclude> | ||
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 subpage|documentation subpage]] category. | |||
The template documented should include the corresponding [[:Template:documentation|documentation]] template. | The template documented should include the corresponding [[:Template:documentation|documentation]] template. | ||
== | ==Usage== | ||
{{tlx|documentation subpage}} | The template must be placed inside <code><nowiki><noinclude></noinclude></nowiki></code> tags to avoid transcluding categories into the template. | ||
<code><nowiki><noinclude></nowiki>{{tlx|documentation subpage}}<nowiki></noinclude></nowiki></code> | |||
{{documentation subpage|inhibit=yes}} | {{documentation subpage|inhibit=yes}} | ||
Optionally, the name of the page documented by the article can be specified. | Optionally, the name of the page documented by the article can be specified. | ||
{{tlx|documentation subpage|<nowiki>[[:Template:documentation subpage]]</nowiki>}} | <code><nowiki><noinclude></nowiki>{{tlx|documentation subpage|<nowiki>[[:Template:documentation subpage]]</nowiki>}}<nowiki></noinclude></nowiki></code> | ||
{{documentation subpage|[[:Template:documentation subpage]]|inhibit=yes}} | {{documentation subpage|[[:Template:documentation subpage]]|inhibit=yes}} | ||
Revision as of 16:48, 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 documentation subpage 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>