Template:Documentation/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{dochead}}{{wikipedia}}
{{dochead}}{{wikipedia}}
The <code><nowiki>{{documentation}}</nowiki></code> template is used to contain information and instructions for templates and modules. The actual information is located in the <code>/doc</code> subpage.{{clear}}
The <code>{{<nowiki />documentation}}</code> template is used to contain information and instructions for templates and modules. The actual information is located in the <code>/doc</code> subpage.
 
Wikipedia's documentation template has modules that help render the dialog boxes, but here the box is hard-coded to simplify things.
__NOTOC__
__NOTOC__
=== Templates ===
=== Templates ===
Place this template on the page itself, enclose <code><nowiki>{{documentation}}</nowiki></code> in <code><<nowiki />noinclude></code> tags, and put in the relevant categories afterwards:
Place this template on the page itself, enclose <code>{{<nowiki />documentation}}</code> in <code><<nowiki />noinclude></code> tags, and put in the relevant categories afterwards:


<pre>
<pre>
Line 25: Line 27:
}}
}}
</pre>
</pre>
Wikipedia has {{w|Module:Documentation}} which takes care of things automatically on pages consisting of exclusively code (e.g. modules), but here, this is used as a workaround.


=== See also ===
=== See also ===
* [[Template:Dochead]] – used to categorise and add appropriate headers onto documentation pages.
* [[Template:Dochead]] – used to categorise and add appropriate headers onto documentation pages.