Template:Get language code/doc

From Official Factorio Wiki
< Template:Get language code
Revision as of 12:11, 27 August 2023 by Ickputzdirwech (talk | contribs) (category)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.