In other languages:

Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Displaytitle translation without namespace in Archive namespace)
 
(100 intermediate revisions by 10 users not shown)
Line 1: Line 1:
<includeonly><div
<!-- Translating the title of the page using the DISPLAYTITLE magic word
style="background-color: #EFEFEF;
-->{{#switch: {{NAMESPACE}} | Tutorial | = {{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!--
padding: 5px;
For archived pages, translate the title without the namespace part
border-color: #ACACAC;
-->{{#ifeq: {{NAMESPACE}} | Archive | {{DISPLAYTITLE: {{Translation| {{No language suffix/No namespace}} }} }} }}<!--
border-width: 1px;
Add page to that language's category if the page actually exists, and only if the page is not a category itself
border-style: solid;
-->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!--
border-bottom-width: medium;
Automatically show flags of other language's versions of this page
position: absolute;
--><indicator name="languages-container">
right: 0;
<div class="languages-container">
top: -2.4em;
<span class="languages-message">
">
{{Translation|In other languages:}}
<!--
</span>
 
<span class="languages-flags">
--><small>'''{{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
{{Language exist|cs}}
              | fr | de | ru | es | pt-br | it | cs | uk = In other languages
{{Language exist|da}}
              | nl = In andere talen
{{Language exist|de}}
              | #default = In other languages
{{Language exist|en}}
          }}:'''</small> <!--
{{Language exist|es}}
-->{{#if: {{{1|}}}
{{Language exist|fr}}
    | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
{{Language exist|hu}}
      --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
{{Language exist|it}}
      --> {{#if:{{{3|}}}|{{Flag|{{{3}}}}}}}<!--
{{Language exist|ja}}
      --> {{#if:{{{4|}}}|{{Flag|{{{4}}}}}}}<!--
{{Language exist|ko}}
      --> {{#if:{{{5|}}}|{{Flag|{{{5}}}}}}}<!--
{{Language exist|ms}}
      --> {{#if:{{{6|}}}|{{Flag|{{{6}}}}}}}<!--
{{Language exist|nl}}
      --> {{#if:{{{7|}}}|{{Flag|{{{7}}}}}}}<!--
{{Language exist|pl}}
      --> {{#if:{{{8|}}}|{{Flag|{{{8}}}}}}}<!--
{{Language exist|pt-br}}
      --> {{#if:{{{9|}}}|{{Flag|{{{9}}}}}}}<!--
{{Language exist|pt-pt}}
      --> {{#if:{{{10|}}}|{{Flag|{{{10}}}}}}}<!--
{{Language exist|ru}}
      -->
{{Language exist|sv}}
    | {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
{{Language exist|tr}}
          | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
{{Language exist|uk}}
                                                                            | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
{{Language exist|vi}}
                                                                            | #default = {{FULLPAGENAME}}
{{Language exist|zh}}
                                                                        }} | {{Flag|en}}
{{Language exist|zh-tw}}
      }}}} <!--
</span>
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | fr | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
</div></indicator><noinclude>
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
{{documentation}}
                      | #default = {{FULLPAGENAME}}
[[Category:Localisation templates]] [[Category:Main]]
                  }}/fr | {{Flag|fr}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | de | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/de | {{Flag|de}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | ru | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/ru | {{Flag|ru}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | es | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/es | {{Flag|es}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | pt-br | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/pt-br | {{Flag|pt-br}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | it | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/it | {{Flag|it}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | cs | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/cs | {{Flag|cs}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | uk | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/uk | {{Flag|uk}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | nl | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/nl | {{Flag|nl}}
      }}}}}}</div></includeonly><noinclude>
 
{{doc}}
 
[[Category:Localisation templates]]
</noinclude>
</noinclude>

Latest revision as of 09:54, 26 April 2024

[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