Template:Documentation: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
No edit summary
(fine)
Line 1: Line 1:
{{#ifeq:{{SUBPAGENAME}}|doc|
<div class="doc-subpage">
This is the documentation subpage for [[{{#titleparts:{{FULLPAGENAME}}|-1}}]]. It contains information about the template, such as usage and categories, and is not included in the template itself.
</div>[[Category:Template documentation]]{{#ifeq:{{{1}}}|subpage||<span class="error">Warning: must pass "subpage" to doc template</span>[[Category:Pages with template errors]]}}
|
{{#ifeq:{{{1}}}|subpage||
<div class="template-doc">
<div class="template-doc">
<span class="plainlinks"><nowiki>[</nowiki>[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]<nowiki>]</nowiki></span>
<span class="plainlinks"><nowiki>[</nowiki>[{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} edit]<nowiki>]</nowiki></span>
<span style="font-size:150%;">Documentation</span>
<span style="font-size:150%;">Documentation</span>
<div>
<div>{{/doc}}</div>
{{/doc}}
</div>
</div>__NOEDITSECTION__
</div>__NOEDITSECTION__
}}}}

Revision as of 07:32, 30 June 2020

[edit] Documentation

This template should be used on all template pages to display and format the template's documentation. If the documentation does not exist, the template should be used anyway to link to it and add it to WantedTemplates. There are no parameters.

Template categories should be added to the documentation page, not the template page.