Jump to content

Template:Namespace detect/doc: Difference between revisions

From SeptemWiki
No edit summary
No edit summary
 
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:}}.


  <nowiki>{{Namespace detect|
  <nowiki>{{Namespace detect
|main=Show this in main pages
|main=Show this in main pages
|template=Use this in the template space
|template=Use this in the template space
|help=And in the help space use this
|help=And in the help space use this
|other=Anywhere else, this}}</nowiki>
|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}}