Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Russian translation)
m (Attempt at adding Swedish language)
Line 16: Line 16:
               | pt-br = [[Category:Brazilian Portuguese page]]
               | pt-br = [[Category:Brazilian Portuguese page]]
               | ru = [[Category:Russian page]]
               | ru = [[Category:Russian page]]
              | sv = [[Category:Swedish page]]
               | uk = [[Category:Ukrainian page]]
               | uk = [[Category:Ukrainian page]]
               | zh = [[Category:Chinese page]]
               | zh = [[Category:Chinese page]]
               | #default = [[Category:English page]]
               | #default = [[Category:English page]]
}}}}{{#ifeq: {{#expr: {{#if: {{{1|}}} | 1 | 0 }} + {{#if: {{{cs|}}} | 1 | 0 }} + {{#if: {{{de|}}} | 1 | 0 }} + {{#if: {{{es|}}} | 1 | 0 }} + {{#if: {{{fr|}}} | 1 | 0 }} + {{#if: {{{it|}}} | 1 | 0 }} + {{#if: {{{nl|}}} | 1 | 0 }} + {{#if: {{{pl|}}} | 1 | 0 }} + {{#if: {{{pt-br|}}} | 1 | 0 }} + {{#if: {{{ru|}}} | 1 | 0 }} + {{#if: {{{uk|}}} | 1 | 0 }} + {{#if: {{{zh|}}} | 1 | 0 }} + {{Other test|cs}}+{{Other test|de}}+{{Other test|es}}+{{Other test|fr}}+{{Other test|it}}+{{Other test|nl}}+{{Other test|pl}}+{{Other test|pt-br}}+{{Other test|ru}}+{{Other test|uk}}+{{Other test|zh}}+{{#ifeq: {{No language suffix}} | {{FULLPAGENAME}} | 0 | {{#ifexist: {{No language suffix}} | 1 | 0 }} }}
}}}}{{#ifeq: {{#expr: {{#if: {{{1|}}} | 1 | 0 }} + {{#if: {{{cs|}}} | 1 | 0 }} + {{#if: {{{de|}}} | 1 | 0 }} + {{#if: {{{es|}}} | 1 | 0 }} + {{#if: {{{fr|}}} | 1 | 0 }} + {{#if: {{{it|}}} | 1 | 0 }} + {{#if: {{{nl|}}} | 1 | 0 }} + {{#if: {{{pl|}}} | 1 | 0 }} + {{#if: {{{pt-br|}}} | 1 | 0 }} + {{#if: {{{ru|}}} | 1 | 0 }} + {{#if: {{{sv|}}} | 1 | 0 }} + {{#if: {{{uk|}}} | 1 | 0 }} + {{#if: {{{zh|}}} | 1 | 0 }} + {{Other test|cs}}+{{Other test|de}}+{{Other test|es}}+{{Other test|fr}}+{{Other test|it}}+{{Other test|nl}}+{{Other test|pl}}+{{Other test|pt-br}}+{{Other test|ru}}+{{Other test|sv}}+{{Other test|uk}}+{{Other test|zh}}+{{#ifeq: {{No language suffix}} | {{FULLPAGENAME}} | 0 | {{#ifexist: {{No language suffix}} | 1 | 0 }} }}
}} | 0 | |{{#ifeq: {{{list|}}} | yes | |<div
}} | 0 | |{{#ifeq: {{{list|}}} | yes | |<div
style="background-color: #EFEFEF;
style="background-color: #EFEFEF;
Line 42: Line 43:
               | pt-br = In other languages
               | pt-br = In other languages
               | ru = На других языках
               | ru = На других языках
              | sv = På andra språk
               | uk = Іншими мовами
               | uk = Іншими мовами
               | zh = 其他语言
               | zh = 其他语言
Line 47: Line 49:
           }}: '''</small> <!--
           }}: '''</small> <!--
