Template:Incorrect namespace/doc: Difference between revisions

Content deleted Content added
Fixing section heading; improving example.
m Restoring previous example.
Line 7:
 
===Example===
<code><nowiki>{{OmboxAmbox</nowiki><br/>
| type = style<br/>
| text = Example text.<br/>
}}<br/>
<nowiki><includeonly>{{BookMain other|[[Category:Example category]]|{{Incorrect namespace|bookmain}}}}</includeonly></nowiki></code>
 
produces:
 
{{OmboxAmbox
| type = style
| text = Example text.
}}
{{Ambox
{{Book other||{{Incorrect namespace|book}}}}
| 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 bookmain namespace pages into [[:Category:Example category]] and produce this template underneath the message box for pages outside the bookmain namespace.
 
<includeonly>