In other languages:

Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(If the extension isn't lowercase it's wrong so that should not be tolerated by this template)
(Displaytitle translation without namespace in Archive namespace)
 
(97 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: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
{{Language exist|cs}}
              | ru = Другими языками
{{Language exist|da}}
              | uk = Іншими мовами
{{Language exist|de}}
              | nl = In andere talen
{{Language exist|en}}
              | #default = In other languages
{{Language exist|es}}
          }}:'''</small> <!--
{{Language exist|fr}}
-->{{#if: {{{1|}}}
{{Language exist|hu}}
    | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
{{Language exist|it}}
      --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
{{Language exist|ja}}
      --> {{#if:{{{3|}}}|{{Flag|{{{3}}}}}}}<!--
{{Language exist|ko}}
      --> {{#if:{{{4|}}}|{{Flag|{{{4}}}}}}}<!--
{{Language exist|ms}}
      --> {{#if:{{{5|}}}|{{Flag|{{{5}}}}}}}<!--
{{Language exist|nl}}
      --> {{#if:{{{6|}}}|{{Flag|{{{6}}}}}}}<!--
{{Language exist|pl}}
      --> {{#if:{{{7|}}}|{{Flag|{{{7}}}}}}}<!--
{{Language exist|pt-br}}
      --> {{#if:{{{8|}}}|{{Flag|{{{8}}}}}}}<!--
{{Language exist|pt-pt}}
      --> {{#if:{{{9|}}}|{{Flag|{{{9}}}}}}}<!--
{{Language exist|ru}}
      --> {{#if:{{{10|}}}|{{Flag|{{{10}}}}}}}<!--
{{Language exist|sv}}
      -->
{{Language exist|tr}}
    | {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
{{Language exist|uk}}
          | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
{{Language exist|vi}}
                                                                            | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
{{Language exist|zh}}
                                                                            | #default = {{FULLPAGENAME}}
{{Language exist|zh-tw}}
                                                                        }} | {{Flag|en}}
</span>
      }}}} <!--
</div></indicator><noinclude>
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | fr | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
{{documentation}}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
[[Category:Localisation templates]] [[Category:Main]]
                      | #default = {{FULLPAGENAME}}
                  }}/fr | {{Flag|fr}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | de | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/de | {{Flag|de}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | ru | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/ru | {{Flag|ru}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | es | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/es | {{Flag|es}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | pt-br | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/pt-br | {{Flag|pt-br}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | it | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/it | {{Flag|it}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | cs | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/cs | {{Flag|cs}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | uk | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/uk | {{Flag|uk}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | nl | |{{#ifexist: {{#switch: {{#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