Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Uselang: Difference between revisions

Template page
mNo edit summary
m the legacy test for actual int:lang value fails: it returns the resource name between "⧼ ⧽" (turtle brackets) when there's no language code in "Mediawiki:Lang/*", no longer between "< >" (lower than/greater than signs), since long in Mediawiki; we still need support to direct access in the MediaWiki syntax to the user language from the PHP Mediawiki API (still no magic keyword or special case in the "Int:" handler to avoid loading "Mediawiki/Lang/*" from the dB)
Line 1: Line 1:
{{#ifeq:{{int:lang}}|&lt;lang&gt;|en|{{int:lang}}}}<noinclude>{{doc}}</noinclude>
{{#ifeq:{{Int:Lang}}|⧼Lang⧽|en|{{Int:Lang}}}}<noinclude>{{Doc}}</noinclude>

Revision as of 18:45, 25 April 2021

en

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Uselang/doc.


Returns the code of the user language, as specified in the corresponding page mediawiki:lang/xx, otherwise "en" (default).

Template:Tdoc


Cookies help us deliver our services. By using our services, you agree to our use of cookies.