传教士是什么意思| 脂膜炎是什么病| 查电解质是查什么| 什么排球好| 18k是什么意思| 怂包是什么意思| 为什么我的眼中常含泪水| 先考是什么意思| 宗人府是干什么的| 樵夫是什么生肖| 猫来家里有什么预兆| 早搏是什么症状| 吸氧有什么好处| 蝴蝶长什么样| 低血压是什么原因引起的| 尿路感染为什么会尿血| 月经前几天是什么期| 疤痕子宫什么意思| 惊醒是什么意思| 大红袍适合什么季节喝| 流产药叫什么名字| ABA是什么植物激素| 什么叫hp感染| 震颤是什么症状| 尿胆红素高是什么原因| 什么是室性早搏| 氯化钠是什么东西| 康膜的功效是什么| 胃镜是什么| 泌乳素偏高是什么原因| 孕妇喉咙痛吃什么好得最快| 璨字五行属什么| 1977年属什么| 湿疹是什么症状图片| 明眸皓齿是什么意思| 维生素b4又叫什么| 查传染病四项挂什么科| 低血糖是什么原因| 怀孕1个月有什么症状| 吃什么药可以推迟月经| 河北有什么山| 津津有味什么意思| 什么叫亚健康| 突然头晕眼花站不稳是什么原因| 伪骨科是什么意思| 阴虱是什么| 腹泻能吃什么水果| 被褥是什么| 天蝎座男是什么性格| 瘘是什么意思| 凶猛的动物是什么生肖| 木菠萝什么时候成熟| 金不换是什么菜| 处女座幸运颜色是什么| 2月4日什么星座| 压抑是什么意思| 下架是什么意思| 黄瓜和什么不能一起吃| 生菜什么时候种| 羊水穿刺是检查什么| 咬牙齿是什么原因| 金匮肾气丸有什么功效| 早上的太阳叫什么| 终而复始什么意思| 泡茶用什么水好| 太子是什么生肖| 明胶是什么做的| 只出不进什么意思| 什么芒果最好吃| 高考什么时候恢复的| 91年是什么年| 结婚24年是什么婚| 66年出生属什么生肖| pms是什么| 检查前列腺做什么检查| 阴虚火旺吃什么| 人体左边肋骨下疼是什么原因| 为什么容易出汗| 释迦果吃了有什么好处| 过敏性哮喘吃什么药| 老是嗝气是什么原因| 在什么什么后面的英文| 什么时候看到的月亮最大| 30年的婚姻是什么婚| 容易感冒的人缺什么| 湿气重有什么症状| 前列腺钙化是什么病| 避孕套什么牌子的好| 腰上长痘痘是什么原因| 黑枸杞泡水喝有什么作用和功效| 胃窦黄斑瘤是什么病| 鲍鱼长什么样| 画地为牢是什么意思| 山西有什么特产| 百合是什么植物| 价值是什么| ceremony是什么意思| 民不聊生是什么意思| 梦见金项链是什么意思| 工作性质是什么| 丝瓜长什么样| 睡觉天天做梦是什么原因| ck属于什么档次的品牌| 0是什么意思网络语言| 淋巴结肿大用什么药| 五险一金什么时候开始交| 来月经腰疼的厉害是什么原因| 腋下淋巴结肿大挂什么科| 掉发挂什么科| 支那是什么意思| 81是什么意思| 镶牙与种牙有什么区别| 梯是什么意思| 1.16是什么星座| 什么是卫星| 1991是什么年| 7月23日是什么日子| 衔接班是什么意思| 孩子高低肩有什么好办法纠正| 过敏了吃什么药好| 阳痿早泄是什么原因| 脚心出汗是什么原因| pd是什么病| 2018 年是什么年| 吃葵花籽有什么好处和坏处吗| dw是什么| 梦见抢银行是什么意思| 与会是什么意思| 落日余晖什么意思| ecology是什么意思| egg是什么意思| 淋巴是什么东西| 什么的小鸡| 护士一般是什么学历| yonex是什么品牌| 出现幻觉是什么原因引起的| 孕晚期为什么会脚肿| 射手座什么性格| 海字五行属什么| 五月十八什么星座| 月桂酸是什么| 尿频尿急吃什么药最好| 水肿吃什么药消肿最快最有效| 生长因子是什么| 男生生理期是什么表现| 尿频尿急是什么原因| 带教是什么意思| 牙龈流血是什么原因| 漏尿是什么原因造成的| 辛弃疾字什么号什么| 花生属于什么类| 做脑部ct挂什么科| 梦见牙齿掉了是什么意思| 喝水多尿多是什么原因| 什么叫淋巴结转移| 冷暖自知上一句是什么| 风土人情是什么意思| 梦见自己嫁人了预示着什么| 经期是什么意思| 赴汤蹈火的汤是什么意思| 腹泻可以吃什么食物| 祯字五行属什么| 梦到生女儿是什么意思| 美国有什么特产| 直肠息肉有什么症状| 什么是入珠| 印堂发亮预兆着什么| 天公作美什么意思| 乙肝两对半挂什么科| 子宫发炎是什么原因引起的| 血糖高是什么原因引起的| 抗核抗体是检查什么的| hc是胎儿的什么意思| 火车代表什么生肖| 63岁属什么生肖| 肠炎挂什么科| 螳螂代表什么生肖| 风湿性关节炎用什么药| 锻练与锻炼有什么区别| 杨梅有什么功效和作用| 甲炎是什么病| 慢性咽炎用什么药| 达克宁栓治疗什么妇科病| 抵税是什么意思| 鸽子怕什么怎么赶走| 抵抗是什么意思| 梦见野猪是什么预兆| 极是什么意思| 猫尿床是因为什么原因| 12月21日什么星座| 哥哥的孩子叫什么| 做梦搬家是什么意思| 黄体酮是什么意思| gm什么意思| 雅戈尔男装什么档次| 肚子拉稀像水一样是什么情况| 操刀是什么意思| 眼睛肿是什么原因| 拔罐什么时候拔最好| 局灶癌变是什么意思| 本能反应是什么意思| 肺结节吃什么食物散结节最快| 亚麻色是什么颜色| 长期吃避孕药有什么危害| 母亲节一般送什么礼物| 如痴如醉是什么意思| 舌根起泡是什么原因| 女人嘴唇发紫是什么病| 桂林山水下一句是什么| 备注是什么意思| 颈部出汗是什么原因| 西安什么山| 狗咬到什么程度需要打针| 中药什么时间喝效果最好| 遗精频繁是什么原因| 什么叫非甾体抗炎药| 操逼什么意思| 男人为什么喜欢大胸| 漂头发是什么意思| 慢性气管炎吃什么药最有效| 888红包代表什么意思| 吃避孕药对身体有什么影响| 茯苓泡水喝有什么功效| 撕裂是什么意思| 内消瘰疬丸主治什么病| 肾阳虚的表现是什么| 女生胸疼是什么原因| 女人脾肾两虚吃什么好| 专台号是什么意思| 绿矾是什么| 器质性心脏病是什么意思| 相对而行是什么意思| 23数字代表什么意思| 肾亏吃什么好| kms是什么意思| 为什么眼皮一直跳| 背水一战什么意思| 为什么会得前列腺炎| 菠菜是什么季节的菜| 西汉后面是什么朝代| 计生用品是什么| 叶黄素对眼睛有什么功效| 大便羊屎粒是什么原因| 吃什么蔬菜可以降血脂| 宝宝病毒感染吃什么药效果好| 山代表什么动物| 白羊和什么星座最配| 儿童鼻炎挂什么科| 小学生的学籍号是什么| 血脂高吃什么降血脂| 屁多什么原因| 畏手畏脚是什么意思| 眼睛干痒滴什么眼药水| 贝字旁的字和什么有关| 甲状腺回声不均匀什么意思| 爱情鸟是什么鸟| 催乳素是什么意思| 鞭挞是什么意思| 青葱岁月是什么意思| 怀孕建档是什么意思| me too是什么意思| 吃万艾可有什么副作用| 血压高喝什么茶| 身份证穿什么颜色的衣服| 百度Jump to content

