Template:Category other: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Created page with "{{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Template}} | template | other }} }} | template = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch-->"
 
m 1 revision imported: may be useful
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#switch:
{{#switch:{{#if:{{{demospace|}}}|{{lc:{{{demospace|}}}}}|{{#ifeq:{{NAMESPACE}}|{{ns:Category}}|category}}<!--If no demospace then detect namespace-->}}|category={{{1|}}}|#default={{{2|}}}}}
  <!--If no or empty "demospace" parameter then detect namespace-->
  {{#if:{{{demospace|}}}
  | {{lc: {{{demospace}}} }}   <!--Use lower case "demospace"-->
  | {{#ifeq:{{NAMESPACE}}|{{ns:Template}}
    | template
    | other
    }}
  }}
| template = {{{1|}}}
| other
| #default = {{{2|}}}
}}<!--End switch-->

Latest revision as of 19:05, 6 October 2024