Template:Get language code: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Created page with "{{#ifeq: {{User:TheWombatGuru/If language suffix}} || en | {{User:TheWombatGuru/If language suffix}} }}")
 
(Categorized as localisation template, added doc)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#ifeq: {{User:TheWombatGuru/If language suffix}} || en | {{User:TheWombatGuru/If language suffix}} }}
{{#ifeq:{{If language suffix}}||en|{{#sub:{{If language suffix}}|1}}}}<noinclude>
{{documentation}}
[[Category:Localisation templates]]
</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