胃食管反流吃什么中成药| 爱之深恨之切是什么意思| 猪展是什么| 和田玉对身体有什么好处| 节肢动物用什么呼吸| 慕名而来是什么意思| 儿童肠胃炎吃什么药| 月经为什么来了一点又不来了| 喝柠檬茶有什么好处| 舌苔白腻是什么原因| 什么是中医| 梅毒是什么意思| 车厘子是什么| 什么病才吃阿昔洛韦片| 肠易激综合症吃什么药| mf是什么意思| 和风对什么| 人的牙齿为什么不能再生| 胸口有痣代表什么意思| 乳头疼是什么原因| 蒲公英可以和什么一起泡水喝| 真丝和桑蚕丝有什么区别| 做梦笑醒了有什么征兆| 血管钙化是什么意思| 男士175是什么码| 血小板分布宽度偏低是什么原因| 饿死是什么感觉| 萌宠是什么意思| 装模作样是什么生肖| 肤专家抑菌软膏主要治什么| 亚甲减是什么意思| 世界第八大奇迹是什么| 眼睛散光是什么意思| 印度以什么人种为主| 蜂蜜和柠檬一起喝有什么作用| 肺痈是什么意思| 七月份生日是什么星座| 狗狗犬窝咳吃什么药| 彩礼是什么意思| 高密度灶是什么意思| 为什么会打哈欠| 拔冗是什么意思| 怀孕脸上长痘痘是什么原因| 痔疮疼痛用什么药| bj是什么| 1970年属狗是什么命| 细胞角蛋白19片段是什么意思| 快车和专车有什么区别| 蟋蟀吃什么食物| 莺是什么鸟| 跑得什么| 玄学什么意思| 膝盖疼吃什么药| 各类病原体dna测定是检查什么| 为什么老是掉头发特别厉害| 抗磷脂综合征是什么病| 午餐肉是什么肉做的| a2是什么材质| 洁尔阴洗液有什么作用| 118代表什么意思| 指甲油用什么能洗掉| 挖坑是什么意思| 包含是什么意思| 人情是什么意思| 四月初一是什么星座| au是什么金属| 虫离念什么| 吃什么能排毒体内毒素| 车厘子和樱桃有什么区别| 眼睛干涩用什么药水| 跳爵士舞穿什么衣服| 回乡偶书的偶书是什么意思| 血小板偏高是什么原因| 什么叫潮汐车道| 脚气用什么泡脚| 嘌呤是什么东西| 产能过剩是什么意思| 三千年前是什么朝代| 梦见自己给别人钱是什么意思| 垂盆草长什么样| 男属蛇和什么属相最配| x光是什么| 月经不来吃什么药| 害喜是什么意思| 老虎属于什么科动物| lalabobo是什么牌子| dsa检查是什么| 子宫癌是什么症状| 骨密度t值是什么意思| 负离子有什么作用| 深棕色是什么颜色| 梦到钓鱼是什么征兆| 别无他求是什么意思| 放屁臭是什么原因| 低烧是什么病的前兆| 黄历中的入宅是什么意思| 失眠有什么办法解决| 光杆司令是什么意思| 孟子叫什么名字| 脸上涂什么可以美白| 刚出生的宝宝要注意什么| 孕囊是什么| 女生什么时候绝经| 委屈什么意思| 心魔是什么意思| 艺人是什么意思| gst是什么| 排卵期出血是什么原因| 乔峰和洪七公什么关系| 尿常规阳性是什么意思| 脸上长斑是什么原因引起的| 蜻蜓吃什么食物| 王菲什么星座| 早晨五点是什么时辰| 免疫力是什么| 辅弼是什么意思| 螨虫怕什么| 白羊座什么性格| 订婚需要准备什么| 解酒喝什么| 七月二十八什么星座| 什么是有氧运动什么是无氧运动| 温婉是什么意思| 小孩腿抽筋是什么原因引起的| 伤口用什么消毒最好| 转氨酶异常有什么症状| 黑曜石是什么材质| 什么情况要打破伤风| 为什么明明很困就是睡不着| point是什么意思| 眼睛红肿是什么原因引起的| 雷替斯是什么药| 主理人什么意思| 大脑精神紊乱什么病| 神经鞘瘤挂什么科| 门特是什么意思| 晋字五行属什么| 男人补锌有什么好处| 坐月子可以喝什么饮料| 布鲁斯是什么意思| 怒发冲冠是什么意思| 广西有什么水果| 五月天主唱叫什么名字| 土耳其说什么语言| 胸腰椎退行性变是什么意思| 痰湿体质吃什么食物好| 什么天揽月| 梅长苏是什么电视剧| 前列腺增大是什么意思| 80属什么| remember是什么意思| 生肉是什么意思| 检查肺结节挂什么科| 嗓子有点疼吃什么药| 甲骨文是写在什么上面的| 小孩小腿疼是什么原因引起的| 手绘是什么意思| 举足轻重什么意思| 洋芋是什么东西| 985是什么学校| 河南有什么市| 一岁宝宝发烧吃什么药| 梦见棺材是什么意思| 家里飞蛾多是什么原因| 男性hpv检查挂什么科| head是什么牌子| 慰安妇是什么| 南下是什么意思| 期货平仓是什么意思| 肾结石要注意些什么| 白色念珠菌是什么意思| 甘油三酯指的是什么| 迎风流泪是什么原因| 金星原名叫什么| emba是什么意思| 失落感是什么意思| 查高血压挂什么科| 诗经是什么朝代的| 天时地利人和是什么意思| 囊性灶什么意思严重吗| 耳垂上有痣代表什么| 什么时间量血压最准| 灭活疫苗是什么意思| 帕金森病是什么症状| 遥不可及什么意思| 什么动物倒着走| 正能量是什么意思| 包皮炎用什么药最有效| 前列腺炎忌口什么食物| 息肉病变什么意思| 舌苔发黑是什么原因| 侵犯是什么意思| 披什么散什么| 到是什么意思| 为什么会反胃想吐| 梦见饺子是什么意思| 莲子吃了有什么好处| 国帑是什么意思| 做脑ct对人体有什么危害| 为什么一动就出汗| 9月25日什么星座| 阿迪达斯是什么牌子| 男人出虚汗是什么原因引起的| 挂绿荔枝为什么那么贵| oink是什么意思| 营业执照什么时候年审| 尿酸高去医院挂什么科| 马首是瞻是什么生肖| 什么驱蚊效果最好| 局座是什么梗| 小肠换气什么症状| 嘴上起泡是什么原因| 僧侣是什么意思| 谷氨酰基转移酶低是什么原因| 肾结石挂什么科室| 2005年属什么生肖| 小孩子头晕是什么原因| 验孕棒什么时候测| 梦到女儿丢了什么预兆| 出库是什么意思| 宫颈炎吃什么药效果最好| 海虫草是什么| 十二生肖代表什么花| 左侧卵巢显示不清是什么意思| 淋巴细胞高是什么意思| h代表什么意思| 希望孩子成为什么样的人| 爱奇艺积分有什么用| 东道主是什么意思| 新疆人是什么人种| 富硒对人体有什么好处| 车牌颜色代表什么| 湿疹用什么药膏最有效| 何妨是什么意思| 女人左手断掌什么命运| bso是什么意思| 氯超标是因为什么原因| 给猫咪取什么名字好听| 血钾是什么意思| 大姨妈来了喝什么好| 琼林是什么意思| 来年是什么意思| 申时五行属什么| 呀啦嗦是什么意思| 拉大便有血是什么原因| 无创什么时候做| 1月17号什么星座| 4.24是什么星座| 丹毒不能吃什么| 滞气是什么意思| 泡打粉是什么东西| ao是什么意思| 转念是什么意思| 什么是妈妈臀| 做爱为什么那么舒服| 串串房是什么意思| 排卵日和排卵期有什么区别| 三手烟是什么意思| 什么原因引起痛风| mr是什么意思| 柏拉图爱情是什么意思| 常字五行属什么| 痕迹是什么意思| 急性肠胃炎吃什么水果| 百度

