Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
<!--
<!--
/* Translating the message displayed next to the flag /*
/* Translating the message displayed next to the flag /*
--><small>'''{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
--><small>'''{{#switch: {{SUBPAGENAME}}
               | de = In anderen Sprachen
               | de = In anderen Sprachen
               | es = En otros idiomas
               | es = En otros idiomas
Line 45: Line 45:
/* If no language code is inserted into the template's parameters, search for pages with the same title in other languages /*
/* If no language code is inserted into the template's parameters, search for pages with the same title in other languages /*
       -->
       -->
     | {{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | cs | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
     | {{Language exist|cs}} <!--
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
   -->{{Language exist|de}} <!--
                      | #default = {{FULLPAGENAME}}
   -->{{#switch: {{SUBPAGENAME}}
                  }}/cs | {{Flag|cs}}
           | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#ifexist: {{#switch: {{SUBPAGENAME}}
      }}}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | de | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/de | {{Flag|de}}
      }}}} <!--
   -->{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
           | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                                                                             | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                                                                             | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                                                                             | #default = {{FULLPAGENAME}}
                                                                             | #default = {{FULLPAGENAME}}
                                                                         }} | {{Flag|en}}
                                                                         }} | {{Flag|en}}
       }}}} <!--
       }}}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | es | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
   -->{{Language exist|es}} <!--
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
   -->{{Language exist|fr}} <!--
                      | #default = {{FULLPAGENAME}}
   -->{{Language exist|it}} <!--
                  }}/es | {{Flag|es}}
   -->{{Language exist|nl}} <!--
      }}}} <!--
   -->{{Language exist|pt-br}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | fr | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
   -->{{Language exist|ru}} <!--
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
   -->{{Language exist|uk}} <!--
                      | #default = {{FULLPAGENAME}}
  -->}}</div></includeonly><noinclude>
                  }}/fr | {{Flag|fr}}
      }}}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | it | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/it | {{Flag|it}}
      }}}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | nl | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/nl | {{Flag|nl}}
      }}}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | pt-br | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/pt-br | {{Flag|pt-br}}
      }}}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | ru | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/ru | {{Flag|ru}}
      }}}} <!--
   -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | uk | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/uk | {{Flag|uk}}
      }}}}}}</div></includeonly><noinclude>


{{documentation}}
{{documentation}}

Revision as of 14:53, 1 October 2014


[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