Template:Documentation subpage: Difference between revisions
Appearance
New page: <div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center"> This is the documentation page for {{{1|[[{{NAMESPACE}}:{{BA... |
No edit summary |
||
| Line 1: | Line 1: | ||
<div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center"> | <div class="messagebox" id="template_doc_page_viewed_directly" style="text-align: center"> | ||
This is the | 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><includeonly>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[Category:Template documentation|{{PAGENAME}}]]}}</includeonly><noinclude> | </div><includeonly>{{#if: {{{inhib|{{{inhibit|}}}}}} |<!-- skip -->|[[Category:Template documentation|{{PAGENAME}}]]}}</includeonly><noinclude> | ||
{{pp-semi-template|small=yes}} | {{pp-semi-template|small=yes}} | ||
Revision as of 08:33, 25 September 2007
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>
