Jump to content

Template:Incorrect namespace/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mclay1 (talk | contribs) at 04:31, 23 February 2011 (Undid revision 415406903 by Paine Ellsworth (talk) See talk page (also removed link that does not exist in the real template so should not exist in the example)). 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 will categorise main namespace pages into Category:Example category and produce this template underneath the message box for pages outside the main namespace.