Template:Dochead/doc: Difference between revisions

ArrowHead294 (talk | contribs)
ArrowHead294 (talk | contribs)
mNo edit summary
Line 16: Line 16:


<blockquote class="toccolours">
<blockquote class="toccolours">
'''Note:''' Do not invoke this module directly; use the corresponding template instead: [[mw:Help:Magic words#Page names|Template:&laquo;ROOTPAGENAME&raquo;]].
'''Note:''' Do not invoke this module directly; use the corresponding template instead: [[mw:Help:Magic words#Page names|Template:ROOTPAGENAME]].
</blockquote>
</blockquote>


By default, this will attempt to point to the template with the same name (here, {{nowrap|&laquo;ROOTPAGENAME&raquo;}} refers to the name of the page without the namespace or subpages), but this can be changed by passing <code>temp=</code> followed by the name of the template. Whether <code>Template:</code> is present in what is passed to <code>temp</code> doesn't matter, as long as a template with the specified name exists.
where {{nowrap|&laquo;ROOTPAGENAME&raquo;}} refers to the name of the page without the namespace or subpages. This way, the link in the header will attempt to point to a template with the same name as the module, but the template which calls the module is named differently, pass in <code>temp=</code> followed by the name of the template.


=== See also ===
=== See also ===