Template:Namespace detect
Appearance
This template is used to produce different text depending on what namespace the rendered page is in. You may want a template to render one way in a Main:
namespace page, another when viewing it directly in the Template:
namespace, and still another in Help:
.
{{Namespace detect |main=Show this in main pages |template=Use this in the template space |help=And in the help space use this |other=Anywhere else, this}}