Template:If localized From Online Manual

Revision as of 09:40, 27 June 2013 by Illori (talk | contribs) (Created page with "{{If en|{{{2|}}}|{{{1}}} }}<noinclude> This template will check if the current page is a localize (non english-base) page, by cheking if the sub page is a valid language code or...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

{{{1}}}

This template will check if the current page is a localize (non english-base) page, by cheking if the sub page is a valid language code or not.

Example

{{if localize|x|y}}

will return "x" if the page is a localize page, else return "y". When transcluded in,

  • "Page" yield "y"
  • "Page name/sub" yield "y"
  • "Page name/en" yield "x"
  • "Page name/fr" yield "x"
  • "Page name/ja" yield "x"
  • "Page name/th" yield "x"


Advertisement: