Template:Dochead/doc: Difference between revisions

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


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


By default, this will attempt to point to the template with the same name, 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.
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.


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