Template:Namespace: Difference between revisions

From Agentpedia, the Microsoft Agent encyclopedia
No edit summary
m SonyMvie moved page Template:Namespace detect to Template:Namespace over redirect
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch:
<includeonly>{{#switch:{{NAMESPACE:{{{1|{{FULLPAGENAME}}}}}}}
  {{lc:             
| {{ns:0}}=article
   
| {{ns:2}}=user page
    {{#if:{{{demospace|}}}
| {{ns:4}}=project page
    | {{{demospace}}}
| {{ns:6}}=file
    | {{#if:{{{page|}}}
| {{ns:8}}=system message
      |
| {{ns:10}}=template
        {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}
| {{ns:12}}=help page
        | {{lc:{{NAMESPACE:{{{page}}}}}}}
| {{ns:14}}=category
        | {{SUBJECTSPACE:{{{page}}} }}  
| {{ns:828}}=module
        }}
| {{TALKSPACE}}=talk page
      |  
| #default=page}}</includeonly>
        {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
<noinclude>
        | {{lc:{{NAMESPACE}}}}
        | {{SUBJECTSPACE}}
        }}
      }}
    }}
  }}
| main       
|                        = {{{main| {{{other|}}} }}}
| talk                    = {{{talk| {{{other|}}} }}}
| user                    = {{{user| {{{other|}}} }}}
| user talk                = {{{user talk| {{{other|}}} }}}
| agentpedia    = {{{Agentpedia| {{{other|}}} }}}
| agentpedia talk = {{{Agentpedia talk| {{{other|}}} }}}
| file
| image                  = {{{file| {{{image| {{{other|}}} }}} }}}
| file talk
| image talk              = {{{file talk| {{{image| {{{other|}}} }}} }}}
| mediawiki              = {{{mediawiki| {{{other|}}} }}}
| mediawiki talk          = {{{mediawiki talk| {{{other|}}} }}}
| template                = {{{template| {{{other|}}} }}}
| template talk            = {{{template talk| {{{other|}}} }}}
| help                    = {{{help| {{{other|}}} }}}
| help talk                = {{{help talk| {{{other|}}} }}}
| category                = {{{category| {{{other|}}} }}}
| category talk            = {{{category talk| {{{other|}}} }}}
| project                = {{{project| {{{other|}}} }}}
| other
| #default               = {{{other|}}


}}
 
[[Category:Function templates]]
</noinclude>

Latest revision as of 15:13, 28 October 2024