Template:Get language code: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Categorized as localisation template, added doc)
 
Line 1: Line 1:
{{#ifeq:{{If language suffix}}||en|{{#sub:{{If language suffix}}|1}}}}<noinclude>
{{#ifeq:{{If language suffix}}||en|{{#sub:{{If language suffix}}|1}}}}<noinclude>
{{documentation}}
[[Category:Localisation templates]]
</noinclude>
</noinclude>

Latest revision as of 15:48, 24 March 2020

en

[View] [Edit] [Page history]

Documentation
Gets the language code from the pagename, no / in front, "en" for pages without a language suffix (English pages). See Template:If language suffix for having a / in front of the language code, and getting an empty string for English pages.
List of all templates