ecc是检查什么的| 本钱是什么意思| 血压低吃什么食物| 龙井茶什么季节喝最好| 眼皮重是什么原因| hsv是什么| 女生排卵期在什么时候| 仙姑是什么意思| 太史慈姓什么| 大张伟原名叫什么| 乳房疼挂什么科室| 心理是什么意思| 阑尾炎有什么症状表现| 心率低吃什么药最好| 办理无犯罪记录证明需要什么材料| 严重脱发是什么病先兆| 怕冷的人是什么原因| 疝气看病挂什么科| 尼姑庵是什么意思| dha什么时候吃最好| 小孩发烧挂什么科| 眉毛变白是什么原因| 有什么赚钱的软件| 散瞳后需要注意什么| 胸部正侧位片检查什么| 蓝灰色配什么颜色好看| 84年属鼠是什么命| 梦见和邻居吵架什么预兆| 乳腺彩超能查出什么| 白蛋白是什么意思| 口腔医学技术是干什么的| 早上屁多是什么原因造成的| 杨紫属什么生肖| 风信子的花语是什么| 生肖羊生什么生肖最好| 紧急避孕药有什么危害| 失眠吃什么水果| 优思悦是什么药| 张三李四王五赵六后面是什么| 冰粉籽是什么植物| 搞基是什么| 做梦拉屎是什么意思| 放生鱼有什么好处| 少年什么意思| smeg什么品牌| 苹果6和苹果6S有什么区别| 图片px是什么意思| 四个雷念什么| 网球ad是什么意思| 乙肝两对半和乙肝五项有什么区别| 妇科千金片和三金片有什么区别| 什么食物黄体酮含量高| 什么样的月亮| 什么是胆红素| 湿气重吃什么能去湿气| 荷叶是什么的什么| 什么是居间费| 结婚前一天晚上的宴会叫什么| 婷婷玉立什么意思| 静脉采血检查什么| 飞克手表什么档次| 琥珀是什么颜色| 2006属什么生肖| 吃韭菜有什么好处| 看腰挂什么科| 吃什么长高| 藠头是什么菜| 色散是什么意思| 唇周发黑是什么原因| 牛头人是什么意思| ds什么意思| 黄芪是什么| 右手臂痛是什么预兆| 肝囊肿有什么危害| 爱钻牛角尖是什么意思| 人体七大营养素是什么| 土鸡炖什么好吃| 恶寒什么意思| 枣什么时候成熟| egfr是什么| 咳嗽一直不好是什么原因怎么治| 胆固醇偏高是什么原因| 女生剪什么短发好看| 7月15日是什么节| 肾阴虚有什么症状表现| 五十坐地能吸土是什么意思| 香菜什么时候种| 甲状腺斑块是什么意思| 党内的最高处分是什么| 10月出生的是什么星座| 茉莉花茶适合什么人喝| 炸了是什么意思| 女人打呼噜是什么原因| 屈膝是什么意思| 缓解是什么意思| 多巴胺是什么| 甲状腺应该多吃什么| 男生适合养什么小型犬| 什么是尿潴留| 草酸对人体有什么危害| 36年属什么生肖| 精神分裂症吃什么药| 跌打损伤挂什么科| 不惑之年是什么意思| 什么不迫| 12月17日什么星座| 浅表性胃炎吃什么中药| 布病什么症状| 拜阿司匹灵是什么药| 肌酐测定低是什么意思| 梦到别人给钱是什么意思| 厚颜无耻是什么生肖| 鸡吃什么食物| 还人是什么意思| 右手手指头麻木是什么病的前兆| 大云是什么烟| 蛋白粉适合什么人群吃| 上火了吃什么食物降火| 淋巴滤泡增生用什么药能彻底治愈| 怎么判断脸上是什么斑| 老年性阴道炎用什么药| 代偿期和失代偿期是什么意思| max什么意思| 牙齿打桩是什么意思| 举头三尺有神明是什么意思| 30是什么意思| 三个火念什么| 飞机用什么燃油| 大小脸是什么原因造成的| 乳酪和奶酪有什么区别| 月经一直不干净是什么原因| 孽障是什么意思| 结肠和直肠有什么区别| 1984年属鼠的是什么命| 耳鸣是什么原因引起的| 硬不起吃什么药| 双侧输尿管不扩张是什么意思| 脚为什么会痒越抓越痒| 90年属什么| 卵泡是什么东西| mva是什么单位| 肝的反射区在什么部位| 属龙什么命| 高血糖可以吃什么水果| aquascutum是什么牌子| 蓝莓泡酒有什么功效| 心悸是什么意思啊| pci是什么意思| 梅花什么颜色| 桐五行属什么| 为什么长不胖一直很瘦| 16年属什么生肖| 米粉和米线有什么区别| 肠息肉是什么原因引起的| 深水炸弹是什么意思| 纳米是什么| 夏天吹空调感冒了吃什么药| 中元节注意什么| 农田种什么最赚钱| 手心出汗是什么原因| 什么是sku| 经常流眼泪是什么原因| 题词是什么意思| 牡蛎是什么| 鼻涕倒流到咽喉老吐痰吃什么药能根治| 人老是犯困想睡觉是什么原因| 肉炒什么好吃| 菩提是什么东西| 日照香炉生紫烟是什么意思| 牛蛋是什么| 凌晨五点是什么时辰| 毛孔大什么原因形成的| 胃息肉是什么原因引起的| 金玉满堂是什么菜| 胎盘老化对胎儿有什么影响| 梦见小兔子是什么意思| instagram是什么意思| 心脏传导阻滞是什么意思| 四大天王叫什么名字| 木可以加什么偏旁| 香干是什么| 植物神经紊乱中医叫什么病| 湿疹什么样| 96999是什么电话| 什么去湿气| 忽视是什么意思| 喝水多尿多是什么原因| 木耳菜是什么菜| 小孩经常吐是什么原因| 助理研究员是什么职称| 喜欢放屁是什么原因| 五心烦热吃什么药最快| 躯体是什么意思| 儿童吃什么| marni是什么牌子| 头皮毛囊炎用什么洗发水| 下嘴唇有痣代表什么| 第一次查怀孕挂什么科| 考试前吃什么好| 属龙跟什么属相最配| 阴离子是什么| 什么是性骚扰| 7月7日是什么星座| 三点水一个四读什么| 一什么场面| 参事是什么级别| 手指甲软薄吃什么补| 一边什么一边什么| 宫颈癌做什么检查| 朱砂属于五行属什么| 调岗是什么意思| 1978年属什么生肖| 父母都是a型血孩子是什么血型| 开宠物医院需要什么条件| 什么水果是发物| 深圳少年宫有什么好玩的| 右手发麻是什么病的前兆| 白发是什么原因引起的| 什么大米好吃| 骨折吃什么消炎药| 彩排是什么意思| 欣字取名什么寓意| 雨五行属什么| 糜烂性胃炎可以吃什么蔬菜| 轻度溶血是什么意思| 九浅一深什么意思| 看病人送什么鲜花好| 结果是什么意思| 脾肺气虚吃什么中成药| 酒后大量出虚汗什么原因| 鸟为什么会飞| 脚麻是什么原因造成的| 胆红素三个指标都高是什么原因| 黑无常叫什么| 丝状疣是什么原因长出来的| 指甲竖条纹是什么原因| 秘语是什么意思| 睾丸突然疼痛什么原因| 黄芪最佳搭配是什么| 百合花代表什么| 什么样的毛刺是良性的| 洋葱对肝脏有什么好处| 手机充电发烫是什么原因| 教师编制是什么意思| 笑靥什么意思| 桂味是什么| 孕期不能吃什么| 无的放矢是什么意思| 高血压是什么意思| 耳朵里面疼用什么药| 鼹鼠是什么动物| 穷兵黩武是什么意思| 今日属相是什么生肖| 白芷有什么作用与功效| 桑葚搭配什么泡水喝最好| 四时是什么时辰| 籍贯是指什么| 三岁看大七岁看老什么意思| 为什么空腹血糖比餐后血糖高| 非凡是什么意思| rm是什么位置| 如履薄冰什么意思| 伤口感染化脓用什么药| 有什么花的名字| 百度Jump to content

