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)
 
(90 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>
/* Translating the message displayed next to the flag /*
<span class="languages-flags">
--><small>'''{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
{{Language exist|cs}}
              | nl = In andere talen
{{Language exist|da}}
              | ru = Другими языками
{{Language exist|de}}
              | uk = Іншими мовами
{{Language exist|en}}
              | #default = In other languages
{{Language exist|es}}
          }}:'''</small> <!--
{{Language exist|fr}}
/* Using manual language adding by inserting the language code in the template's paramters /*
{{Language exist|hu}}
-->{{#if: {{{1}}}
{{Language exist|it}}
    | {{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}}
/* If no language code is inserted into the template's paramters, search for pages with the same title in other languages /*
{{Language exist|uk}}
      -->
{{Language exist|vi}}
    | {{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | cs | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
{{Language exist|zh}}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
{{Language exist|zh-tw}}
                      | #default = {{FULLPAGENAME}}
</span>
                  }}/cs | {{Flag|cs}}
</div></indicator><noinclude>
      }}}} <!--
{{documentation}}
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | de | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
[[Category:Localisation templates]] [[Category:Main]]
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/de | {{Flag|de}}
      }}}} <!--
  -->{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
          | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                                                                            | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                                                                            | #default = {{FULLPAGENAME}}
                                                                        }} | {{Flag|en}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | es | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/es | {{Flag|es}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | fr | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/fr | {{Flag|fr}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | it | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/it | {{Flag|it}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | nl | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/nl | {{Flag|nl}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | pt-br | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/pt-br | {{Flag|pt-br}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | ru | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/ru | {{Flag|ru}}
      }}}} <!--
  -->{{#ifeq: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | uk | |{{#ifexist: {{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }}
                      | cs| de | es | fr | it | nl | pt-br | ru | uk = {{#titleparts: {{FULLPAGENAME}}| -1 }}
                      | #default = {{FULLPAGENAME}}
                  }}/uk | {{Flag|uk}}
      }}}}}}</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