A Project of the Center for Advanced Study in the Visual Arts, National Gallery of Art
History of Early American Landscape Design

Difference between revisions of "Template:Namespace detect"

[http://www.nga.gov/content/ngaweb/research/casva/research-projects.html A Project of the National Gallery of Art, Center for Advanced Study in the Visual Arts ]
m (1 revision)
 
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:
+
{{#invoke:Namespace detect|main}}<noinclude>
  {{lc:              <!--Lower case the result-->
 
    <!--If no or empty "demospace" parameter then detect namespace-->
 
    {{#if:{{{demospace|}}}
 
    | {{{demospace}}}
 
    | {{#if:{{{page|}}}
 
      | <!--Detect the namespace in the "page" parameter-->
 
        {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}
 
        | talk
 
        | {{SUBJECTSPACE:{{{page}}} }}
 
        }}
 
      | <!--No "demospace" or "page" parameters, so detect actual namespace-->
 
        {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
 
        | talk
 
        | {{SUBJECTSPACE}}
 
        }}
 
      }}
 
    }}
 
  }}
 
<!-- Only one of the lines below will be executed -->
 
<!-- Respecting empty parameters on purpose -->
 
| main        <!--"demospace=main" or {{SUBJECTSPACE}}={{ns:0}}=""-->
 
|          = {{{main| {{{other|}}} }}}
 
| talk      = {{{talk| {{{other|}}} }}}
 
| user      = {{{user| {{{other|}}} }}}
 
| wikipedia = {{{wikipedia| {{{other|}}} }}}
 
| file
 
| image    = {{{file| {{{image| {{{other|}}} }}} }}}
 
| mediawiki = {{{mediawiki| {{{other|}}} }}}
 
| template  = {{{template| {{{other|}}} }}}
 
| help      = {{{help| {{{other|}}} }}}
 
| category  = {{{category| {{{other|}}} }}}
 
| portal    = {{{portal| {{{other|}}} }}}
 
| book      = {{{book| {{{other|}}} }}}
 
| other
 
| #default  = {{{other|}}}  <!--"demospace=other" or a new namespace-->
 
 
 
}}<!--End switch--><noinclude>
 
  
 
{{documentation}}
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
</noinclude>
 
</noinclude>

Latest revision as of 20:28, September 10, 2013

{{#invoke:Namespace detect|main}}

{{#invoke: fallback|autotranslate

|base    = Documentation
|lang    = ⧼Lang⧽ 
|1       = Template:Namespace detect/doc
|2       =  
|content = 

}}

Retrieved from "https://heald.nga.gov/mediawiki/index.php?title=Template:Namespace_detect&oldid=2652"

History of Early American Landscape Design contributors, "Template:Namespace detect," History of Early American Landscape Design, , https://heald.nga.gov/mediawiki/index.php?title=Template:Namespace_detect&oldid=2652 (accessed December 5, 2022).

A Project of the Center for Advanced Study in the Visual Arts

National Gallery of Art, Washington