Template:Dochead/doc: Difference between revisions
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
This template automatically | {{ {{ROOTPAGENAME}} }} | ||
This template automatically categorizes documentation by namespace, which eliminates the need to do this manually. Currently, it is configured to place modules and their documentation inside their respective categories ([[:Category: Lua modules]] and [[:Category: Module documentation]]). | |||
=== Usage === | === Usage === | ||
This template is invoked by placing <code><nowiki>{{dochead}}</nowiki></code> at the top of a module or template's <code | This template is invoked by placing <code><nowiki>{{dochead}}</nowiki></code> at the top of a module or template's <code>/doc</code> subpage. | ||
On modules, unless <code>header=none</code> is passed, a header will appear to inform users that modules should be called via templates instead of being invoked directly: | On modules, unless <code>header=none</code> is passed, a header will appear to inform users that modules should be called via templates instead of being invoked directly: | ||
Line 15: | Line 14: | ||
=== See also === | === See also === | ||
* [[Template: Documentation]] | * [[Template: Documentation]] – inserts a documentation section onto a template or module. | ||
* [[Template: Doc head Wikipedia]] | * [[Template: Doc head Wikipedia]] – similar template, used mainly for templates borrowed from Wikipedia. |