Template:Dochead/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
No edit summary
Line 3: Line 3:


: {| style="margin: 15px 0px 15px 0px; width: 98%;"
: {| style="margin: 15px 0px 15px 0px; width: 98%;"
| <hr><small>Documentation transcluded from [[Template:Docheadwiki/doc|/doc]]</small>
| <hr><small>Documentation transcluded from [[/doc]]</small>
|}
|}



Revision as of 11:08, 22 May 2024

This template automatically inserts the default documentation header:


Documentation transcluded from /doc

on templates and modules, while also providing a link to the documentation subpage. It is wrapped in a <span> element with a switchable display so that it is visible on the base page but not on the documentation page.

It also places items inside their respective categories, which eliminates the need to do this manually. Currently, it is configured to place templates inside Category:Templates and modules inside Category:Lua modules.

Usage

This template is invoked by placing {{dochead}} at the top of a module or template's /doc subpage.

See also