2017央企混改试点股投资机会 如何布局央企改革板

Permanently protected template
From Meta, a Wikimedia project coordination wiki
Template documentation

Usage

百度 施小琳指出,新的一年,要紧紧围绕市委中心工作和重点任务,坚持抓调研、抓统筹、抓落实,努力开创统一战线各领域工作新局面,为上海当好全国改革开放排头兵、创新发展先行者凝聚人心、贡献力量。

Returns a value depending on a given language, using reasonable fallbacks if the contents of the switch does not directly map a value for that language.

The given language to test, if it's not specified, is the user interface language of the viewing user.

The language of the mapped value to return when there's no match in the switch for the given language (or one of its fallbacks), is English (en) unless another default language is specified (which will be tried after standard fallbacks but before English).

Parameters

  • lang=language-code (optional) — the switch by default will return a value according to the viewing user, this parameter allows changing this behavior.
  • language-code=“Mapped value in language-code — maps the language to a value.
    Defining this parameter for a language that is used as a reasonable fallback for one or several other languages means that you won't need to define additional parameters to map these other languages, when that value is already accurate for these other languages.
    Commonly used languages that are used as reasonable fallbacks include major languages of the world: English (en), Chinese (zh), French (fr), Spanish (es), Arabic (ar), Russian (ru), and Indonesian (id); and to a lower scale, mostly as a fallback for regional languages: Hindi (hi), German (de), Portuguese (pt), and Dutch (nl).
    But this also includes any national language which may be a reasonable fallback for a minority/regional-only language, unless the later is used across borders, such as Catalan (ca) or Kurdish (ku) which should be defined separately.
    Usually, you don't need to provide a specific value for language variants in a different script, that are handled now by MediaWiki using builtin transliterators. This includes the two major variants of Chinese: simplified zh-hans and traditional zh-hant, the simplified variant being implied in the form used by the simpler recommended code zh); the traditional variant needs to be specified only if the default transliterator does not reliably convert some characters.
  • default=language-code (optional) — allows to specify which language to use when reasonable fallbacks have failed. If its value matches a given item defined in the switch, the value mapped to this item will be returned when no other languages in the switch match; if the default is not specified, or does not match any item in the switch, the value mapped to English (the default language of this wiki) will be returned.
    So the switch does not necessarily have to define an English message, but it should contain at least:
    • language-code=“Mapped value in language-code, if default=language-code is present,
    • or en=“Mapped value in English”, when there's no specified default.
    Specifying another default language (and mapping a value specifically for it) does not prohibit mapping an additional specific value for English, but English will no longer be the last fallback.
    Note that the language-code indicated here may be arbitrary and can be a pseudo-language to specify a different value, even if it displays a message in English (or in any language).

