Template:Help/Lang code From Online Manual

Revision as of 15:28, 7 September 2010 by Groundup (talk | contribs) (Created page with "{{Help/If en|en|{{SUBPAGENAME}} }}<!-- {{Help/If en|{{{1|en}}}|{{SUBPAGENAME}} }} --><!-- Should have {{{1}}} to specify the default language code? If so, then should rather rena...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Lang code

PD {{{text}}}|Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. PD
This template is to be transcluded in public domain help pages.

Return the language code of current page.


When transcluded in,

  • "Page" yield "en"
  • "Page/sub" yield "en"
  • "Page/en" yield "en"
  • "Page/fr" yield "fr"
  • "Page/ja" yield "ja"
  • "Page/th" yield "th"
  • title: Help:Deleting a page --> en
  • title: Help:Deleting a page/th --> th
  • title: Help:Deleting a page/subpage --> en
  • title: Help:Deleting a page/subpage/th --> th