Template:Get language code: Difference between revisions
Jump to navigation
Jump to search
Gets the language code from the pagename, no
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/
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