陕西“两会时间”,代表委员们为网信工作建言献策

百度 ThetraderowbetweenChinaandtheUShasbeenahottopicattheChinaDevelopmentForuminBeijingwhereexecutivesandscholars,includingthosefromtheUS,warnedoftherisksofatradewar."Thetradewarmustbeavoidedatallcost,likenuclearwar,"LarrySummers,asalreadybeginningtogetresultsand"manyothercountriesarenownegotiatingfairtradedealswithus."ButwhenChinasreactstotheSection301investigationwithretaliatorymeasuresagainsttensofbillionsofdollarsinUSgoods,theUSwonhtbyChina,theworld,,schemetocontainChinasrise,utChina,,,itswishfulthierests,theywon,theUSsabilitytocontroltheTaiwanStraitsan,,butwillforceitintoatransformationthatfacilitatesreleasingChina,Chinawon,,tdeterChina.


Protected This template has been protected from editing to prevent vandalism.
Please discuss changes on the talk page or request unprotection.
Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:LangSwitch/doc.

Provides a method to present a string of text selected from an array of many language translations in the language set in the user's preferences or the most appropriate fallback language.

The template automatically sets the following categories: Category:Internationalization templates using LangSwitch

Usage

{{LangSwitch
 |en =
 |xx =
 |default =
}}

