Template:Incorrect namespace/doc

This is an old revision of this page, as edited by Mclay1 (talk | contribs) at 03:34, 24 February 2011 (Example: Updating.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This template is for use in other templates in conjunction with namespace detection. It adds pages to Category:Pages with incorrectly transcluded templates.

Parameters

The parameter inserts text in the message to specify the namespace the template in question should use.

Example

{{Ambox
| type = style
| text = Example text.
}}
<includeonly>{{Main other|[[Category:Example category]]|{{Incorrect namespace|main}}}}</includeonly>

produces:

In the above example, transcluding the article message box "Template:Example" will categorise main namespace pages into "Category:Example category" and produce this template underneath the message box for pages outside the main namespace.