Difference between revisions of "Modèle:DefLang"

From Medfilm
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--
+
<includeonly>
{{#ifexist:{{{1|}}}/{{int:lang}}
+
{{#ifexist:{{{1|}}}/{{int:lang}}|{{{{{1|}}}/{{int:lang}}}}|{{#ifeq:{{int:lang}}|fr|{{{{{1|}}}}}|{{#ifexist:{{{1|}}}/en|{{{{{1|}}}/en}}|{{{{{1|}}}}}}}}}}}
  |{{{{{1|}}}/{{int:lang}}}}
+
</includeonly>
  |{{#ifeq:{{#titleparts:{{{1|}}}|1|-1}}|fr
+
    |{{#titleparts:{{{1|}}}|1}}
+
    |{{#ifexist:{{#titleparts:{{{1|}}}|1}}/en
+
        |{{#titleparts:{{{1|}}}|1}}/en
+
        |{{#titleparts:{{{1|}}}|1}}
+
      }}
+
  }}
+
}}
+
-->
+
{{#ifexist:{{{1|}}}/{{int:lang}}
+
  |{{{{{1|}}}/{{int:lang}}}}
+
  |{{#switch:"{{#titleparts:{{{1|}}}|1|-1}}"
+
    | ""  = toto
+
    | "fr" = {{#titleparts:{{{1|}}}|1}}
+
    | {{#ifexist:{{#titleparts:{{{1|}}}|1}}/en
+
        |{{#titleparts:{{{1|}}}|1}}/en
+
        |{{#titleparts:{{{1|}}}|1}}
+
      }}
+
  }}
+
}}
+

Latest revision as of 11:45, 27 January 2016