Editing Template:CURRENTCONTENTLANGUAGE/doc Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.Anti-spam check. Do not fill this in!{{Documentation subpage}} <!-- Categories and interwikis go at the bottom of this page. --> == Usage == This template returns the "content language" of the current page; more precisely it checks if the current title ends with a language code, and if it is the case it returns this language code, else {{CONTENTLANGUAGE}} (the default content language; on this wiki: "{{CONTENTLANGUAGE}}" for {{#language:{{CONTENTLANGUAGE}}|en}}). == Examples == * on "Bar/foo", this template returns "{{CONTENTLANGUAGE}}"; * on "Bar/foo/hu", this template returns "hu". (Note: there could be false positive: e.g. on "Foo/bar" it returns "bar" because "bar" is the language code for Bavarian; "foo" is not a language code; very small (2 or 3 letters) last words can be a problem as seen here.) This template takes no argument, and acts as a magic word. If such a magic word is created in MediaWiki (see [[bugzilla:57603]]), this template could be deleted. <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories and interwikis go here. --> [[Category:Internationalization templates]] }}</includeonly> Summary: Please note that all contributions to Roovet Data may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Roovet Data:Copyrights for details). Do not submit copyrighted work without permission! Cancel Editing help (opens in new window) Pages included on this page: Template:Documentation subpage (edit) Template:Ombox (edit)