头晃动是什么病的前兆

This page is protected against editing.
From Wikimedia Commons, the free media repository
百度 “黑子的出现,是太阳磁场的反映,”深圳市天文台郑建川博士介绍,“强磁场‘吸住’太阳内部能量向外传递,如果强磁场到了太阳表面,就表现为黑子。


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


什么叫糙米 羹什么意思 碱水是什么 去迪拜打工需要什么条件 童子是什么
腈纶是什么面料优缺点 什么导航好用又准确 舌苔白色是什么原因 额头冒痘是什么原因 退烧吃什么药好
牛郎是什么职业 甲状腺1类是什么意思 沁什么意思 胰岛素偏低是什么原因 ais什么意思
波菜不能和什么一起吃 牙齿突然酸痛什么原因 皮炎不能吃什么食物 慢性浅表性胃炎是什么意思 哈森鞋子属于什么档次
谈恋爱是为了什么hcv8jop9ns5r.cn 正佳广场有什么好玩的hcv8jop4ns2r.cn 梦见床是什么意思hcv9jop0ns3r.cn 大枣和红枣有什么区别hcv8jop5ns3r.cn 梦见自己洗衣服是什么意思hcv7jop5ns4r.cn
一呼吸胸口疼是什么原因hcv9jop3ns3r.cn 空调病是什么hcv8jop8ns8r.cn 喉咙突然哑了什么原因hcv9jop5ns0r.cn 肌酸是什么东西hlguo.com c反应蛋白是查什么的jinxinzhichuang.com
激酶是什么hcv9jop1ns5r.cn 门静脉增宽是什么意思hcv8jop1ns8r.cn 苓是什么意思hcv9jop6ns8r.cn 味精是什么做的hcv7jop9ns9r.cn 淋巴吃什么药好hcv8jop9ns8r.cn
寒冷性荨麻疹是什么原因引起的wmyky.com 肺部检查挂什么科hcv7jop9ns0r.cn 冰冻三尺非一日之寒是什么意思hcv7jop9ns1r.cn 暑伏为什么要吃饺子hcv8jop0ns9r.cn 什么的高liaochangning.com
百度