Template:Language exists

From Valve Developer Community
Jump to: navigation, search
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(台灣)‎ (zh-tw)
Icon-translate.png Available doc translations
View
Page history

Efficient way to test if a language code exists on Valve Developer community.

Usage

{{language exists|code}} will show "yes" if the language exists or nothing if it doesn't.

Examples

{{language exists|en}} → yes

{{language exists|asdf}}


{{#if:{{language exists|en}}|true|false}} → true

{{#if:{{language exists|asdf}}|true|false}} → false


{{yesno|{{language exists|en}}|yes=true|no=false}} → true

{{yesno|{{language exists|asdf}}|yes=true|no=false}} → false