Sjabloon:Namespace detect: verschil tussen versies

Uit Radiopedia
k (1 versie)
Geen bewerkingssamenvatting
 
Regel 2: Regel 2:
   {{lc:              <!--Lower case the result-->
   {{lc:              <!--Lower case the result-->
     <!--If no or empty "demospace" parameter then detect namespace-->
     <!--If no or empty "demospace" parameter then detect namespace-->
     {{#if:{{{demospace|}}}
     {{#if:{{{page|}}}  
    | {{{demospace}}}
     | <!--Detect the namespace in the "page" parameter-->
     | {{#if:{{{page|}}}
      {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}
      | <!--Detect the namespace in the "page" parameter-->
      | talk
        {{#ifeq:{{NAMESPACE:{{{page}}} }}|{{TALKSPACE:{{{page}}} }}
      | {{SUBJECTSPACE:{{{page}}} }}  
        | talk
      }}
        | {{SUBJECTSPACE:{{{page}}} }}  
    | <!--No "demospace" or "page" parameters, so detect actual namespace-->
        }}
      {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
      | <!--No "demospace" or "page" parameters, so detect actual namespace-->
      | talk
        {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}
      | {{SUBJECTSPACE}}  
        | talk
        | {{SUBJECTSPACE}}
        }}
       }}
       }}
     }}
     }}

Huidige versie van 7 apr 2013 om 19:36


[aanmaken] Documentation icon Sjabloondocumentatie