Template:Languages/Sandbox: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(category)
(prettify)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!-- Translating the title of the page using the DISPLAYTITLE magic word -->
<includeonly><!-- Translating the title of the page using the DISPLAYTITLE magic word
{{#ifeq: {{NAMESPACE}}||{{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!--  
-->{{#switch: {{NAMESPACE}} | Tutorial | = {{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!--
Add page to that language's category  
For archived pages, translate the title without the namespace part
-->[[Category:{{Get language name}} page]]<!--
-->{{#ifeq: {{NAMESPACE}} | Archive | {{DISPLAYTITLE: {{Translation| {{No language suffix/No namespace}} }} }} }}<!--
Add page to that language's category if the page actually exists, and only if the page is not a category itself
-->{{#ifexist: {{FULLPAGENAME}} | {{#ifeq: {{NAMESPACE}}|Category||[[Category:{{Get language name}} page]]}}}}<!--
  Automatically show flags of other language's versions of this page  
  Automatically show flags of other language's versions of this page  
--><indicator name="languages-container">
--><indicator name="languages-container">
Line 11: Line 13:
<span class="languages-flags">
<span class="languages-flags">
{{Language exist|cs}}
{{Language exist|cs}}
{{Language exist|da}}
{{Language exist|de}}
{{Language exist|de}}
{{Language exist|en}}
{{Language exist|en}}
{{Language exist|es}}
{{Language exist|es}}
{{Language exist|fr}}
{{Language exist|fr}}
{{Language exist|hu}}
{{Language exist|it}}
{{Language exist|it}}
{{Language exist|ja}}
{{Language exist|ja}}
{{Language exist|ko}}
{{Language exist|ko}}
{{Language exist|ms}}
{{Language exist|nl}}
{{Language exist|nl}}
{{Language exist|pl}}
{{Language exist|pl}}
{{Language exist|pt-br}}
{{Language exist|pt-br}}
{{Language exist|pt-pt}}
{{Language exist|ru}}
{{Language exist|ru}}
{{Language exist|sv}}
{{Language exist|sv}}
{{Language exist|tr}}
{{Language exist|tr}}
{{Language exist|uk}}
{{Language exist|uk}}
{{Language exist|vi}}
{{Language exist|zh}}
{{Language exist|zh}}
{{Language exist|zh-tw}}
</span>
</span>
</div></indicator><noinclude>
</div></indicator></includeonly><noinclude>
 
{{Documentation}}
{{documentation}}
 
[[Category:Localisation templates]]
[[Category:Localisation templates]]
</noinclude>
</noinclude>

Latest revision as of 09:50, 26 April 2024