In other languages:

Template:Languages: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(only add to category on pages that exist)
m (categories no longer get put into language categories)
Line 1: Line 1:
<!-- Translating the title of the page using the DISPLAYTITLE magic word -->
<!-- Translating the title of the page using the DISPLAYTITLE magic word -->
{{#ifeq: {{NAMESPACE}}||{{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!--  
{{#ifeq: {{NAMESPACE}}||{{DISPLAYTITLE: {{Translation| {{#titleparts: {{FULLPAGENAME}} | -1 }} }} }} }}<!--  
Add page to that language's category if the page actually exists
Add page to that language's category if the page actually exists, and only if the page is not a category itself
-->{{#ifexist: {{FULLPAGENAME}} | [[Category:{{Get language name}} page]]}}<!--
-->{{#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 28: Line 28:
</span>
</span>
</div></indicator><noinclude>
</div></indicator><noinclude>
{{documentation}}
{{documentation}}


[[Category:Localisation templates]] [[Category:Main]]
[[Category:Localisation templates]] [[Category:Main]]
</noinclude>
</noinclude>

Revision as of 14:10, 17 August 2017

[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