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)
 
(98 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 | es | pt-br | it | cs = In other languages
{{Language exist|da}}
              | ru = Другими языками
{{Language exist|de}}
              | uk = Іншими мовами
{{Language exist|en}}
              | nl = In andere talen
{{Language exist|es}}
              | #default = In other languages
{{Language exist|fr}}
          }}:'''</small> <!--
{{Language exist|hu}}
-->{{#if: {{{1|}}}
{{Language exist|it}}
    | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
{{Language exist|ja}}
      --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
{{Language exist|ko}}
      --> {{#if:{{{3|}}}|{{Flag|{{{3}}}}}}}<!--
{{Language exist|ms}}
      --> {{#if:{{{4|}}}|{{Flag|{{{4}}}}}}}<!--
{{Language exist|nl}}
      --> {{#if:{{{5|}}}|{{Flag|{{{5}}}}}}}<!--
{{Language exist|pl}}
      --> {{#if:{{{6|}}}|{{Flag|{{{6}}}}}}}<!--
{{Language exist|pt-br}}
      --> {{#if:{{{7|}}}|{{Flag|{{{7}}}}}}}<!--
{{Language exist|pt-pt}}
      --> {{#if:{{{8|}}}|{{Flag|{{{8}}}}}}}<!--
{{Language exist|ru}}
      --> {{#if:{{{9|}}}|{{Flag|{{{9}}}}}}}<!--
{{Language exist|sv}}
      --> {{#if:{{{10|}}}|{{Flag|{{{10}}}}}}}<!--
{{Language exist|tr}}
      -->
{{Language exist|uk}}
    | {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
{{Language exist|vi}}
          | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
{{Language exist|zh}}
                                                                            | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
{{Language exist|zh-tw}}
                                                                            | #default = {{FULLPAGENAME}}
</span>
                                                                        }} | {{Flag|en}}
</div></indicator><noinclude>
      }}}} <!--
{{documentation}}
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | fr | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
[[Category:Localisation templates]] [[Category:Main]]
                      | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/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