Supported language codes

Language codes do not necessarily have to one of those used in a separate edition of a Wikimedia project (such as Wikipedia or Wiktionary), it could be a language supported only on a multilingual site in a single edition, such as Incubator, Commons, MediaWiki or Meta.

But in all cases, the language codes used must be one of the language codes supported by MediaWiki for its localisation (otherwise they could be ignored in parameters of LangSwitch).

Language codes are normally insensitive to letter case, but this template will not recognize language codes specified using any uppercase letter.

Ideally those languages codes should be those recommended by the BCP 47 standard (essentially based on ISO 639, but with some restrictions, and many additions for supporting variants in different scripts, regions, orthographies, or locale conventions). So don't use the longer 3-letter language codes os ISO 639-3 if there's a 2-letter code from ISO-639-1. And don't use the 3-letter language family codes (from ISO 639-5).

The template also supports (for compatibility and to allow smooth migrations) some legacy codes used in Wikimedia projects, but that are no longer recommended (and may be blocked now for new translations in the Special:Translate page), such as the two major Chinese variants, or the old code for the Taraskeviza orthographic variant of Belarusian.

Examples

Switch according to the language of the viewing user (currently for you, lang=en)
  • '''{{LangSwitch|ar=AR|de=DE|en=EN|es=ES|fr=FR|it=IT|ja=JA|ko=KO|nl=NL|pt=PT|ru=RU|tr=TR|zh=ZH}}''' gives EN
  • '''{{LangSwitch|default=''edit''|en=EN|gd=GD|glk=GLK}}''' gives EN
  • '''{{LangSwitch|default=''edit''|gd=GD|glk=GLK}}''' gives edit
