Template:Dochead/doc: Difference between revisions
ArrowHead294 (talk | contribs) |
ArrowHead294 (talk | contribs) mNo edit summary |
||
Line 2: | Line 2: | ||
This template automatically inserts the default documentation header: | This template automatically inserts the default documentation header: | ||
<div class="toccolours" style="margin-left: 1.6em; width: 95%;"> | |||
<div><hr /><span style="font-size: 0.75em;">Documentation transcluded from [[/doc]]</span></div> | |||
</div> | |||
onto the main pages for certain items (mostly templates and modules), while also providing a link to the documentation subpage. | onto the main pages for certain items (mostly templates and modules), while also providing a link to the documentation subpage. | ||
Line 15: | Line 15: | ||
On modules, unless <code>header=none</code> is passed, a header will appear. By default, this will attempt to point to the template with the same name: | On modules, unless <code>header=none</code> is passed, a header will appear. By default, this will attempt to point to the template with the same name: | ||
<div class="toccolours" style="margin-left: 1.6em; width: 95%;"> | |||
'''Note:''' Do not invoke this module directly; use the corresponding template instead: [[Template:{{ROOTPAGENAME}}]]. | |||
</div> | |||
but this can be changed by passing <code>temp=</code> followed by the name of the template (without <code>Template:</code> in front). | but this can be changed by passing <code>temp=</code> followed by the name of the template (without <code>Template:</code> in front). |