Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:
               | ru = [[Category:Russian page]]Другими языками
               | ru = [[Category:Russian page]]Другими языками
               | uk = [[Category:Ukrainian page]]Іншими мовами
               | uk = [[Category:Ukrainian page]]Іншими мовами
              | zh = [[Category:Chinese page]]In other languages
               | #default = [[Category:English page]]In other languages
               | #default = [[Category:English page]]In other languages
           }}: '''</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|}}}{{{pt-br|}}}{{{ru|}}}{{{uk|}}}
-->}}{{#if: {{{1|}}}{{{cs|}}}{{{de|}}}{{{en|}}}{{{es|}}}{{{fr|}}}{{{it|}}}{{{nl|}}}{{{pt-br|}}}{{{ru|}}}{{{uk|}}}{{{zh|}}}
     | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
     | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
       --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
       --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
Line 36: Line 37:
       --> {{#if:{{{9|}}}|{{Flag|{{{9}}}}}}}<!--
       --> {{#if:{{{9|}}}|{{Flag|{{{9}}}}}}}<!--
       --> {{#if:{{{10|}}}|{{Flag|{{{10}}}}}}}<!--
       --> {{#if:{{{10|}}}|{{Flag|{{{10}}}}}}}<!--
      --> {{#if:{{{11|}}}|{{Flag|{{{11}}}}}}}<!--
       --> {{#if:{{{cs|}}}|{{Flag|cs|link={{{cs}}}}}}}<!--
       --> {{#if:{{{cs|}}}|{{Flag|cs|link={{{cs}}}}}}}<!--
       --> {{#if:{{{de|}}}|{{Flag|de|link={{{de}}}}}}}<!--
       --> {{#if:{{{de|}}}|{{Flag|de|link={{{de}}}}}}}<!--
Line 46: Line 48:
       --> {{#if:{{{ru|}}}|{{Flag|ru|link={{{ru}}}}}}}<!--
       --> {{#if:{{{ru|}}}|{{Flag|ru|link={{{ru}}}}}}}<!--
       --> {{#if:{{{uk|}}}|{{Flag|uk|link={{{uk}}}}}}}<!--
       --> {{#if:{{{uk|}}}|{{Flag|uk|link={{{uk}}}}}}}<!--
      --> {{#if:{{{zh|}}}|{{Flag|zh|link={{{zh}}}}}}}<!--
/* 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 /*
       -->
       -->
Line 51: Line 54:
   -->{{Language exist|de|{{{list}}}}} <!--
   -->{{Language exist|de|{{{list}}}}} <!--
   -->{{#switch: {{Language suffix}}
   -->{{#switch: {{Language suffix}}
           | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#ifexist: {{#switch: {{Language suffix}}
           | cs| de | es | fr | it | nl | pt-br | ru | uk | zh = {{#ifexist: {{#switch: {{Language suffix}}
                                                                             | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                                                                             | cs| de | es | fr | it | nl | pt-br | ru | 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 62: Line 65:
   -->{{Language exist|pt-br|{{{list}}}}} <!--
   -->{{Language exist|pt-br|{{{list}}}}} <!--
   -->{{Language exist|ru|{{{list}}}}} <!--
   -->{{Language exist|ru|{{{list}}}}} <!--
   -->{{Language exist|uk|{{{list}}}}}}}{{#ifeq: {{{list|}}} | yes | |</div>}}</includeonly><noinclude>
   -->{{Language exist|uk|{{{list}}}}}}} <!--
  -->{{Language exist|zh|{{{list}}}}}}}{{#ifeq: {{{list|}}} | yes | |</div>}}</includeonly><noinclude>


{{documentation}}
{{documentation}}

Revision as of 11:07, 12 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