Switch according to the language of the content of the current page (in this page, it is en)
  • '''{{LangSwitch|lang={{CURRENTCONTENTLANGUAGE}}|ar=AR|de=DE|en=EN|es=ES|fr=FR|it=IT|ja=JA|ko=KO|nl=NL|pt=PT|ru=RU|tr=TR|zh=ZH}}''' gives EN
  • '''{{LangSwitch|lang={{CURRENTCONTENTLANGUAGE}}|default=''edit''|en=EN|gd=GD|glk=GLK}}''' gives EN
  • '''{{LangSwitch|lang={{CURRENTCONTENTLANGUAGE}}|default=''edit''|gd=GD|glk=GLK}}''' gives edit
Switch according to the language of a specific language
  • '''{{LangSwitch|lang=gsw|default=[translate this]|it=IT}}''' gives [translate this]
  • '''{{LangSwitch|lang=gsw|default=[translate this]|it=IT|en=EN}}''' gives EN
  • '''{{LangSwitch|lang=gsw|default=[translate this]|it=IT|en=EN|fr=FR}}''' gives EN
  • '''{{LangSwitch|lang=gsw|default=[translate this]|it=IT|en=EN|de=DE}}''' gives DE
  • '''{{LangSwitch|lang=gsw|default=[translate this]|it=IT|en=EN|de=DE|fr=FR}}''' gives DE
  • '''{{LangSwitch|lang=gsw|default=[translate this]|it=IT|en=EN|de=DE|fr=FR|gsw=GSW}}''' gives GSW

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools.

TemplateData for LangSwitch

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Language codelang

The ISO 639 language code.

Default
{{int:lang}}
Stringoptional
Default fallbackdefault

The default fallback result, used when the language is not provided.

Contentsuggested
Englishen

Used when the language is English or if `default` and the language is not provided.

Contentsuggested
吃西瓜有什么坏处 慕名而来是什么意思 参谋长是什么级别 icd是什么意思 为什么叫基围虾
尿蛋白是什么原因 维生素c主治什么 日行一善是什么意思 情非得已是什么生肖 银杏果长什么样
什么姓氏排第一 胆结石吃什么 支气管炎咳嗽吃什么药好得快 荔枝肉是什么菜系 盲从什么意思
半夜容易醒是什么原因 蜂蜜水什么时候喝最好 用什么消肿最快最有效方法 洗假牙用什么洗最好 小麦过敏可以用什么代替面食
大生化检查能查出什么病来hcv9jop7ns4r.cn 为什么北京是首都hcv8jop2ns2r.cn 宫刑是什么意思hcv8jop6ns3r.cn 头部检查挂什么科hcv8jop7ns0r.cn 为什么男人hcv9jop3ns2r.cn
曼妥思是什么糖dajiketang.com 啤酒花是什么hcv8jop1ns5r.cn IQ是什么ff14chat.com 梦见好多肉是什么意思hcv9jop1ns1r.cn 女人人中深代表什么hcv8jop0ns2r.cn
1月27日是什么星座hcv7jop5ns2r.cn 夜间睡觉口干口苦是什么原因hcv8jop7ns1r.cn 流火是什么原因造成的hcv9jop7ns2r.cn 苹可以组什么词jiuxinfghf.com 落花生为什么叫落花生hcv9jop3ns8r.cn
角膜炎是什么症状hcv9jop0ns5r.cn 做肠镜检查需要提前做什么准备fenrenren.com 带状疱疹看什么科hcv7jop9ns4r.cn 干咳吃什么药好hcv8jop6ns0r.cn 梦见和婆婆吵架是什么意思hcv8jop0ns3r.cn
百度