/* Using manual language adding by inserting the language code in the template's parameters /*
/* Using manual language adding by inserting the language code in the template's parameters /*
-->}}{{#if: {{{1|}}}{{{cs|}}}{{{de|}}}{{{en|}}}{{{es|}}}{{{fr|}}}{{{it|}}}{{{nl|}}}{{{pl|}}}{{{pt-br|}}}{{{ru|}}}{{{uk|}}}{{{zh|}}}
-->}}{{#if: {{{1|}}}{{{cs|}}}{{{de|}}}{{{en|}}}{{{es|}}}{{{fr|}}}{{{it|}}}{{{nl|}}}{{{pl|}}}{{{pt-br|}}}{{{ru|}}}{{{sv|}}}{{{uk|}}}{{{zh|}}}
     | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
     | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
       --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
       --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
Line 70: Line 72:
       --> {{#if:{{{pt-br|}}}|{{Flag|pt-br|link={{{pt-br}}}}}}}<!--
       --> {{#if:{{{pt-br|}}}|{{Flag|pt-br|link={{{pt-br}}}}}}}<!--
       --> {{#if:{{{ru|}}}|{{Flag|ru|link={{{ru}}}}}}}<!--
       --> {{#if:{{{ru|}}}|{{Flag|ru|link={{{ru}}}}}}}<!--
      --> {{#if:{{{sv|}}}|{{Flag|sv|link={{{sv}}}}}}}<!--
       --> {{#if:{{{uk|}}}|{{Flag|uk|link={{{uk}}}}}}}<!--
       --> {{#if:{{{uk|}}}|{{Flag|uk|link={{{uk}}}}}}}<!--
       --> {{#if:{{{zh|}}}|{{Flag|zh|link={{{zh}}}}}}}<!--
       --> {{#if:{{{zh|}}}|{{Flag|zh|link={{{zh}}}}}}}<!--
Line 77: Line 80:
   -->{{Language exist|de|{{{list}}}}} <!--
   -->{{Language exist|de|{{{list}}}}} <!--
   -->{{#switch: {{Language suffix}}
   -->{{#switch: {{Language suffix}}
           | cs| de | es | fr | it | nl | pl | pt-br | ru | uk | zh = {{#ifexist: {{#switch: {{Language suffix}}
           | cs| de | es | fr | it | nl | pl | pt-br | ru | sv | uk | zh = {{#ifexist: {{#switch: {{Language suffix}}
                                                                             | cs| de | es | fr | it | nl | pl | pt-br | ru | uk | zh = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                                                                             | cs| de | es | fr | it | nl | pl | pt-br | ru | sv | uk | zh = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                                                                             | #default = {{FULLPAGENAME}}
                                                                             | #default = {{FULLPAGENAME}}
                                                                         }} | {{#ifeq: {{{list|}}} | yes | {{Flag|en|text=yes}} | {{Flag|en}} }}
                                                                         }} | {{#ifeq: {{{list|}}} | yes | {{Flag|en|text=yes}} | {{Flag|en}} }}
Line 89: Line 92:
   -->{{Language exist|pt-br|{{{list}}}}} <!--
   -->{{Language exist|pt-br|{{{list}}}}} <!--
   -->{{Language exist|ru|{{{list}}}}} <!--
   -->{{Language exist|ru|{{{list}}}}} <!--
  -->{{Language exist|sv|{{{list}}}}} <!--
   -->{{Language exist|uk|{{{list}}}}} <!--
   -->{{Language exist|uk|{{{list}}}}} <!--
   -->{{Language exist|zh|{{{list}}}}}}}{{#ifeq: {{{list|}}} | yes | |</div>}}
   -->{{Language exist|zh|{{{list}}}}}}}{{#ifeq: {{{list|}}} | yes | |</div>}}

Revision as of 22:40, 28 December 2015


[View] [Edit] [Page history]

Documentation

This template has a Sandbox for testing new features at Template:Languages/Sandbox.

This template will display a bar with links to international versions of the same page.
List of all templates