Template:Checkmns

This is an old revision of this page, as edited by sims>A morris at 14:10, 21 July 2009 (Created page with '<includeonly>{{#ifeq:{{NAMESPACE}}||{{{category}}}|<!-- Not in Main Namespace -->}}</includeonly><noinclude>{{Documentation}}</noinclude>'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (View · Edit · History · Purge)
Description
Checks if the page is in the main namespace and outputs what was passed if true. Useful for templates that can be used on articles in all or any namespace.
Syntax
{{Checkmns|<code to include if the article is in the main namespace>}} or {{Checkmns|<code to include if the article is in the main namespace>|<code to include if it is not in the main namespace>}}
Example

{{Checkmns|<category>}} or <includeonly>{{Checkmns|<category>}}</includeonly> if included in templates.

See also

Visit Template:Checkmns/doc to edit this text! (How does this work?) (Refresh this text - why?)