Difference between revisions of "Template:Uselang"

From Deep Blue Robotics Wiki
Jump to: navigation, search
(attempt to retrieve the language code used by SwitchLang)
 
(previous attempt does not work)
Line 1: Line 1:
{{#switch:                        {{{            {{#if: {{{lang|}}} | {{{lang|}}} | {{int:Lang}} }}
+
{{#if: {{{lang|}}} | {{{lang|}}} | {{#ifeq: {{int:Lang}} | <Lang> | default | {{int:Lang}} }} }}<noinclude>
                                  |}}}
+
|~        = empty
+
|        = {{#switch:           {{{ {{GetFallback
+
                                      |1      = {{#if: {{{lang|}}} | {{{lang|}}} | {{int:Lang}} }}
+
                                      |default = default
+
                                      }}
+
                                  |}}}
+
            |~      = empty
+
            |        = {{#switch: {{{ {{GetFallback2
+
                                      |1      = {{#if: {{{lang|}}} | {{{lang|}}} | {{int:Lang}} }}
+
                                      |default = default
+
                                      }}
+
                                  |}}}
+
                      |        = {{#if: {{{default|}}} | default | en }}
+
                      |~        = empty
+
                      |#default =    {{GetFallback2
+
                                      |1      = {{#if: {{{lang|}}} | {{{lang|}}} | {{int:Lang}} }}
+
                                      |default = default
+
                                      }}
+
                      }}
+
            |#default=                {{GetFallback
+
                                      |1      = {{#if: {{{lang|}}} | {{{lang|}}} | {{int:Lang}} }}
+
                                      |default = default
+
                                      }}
+
            }}
+
|#default =                                      {{#if: {{{lang|}}} | {{{lang|}}} | {{int:Lang}} }}
+
}}<noinclude>
+
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 17:55, 27 October 2013

{{#if: | | {{#ifeq: <Lang> | <Lang> | default | <Lang> }} }} {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}