Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
/* Translating the message displayed next to the flag /*
/* Translating the message displayed next to the flag /*
--><small>'''{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
--><small>'''{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
              | de = In anderen Sprachen
              | fr = Dans d'autres langues
               | nl = In andere talen
               | nl = In andere talen
               | ru = Другими языками
               | ru = Другими языками
Line 18: Line 20:
               | #default = In other languages
               | #default = In other languages
           }}:'''</small> <!--
           }}:'''</small> <!--
/* Using manual language adding by inserting the language code in the template's paramters /*
/* 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|}}}
     | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
     | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
Line 40: Line 42:
       --> {{#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 no language code is inserted into the template's paramters, 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 }}
     | {{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | cs | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}

Revision as of 19:56, 29 September 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