Warning: This template SHOULD NOT be used out of software interface purpose. For example it SHOULD NOT be used to manage multilingual description of the subject of a media or a category or whatsoever.

Template parameters

<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateData ? Commons-specific information

Provides a method to present a string of text selected from an array of many language translations in the language set in the user's preferences or the most appropriate fallback language.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Default fallbackdefault

Default text to return in case none of the languages specified with the “xx=text” options match the language selected by the “lang=” option (or the language selected in user's preferences, if that option is not specified); by default, the English version (if provided in the “en=text” parameter) will be shown, otherwise a error message will be returned.

Default
{{{en|}}} (English version)
Stringsuggested
Englishen

Text in the English language. Unless the “default=” option is used, this text will also be returned by default if none of the languages provided match the language selected in the optional “lang=” option (or the language selected in the user's preferences, if that last option is not specified). If you do not want to show any text when the user's language is English, then use “en=~”.

Stringrequired
Language codelang

Language code (only needs to be provided if the language displayed is to be fixed and independent of the user’s preferences). Note that specifying “{{#if: {{{lang|}}} | {{{lang|}}} | {{Int:Lang}} }}” in this value is usually not necessary, unless one wants to override the default target language.

Default
Value of “{{Int:Lang}}” (the preferred language of the visitor viewing the page).
Stringoptional
No category?nocat

“nocat=1” will overwrite the default behavior which tracks (in the “LangSwitch template without default version” category page) the incorrect uses of this template, where none of the two options “en=text in English” or “default=text by default” is specified with a non-empty value.

Stringoptional
Translationxx

Text translated in language with code “xx” (the parameter name “xx” can be any supported language code, conforming to the BCP 47 or ISO 639-1 standards). Use “xx=~” if you do not want any text (not even the default text) in this specific language. You may also map multiple languages to the same text by using “{{LangSwitch?|xx/yy/zz=text?}}”, which is equivalent to “{{LangSwitch?|xx=text?|yy=text?|zz=text?}}”. You can specify as many such parameters as needed for each translated language.

Stringoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: all users

Relies on:
Module:LangSwitch

See also

  • {{Autotranslate}} for template internationalization (i18n) mechanism for templates that use named parameters
  • {{Fallback}} and {{SuperFallback}}, based on {{GetFallback}} and {{GetFallback2}})
  • {{Multilingual link}}
  • Category:Internationalization templates using LangSwitch
  • {{Multilingual description}}, not using LangSwitch or any fallbacks, but generating vertical lists of translated texts or arbitrary length (without any English or default language requirement) in separate paragraphs; the rendered list is collapsible by a language selection menu at top of the rendered page (it is collapsed by default to show only the user's preferred or selected language, if it matches exactly).
  • {{Translation table}}, not using LangSwitch or any fallbacks, but generating horizontal lists of translations (without any English or default language requirement); the rendered list is statically displaying all the provided languages, and this template is intended for translating just one term or short expression (otherwise the previous template should be used).

Localization

This template is not intended to be localized.

Help for choosing the right template for your use case:
I18n templates: {{Multilingual description|lang=
|de,en,default=Deutsch/​English
|fr=fran?ais
|...
}}
{{de|Deutsch}}
{{en|English}}
{{fr|fran?ais}}
...
{{LangSwitch|lang=
|de,en,default=Deutsch/​English
|fr=fran?ais
|...
}}
{{Autotranslate}} {{tnt}} Language-aware transclusion
Recommended use at Categories, galleries File description pages (deprecated, can be safely replaced by {{Multilingual description}}) Small templates, whenever the previous options are not suitable (removes the visual indication of the language before each translated text) Data tables with translated cells or larger templates, when used on pages that do not have language subpages (e.g. not having Main page/en, Main page/de) and where the language displayed will be automatically determined by the language set in user preferences Data tables with translated cells or larger templates, when used on pages that do have language subpages; most of the time these will be pages prepared with the Translate Extension Data tables with translated cells or larger templates, when used on pages that do have language subpages; the transcluded page needs to be prepared with the Translate Extension, the transcluding page needs to be either prepared with the Translate Extension, or have the page language set by a translation administrator
Requires JavaScript enabled for folding Yes No
Folding can be disabled by user Yes No
Folding is done server-side No Yes
Folding when at least n languages are provided 1 (all translations are shown without folding if the preferred language selected by the user has no matching translation) 4 1
Detection of duplicate, incorrect, or unsupported language codes Yes No Yes Duplicate language codes are impossible by design. Incorrect or unsupported codes are never displayed, but not reported. The Translate extension's interface (if it's used on the translation subpages) doesn't let the user create translations with invalid codes, but other methods (e.g. entering the translation's URL directly) allow it without any warning.
Allows the same translation to be used for several languages Yes No Yes
Supports language fallbacks No Yes No
Collation order of languages (when not folded) Consistent order by native language name, languages grouped by script:
  • LTR scripts: Latin, Latin or Cyrillic, Cyrillic, Greek, other simple LTR alphabets (Armenian, Georgian, etc.), abugidas (North Indian, South Indian, other South-East Asian, etc.), syllabaries (European, American, African, Asian), Korean alphabets (basic Jamos, Hangul including some sinograms), Japanese syllabaries (including some sinograms), sinograms (including some syllabaries)
  • RTL scripts: Hebrew, Arabic, other RTL abjads (Divehi, etc.), RTL syllabaries (N'ko)
As provided by the user in the wikitext (any inconsistent order may be difficult to lookup visually) N/A
Search indexing issues No (all translations are included on the same page, however search results may be less relevant with many languages mixed) Yes (may not index all languages depending on search engines, unless there's a list of links for visiting other languages) Partially (where used; language subpages of templates are indexed) No (translated pages should include a <languages/> navigation bar for visiting other languages)
Page size issues Yes (may exhaust size or time limits in the wiki parser if many languages are included; larger pages to download for all visitors; slower navigation for visitors with slow Internet access; may be costly for visitors with limited data plans) No (only the content for the selected language or a suitable fallback language is present in the generated page)
Contains expensive parser functions No Yes, checks for several translations along the fallback chain until finds a suitable Yes, 2–4 checks per call No

Examples

Without a default option

Here are a few examples showing template behavior for three languages: English, Italian and Corsican (which defaults to Italian if Corsican text is not available):

Test Code lang=en lang=it lang=co
No en; default {{LangSwitch|it=Italian|default=default}} default Italian Italian
No en; no default {{LangSwitch|it=Italian|co=Corsu}} LangSwitch Error: no default[1] LangSwitch Error: no default[1] LangSwitch Error: no default[1]
en; default {{LangSwitch|en=English|co=Corsu|default=default}} English default Corsu
en; no default {{LangSwitch|en=English|co=Corsu}} English English Corsu
en; skip default {{LangSwitch|en=English|co=Corsu|default=~}} English Corsu
en; empty default {{LangSwitch|en=English|co=Corsu|default=}} English English Corsu
Skip en; default {{LangSwitch|en=~|it=Italian|default=default}} Italian Italian
Skip en; no default {{LangSwitch|en=~|it=Italian}} Italian Italian
Empty en; no default {{LangSwitch|en=|it=Italian}} LangSwitch Error: no default[1] Italian LangSwitch Error: no default[1]
en; default; skip it {{LangSwitch|en=English|it=~|co=Corsu|default=default}} English Corsu
en; default; empty it {{LangSwitch|en=English|it=|co=Corsu|default=default}} English default Corsu
en; no default; skip it {{LangSwitch|en=English|it=~|co=Corsu}} English Corsu
Forced "lang=co" {{LangSwitch|en=English|co=Corsu|default=default|lang=co}} Corsu Corsu Corsu

Default option

The default option is intended for providing more language independent option. For example:

{{LangSwitch
|de={{Wd|Warschau}}
|en={{W|Warsaw}}
|fr={{Wf|Varsovie}}
|ja={{W日|ワルシャワ}}
|pl={{WP|Warszawa}}
|ru={{Wr|Варшава}}
|default=[[d:Q270]]
}}

provides a link to Wikipedia articles in case one of the languages provided matches user's language but will link to Commons gallery page (Warsaw) if any other language is used. The expression {{W|Q270||d}} is equivalent to the shorter [[d:Q270]] (it just does not show the “d:”).

Combination of multiple languages in the same option

{{LangSwitch |de=Grün |es/it/pt=Verde |fr=Vert |en=Green |lang={{{lang|{{int:lang}}}}} }}” gives “Green” for the language with code en.

Note that several language codes (separated by /) are combined in the same parameter name, when these languages are mapped to the same output text (this helps simplifying usages).

However this combination still does not work correctly for the language code en if there’s no parameter default= or en= specified separately (when this occurs, this template still returns a usage error message[1]).

Returning empty texts

  • red{{LangSwitch |en=~ |default=&#32;({{I18n/red}}) }}”,
  • bleu{{LangSwitch |fr=~ |default=&#32;({{I18n/blue}}) }}”, and
  • orange{{LangSwitch |en/fr=~ |default=&#32;({{I18n/orange}}) }}

are respectively and conditionally appending parenthesized translations of

  • the standard English term “red” in (when the current user language is not standard English, or simple English, or any language where standard English is a predefined fallback),
  • the standard French term “bleu” (when the current user language is not standard French, or Cajun French, or any language where standard French is a predefined fallback), and
  • the standard English or French term “orange” (when the current user language is not standard French or English, or any language where standard French or English is a predefined fallback):
red bleu (blue) orange (blue)


Notes

  1. a b c d e f would add Category:LangSwitch template without default version


11月22是什么星座 泥石流是什么 观音成道日是什么意思 烧头七有什么讲究 吃什么补白细胞最快
蒲公英有什么功效和作用 不是什么 精索静脉曲张吃什么药 市法院院长是什么级别 男人经常熬夜炖什么汤
炖牛肉放什么调料 睡不着觉去医院挂什么科 胃寒是什么原因引起的 坦诚相待下一句是什么 口腔溃疡是缺什么维生素
妈妈a型爸爸b型孩子是什么血型 中药不能和什么一起吃 假菌丝是什么意思 宝宝便秘吃什么好 养阴生津是什么意思
为什么会咳嗽hcv8jop6ns8r.cn 通字五行属什么hcv9jop4ns5r.cn 慕字五行属什么hcv8jop7ns0r.cn 天花板是什么意思hcv9jop5ns3r.cn 巨蟹男和什么星座最配hcv9jop6ns6r.cn
冬虫虫念什么helloaicloud.com 做梦梦见考试是什么意思hanqikai.com hct是什么hcv8jop0ns5r.cn 铁面无私是什么生肖hcv8jop6ns0r.cn 恶露是什么东西hcv9jop5ns4r.cn
abo溶血症是什么意思hcv7jop7ns1r.cn 美国什么时候建国的cl108k.com 勾践属什么生肖hcv9jop5ns7r.cn img什么意思xinmaowt.com 临兵斗者皆阵列在前什么意思hcv8jop9ns3r.cn
后腰出汗多是什么原因hcv7jop9ns3r.cn 舌息心念什么hcv9jop4ns8r.cn 子宫内膜异位症是什么意思hcv8jop5ns2r.cn 眼睛干涩疲劳用什么眼药水hcv8jop9ns6r.cn 泌乳素过高女性会出现什么症状inbungee.com
百度