Template:Get language code/doc: Difference between revisions

From Space Exploration
Jump to navigation Jump to search
imported>Ahopefulhobbit
trying to get infoboxes working
 
imported>Ahopefulhobbit
No edit summary
 
Line 1: Line 1:
{{Cite|template}}
Gets the language code from the pagename, no <code>/</code> in front, "en" for pages without a language suffix (English pages). See [[Template:If language suffix]] for having a <code>/</code> in front of the language code, and getting an empty string for English pages.
Gets the language code from the pagename, no <code>/</code> in front, "en" for pages without a language suffix (English pages). See [[Template:If language suffix]] for having a <code>/</code> in front of the language code, and getting an empty string for English pages.

Latest revision as of 16:42, 14 December 2021

This 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.