Template:Incorrect namespace/doc: Difference between revisions

Content deleted Content added
m Undid revision 415629874 by Mclay1 (talk) Updating
Improving example.
Line 7:
 
===Example===
<code><nowiki>{{AmboxOmbox</nowiki><br/>
| type = stylenotice<br/>
| text = Example text.<br/>
}}<br/>
<nowiki><includeonly>{{MainHelp other|[[Category:Example category]]|{{Incorrect namespace|mainhelp}}}}</includeonly></nowiki></code>
 
produces:
 
{{AmboxOmbox
| type = stylenotice
| text = Example text.
}}
{{Help other|[[Category:Example category]]|{{Incorrect namespace|help}}}}
{{Ambox
| type = content
| text = The above template should only be transcluded in the main namespace.
}}
 
In the above example, transcluding the article message box will categorise mainhelp namespace pages into [[:Category:Example category]] and produce this template underneath the message box for pages outside the mainhelp namespace.
 
<includeonly>