Content deleted Content added
m →Usage: updating |
→Usage: update |
||
(29 intermediate revisions by 21 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{nosubst}}
This template is for use in other templates in conjunction with namespace detection. It adds pages to
{{
: (required) This parameter inserts text in the message to specify the namespace the template in question should use. ; {{parameter|nocat}}
: (optional) when set to a positive value (<code>true</code>, <code>yes</code>, or <code>1</code>), will prevent the inclusion of {{Cat|Pages with templates in the wrong namespace}}. See [[Wikipedia:Category suppression]]
| type = notice<br/>▼
<syntaxhighlight lang="wikitext">
{{Ombox
<nowiki><includeonly>{{Help other|[[Category:Example category]]|{{Incorrect namespace|help}}}}</includeonly></nowiki></code>▼
| text = Example text.
▲
</syntaxhighlight>
produces:
{{Ombox
| type = notice | text = Example text. }} {{Mbox
{{Ombox|type=content|text={{Error|The above template should only be transcluded in the ''help'' namespace(s).}}}}▼
| type = content
| image = [[File:Ambox warning orange.svg|50px|link=|alt=]]
▲
}}
In the above example,
*
* {{tl|Incorrect redirect template}}
<includeonly>{{Sandbox other||
[[Category:Template namespace templates]]
}}</includeonly>
|