Jump to content

Template:Namespace detect/doc: Difference between revisions

From SeptemWiki
Created page with "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 {{c|Main:}} namespace page..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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 {{c|Main:}} namespace page, another when viewing it directly in the {{c|Template:}} namespace, and still another in {{c|Help:}}.
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 {{c|Main:}} namespace page, another when viewing it directly in the {{c|Template:}} namespace, and still another in {{c|Help:}}.


{{tx|Namespace detect|
<nowiki>{{Namespace detect
|main=Show this in main pages<br>
|main=Show this in main pages
|template=Use this in the template space<br>
|template=Use this in the template space
|help=And in the help space use this<br>
|help=And in the help space use this
|other=Anywhere else, this}}
|other=Anywhere else, this}}</nowiki>

Latest revision as of 20:03, 9 April 2016

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}}