Template:Documentation subpage/doc: Difference between revisions
Appearance
mNo edit summary |
m Fix category names |
||
(One intermediate revision by the same user not shown) | |||
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: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. | ||
== | ==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}} | ||
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>