Template:Get language code/doc: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
m word  | 
				 category  | 
				||
| Line 1: | Line 1: | ||
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.  | ||
<noinclude>[[Category:Template documentation]]</noinclude>  | |||
Latest revision as of 12:11, 27 August 2023
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.