Template:Get language code: Difference between revisions
Jump to navigation
Jump to search
imported>Ahopefulhobbit mNo edit summary |
imported>Ahopefulhobbit mNo edit summary |
||
| 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}} | {{documentation}} | ||
[[Category:Localisation templates]]<!--This template is adapted from the Factorio Wiki [https://wiki.factorio.com/Template:Get_language_code]--> | [[Category:Localisation templates]]<!--This template is adapted from the Factorio Wiki [https://wiki.factorio.com/Template:Get_language_code] and is licensed under CC BY-NC-SA 3.0.--> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:50, 14 December 2021
en
[View] [Edit] [Page history]
DocumentationThis template is adapted from the Factorio Wiki and is licensed under CC BY-NC-SA 3.0.
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