Template:Pagetype: Difference between revisions

From Vigyanwiki
Template>MSGJ
(for non-articles in mainspace)
Template>MSGJ
(namespace takes precedence)
Line 1: Line 1:
{{#switch:{{lc:{{{class}}}}}
{{#switch:{{SUBJECTSPACE}}
|fa
|{{ns:0}}          = {{#switch:{{lc:{{{class}}}}}
|a
  |fa
|ga
  |a
|b
  |ga
|c
  |b
|start
  |c
|stub               = article
  |start
|fl
  |stub
|list                = list
  |#default            = article
|image|file          = file
  |fl
|category|cat|categ  = category
  |list                = list
|disambig|disamb|dab = disambiguation page
  |image|file          = file
|portal              = portal page
  |category|cat|categ  = category
|template|temp|templ = template
  |disambig|disamb|dab = disambiguation page
|project            = project page
  |portal              = portal page
|redirect|redir      = redirect
  |template|temp|templ = template
|#default={{#switch:{{SUBJECTSPACE}}
  |project            = project page
   |{{ns:0}}          = {{#ifeq:{{lc:{{{class|}}}}}|na|page|article}}
  |redirect|redir      = redirect
  |{{ns:2}}          = user page
   |na                 = page
  |{{ns:Project}}    = project page
  |{{ns:File}}        = file
  |{{ns:MediaWiki}}  = interface page
  |{{ns:Template}}    = template
  |{{ns:Help}}        = help page
  |{{ns:Category}}    = category
  |{{ns:Portal}}      = portal page
  |#default          = page
  }}
  }}
|{{ns:2}}          = user page
|{{ns:Project}}    = project page
|{{ns:File}}        = file
|{{ns:MediaWiki}}  = interface page
|{{ns:Template}}    = template
|{{ns:Help}}        = help page
|{{ns:Category}}    = category
|{{ns:Portal}}      = portal page
|#default          = page
}}
}}

Revision as of 14:51, 11 June 2009

template