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 06:44, 22 February 2011 (Created page with '{{Documentation subpage}} This template is for use in other templates in conjunction with namespace detection. It adds pages to [[:Category:Pages with incorrectly ...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.