In other languages:

Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(added uk+ru inscriptions)
(Displaytitle now works in Tutorial and main namespace instead of just the main 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;
Add page to that language's category if the page actually exists, and only if the page is not a category itself
border-color: #ACACAC;
-->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!--
border-width: 1px;
Automatically show flags of other language's versions of this page
border-style: solid;
--><indicator name="languages-container">
border-bottom-width: medium;
<div class="languages-container">
position: absolute;
<span class="languages-message">
right: 0;
{{Translation|In other languages:}}
top: -2.4em;
</span>
">
<span class="languages-flags">
<!--
{{Language exist|cs}}
 
{{Language exist|da}}
--><small>'''{{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
{{Language exist|de}}
              | fr | de | es | pt-br | it | cs = In other languages
{{Language exist|en}}
              |ru = Другими языками
{{Language exist|es}}
              |uk = Іншими мовами
{{Language exist|fr}}
              | nl = In andere talen
{{Language exist|hu}}
              | #default = In other languages
{{Language exist|it}}
          }}:'''</small> <!--
{{Language exist|ja}}
-->{{#if: {{{1|}}}
{{Language exist|ko}}
    | {{#if:{{{1|}}}|{{Flag|{{{1}}}}}}}<!--
{{Language exist|ms}}
      --> {{#if:{{{2|}}}|{{Flag|{{{2}}}}}}}<!--
{{Language exist|nl}}
      --> {{#if:{{{3|}}}|{{Flag|{{{3}}}}}}}<!--
{{Language exist|pl}}
      --> {{#if:{{{4|}}}|{{Flag|{{{4}}}}}}}<!--
{{Language exist|pt-br}}
      --> {{#if:{{{5|}}}|{{Flag|{{{5}}}}}}}<!--
{{Language exist|pt-pt}}
      --> {{#if:{{{6|}}}|{{Flag|{{{6}}}}}}}<!--
{{Language exist|ru}}
      --> {{#if:{{{7|}}}|{{Flag|{{{7}}}}}}}<!--
{{Language exist|sv}}
      --> {{#if:{{{8|}}}|{{Flag|{{{8}}}}}}}<!--
{{Language exist|tr}}
      --> {{#if:{{{9|}}}|{{Flag|{{{9}}}}}}}<!--
{{Language exist|uk}}
      --> {{#if:{{{10|}}}|{{Flag|{{{10}}}}}}}<!--
{{Language exist|vi}}
      -->
{{Language exist|zh}}
    | {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
</span>
          | fr | de | ru | es | pt-br | it | cs | uk | nl = {{#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]]
                                                                        }} | {{Flag|en}}
      }}}} <!--
  -->{{#ifeq: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }} | fr | |{{#ifexist: {{#switch: {{lc: {{#titleparts: {{FULLPAGENAME}} | | -1 }} }}
                      | 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 14:03, 2 December 2020

[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