Template:Documentation subpage: Difference between revisions
Appearance
m Use {{Documentation}} instead of {{template doc}}, mark entire template as include-only |
|||
Line 1: | Line 1: | ||
<div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center"> | <includeonly><div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center"> | ||
This is the documentation page for {{{1|[[{{NAMESPACE}}:{{BASEPAGENAME}}]]}}}. <div style="font-size: 90%">When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.</div> | This is the documentation page for {{{1|[[{{NAMESPACE}}:{{BASEPAGENAME}}]]}}}. <div style="font-size: 90%">When it is viewed directly, links using variables may appear broken; do not replace these with hardcoded page names or URLs.</div> | ||
</div | </div>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[Category:Template documentation|{{PAGENAME}}]]}}</includeonly><noinclude>{{documentation}}</noinclude> | ||
{{ | |||
</noinclude> |
Latest revision as of 16:23, 2 August 2024
This documentation is transcluded from Template:Documentation subpage/doc (history).
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>