疏通血管吃什么药最好| 特应性皮炎用什么药膏| 女用避孕套是什么样的| 子宫内膜双层什么意思| 外婆的弟弟叫什么| 点映什么意思| 冠带什么意思| 肌腱是什么| 孩子嗓子有痰吃什么药| 沙棘原浆有什么作用| 土崩瓦解是什么意思| 玛卡是什么药| 副支队长是什么级别| 脑膜炎有什么症状| 会阴是什么| 598是什么意思| 工作效率等于什么| tct是检查什么的| 孕酮低吃什么可以提高孕酮| 肺纤维化是什么意思| 梦见买碗是什么意思| 火字旁的有什么字| 空心菜又叫什么菜| 豆绿色配什么颜色好看| 什么叫偏光眼镜| 梦见狗咬手是什么意思| 阴道口痒用什么药| 假牙什么材质的最好| 日加华读什么| hm是什么牌子的衣服| hcg低是什么原因| 白带豆腐渣用什么药| 吃蒸苹果有什么好处| 710是什么意思| 纳差什么意思| 女性尿里带血是什么原因| 着凉嗓子疼吃什么药| 星链是什么| 水清则无鱼什么意思| 六月二七是什么星座| 黄河里有什么鱼| 良字少一点是什么字| 什么情况下必须做胃镜| 韩红是什么民族| 不超过是什么意思| cancer是什么意思| 骨折和骨裂有什么区别| 上火喝什么饮料| PT医学上是什么意思| 哈喽是什么意思| 吃什么润肺养肺最快| 红海为什么叫红海| 子宫内膜为什么会增厚| 大姨妈期间可以吃什么水果| gmp认证是什么意思| 头发油的快是什么原因| 大娘的老公叫什么| 荷兰机场叫什么| 痢疾吃什么药效果最好| 尿道感染用什么消炎药| tea什么意思| 心电图伪差是什么意思| 情定三生大结局是什么| 什么人适合吃人参| 洗头什么时间洗最好| 为什么睡久了会头疼| 什么水果可以降火| 格力空调se是什么意思| 脚转筋是什么原因引起的| trans什么意思| 食物中毒吃什么药| 主导是什么意思| 食管炎是什么原因引起的| 老年人屁多是什么原因| 草是什么植物| 红花是什么生肖| 便秘什么意思| 祁是什么意思| 梦见吃杨梅是什么意思| 12月10号是什么星座| mchc偏低是什么意思| 尿泡多是什么原因| 生命线分叉代表什么| 三个火字念什么| 对牛弹琴告诉我们什么道理| ab血型和o血型的孩子是什么血型| 偶尔什么意思| 反酸烧心吃什么药| 做肠镜检查什么| 甲肝抗体阳性代表什么| 感冒为什么会流眼泪| 晨起口干口苦是什么原因| 咳嗽有痰吃什么好的快| 什么的流淌| 免冠照什么意思| 朝野是什么意思| 孕妇不能吃什么| 肝在人体什么位置| 肝风内动吃什么中成药| burgundy是什么颜色| 雨淋棺材有什么说法| 全价猫粮是什么意思| 阳五行属什么| 经常打哈欠是什么原因| 体育生能报什么专业| junior是什么意思| 闪光眼是什么症状| 柱镜是什么意思| 膝盖小腿酸软无力是什么原因| 什么样的耳朵| 胃反酸吃什么药| 西洋参适合什么人吃| 脾胃不好可以吃什么水果| 艾滋病阴性是什么意思| 慢性肠炎有什么症状| 人肉是什么味道| female什么意思| 减胎对另一个胎儿有什么影响| 杂是什么意思| 肠胃感冒吃什么药| 眷念是什么意思| 久坐睾丸疼是什么原因| 迪根是什么药| 举案齐眉什么意思| 胆结石切除胆囊后有什么影响| 隶属什么意思| 贡中毒有什么症状| 大校上面是什么军衔| 孩子注意力不集中去医院看什么科| 万条垂下绿丝绦是什么季节| 卡介疫苗什么时候打| 生气伤什么器官| u盾是什么| 闯空门什么意思| 彗星是什么| leu是什么意思| 经常催吐有什么危害| s925是什么意思| 剑桥英语和新概念英语有什么区别| 全可以加什么偏旁| 牙龈流血是什么原因| 什么梨| 螯合剂是什么| 斑点狗是什么品种| 熬夜吃什么水果好| hpv低危型是什么意思| 宫缩是什么感觉| 史迪仔是什么动物| 什么叫认知| 吃白糖有什么好处和坏处| 二重唱是什么意思| 45岁属什么的生肖| 流金岁月什么意思| 绮罗是什么意思| 喉头水肿吃什么药| p.a.是什么意思| 血细胞分析五分类是查什么的| 动员是什么意思| x线检查是什么| 印堂跳动是什么预兆| 每天吃三颗红枣有什么好处| 中焦不通用什么中成药| 保底工资是什么意思| 天天想睡觉没精神是什么原因| 青梅是什么意思| 水马是什么| 孕妇上火了吃什么降火最快| 病态是什么意思| 饭后腹胀是什么原因| 扁桃体发炎用什么药| hcg是什么| 此言差矣是什么意思| 骨折的人吃什么恢复快| 看近视眼挂什么科| 肝病有什么反应| 胃癌是什么原因引起的| 南瓜皮可以吃吗有什么作用| 鼠五行属什么| 羔羊跪乳是什么意思| 云肖是什么生肖| 双氧水是什么| 肾炎吃什么药| 低血压吃什么好的最快女性| 福建人喜欢吃什么口味| 什么是员额制| 以身相许什么意思| 平肝潜阳是什么意思| ct和核磁共振有什么区别| 吃氨糖有什么好处和坏处| 小孩腮腺炎吃什么药| 什么是物理学| 化名是什么意思| 出脚汗是什么原因| 甲状腺偏高是什么原因引起的| 甲状腺是挂什么科| 缺钾吃什么| 5.20是什么星座| 气胸挂什么科| 抗ro52抗体阳性是什么意思| 福寿螺为什么不能吃| 看心理医生挂什么科| 玉帝叫什么名字| 农历今天属什么| 肝回声改变是什么意思| 嗓子沙哑是什么原因| lp是什么意思| mil是什么单位| 男人梦见龙是什么征兆| 肝炎是什么病| 网飞是什么| 母亲节可以做什么礼物| 脾虚湿气重吃什么药| 什么是舒张压和收缩压| 子宫饱满是什么意思| 葡萄糖粉适合什么人喝| 来月经可以吃什么水果好| 砂仁是什么| 什么牌子的氨糖最好| 三高人群适合吃什么水果| 肝不好看什么科| 卵巢早衰是什么引起的| 什么是熊猫血型| 碳酸钠是什么东西| 处女座前面是什么星座| 明眸皓齿是什么意思| 肩胛骨缝疼吃什么药| 直女是什么意思| 男性囊肿是什么原因引起的| 9月份是什么季节| 牛大力有什么功效| 沛是什么意思| 刑冲破害是什么意思| 七夕送什么礼物好| 不晨勃是什么原因| 为什么男人喜欢女人| 什么叫肺大泡| gsp全称是什么| 甲状腺有什么症状| 7月19号是什么星座| 什么是桥本氏甲状腺炎| 什么样的智齿需要拔| 心凉是什么意思| 什么和什么丽| 甲功是什么意思| 大土土什么字| 梦到绿色的蛇是什么意思| 贪污是什么意思| 子宫回声欠均匀是什么意思| 酒精过敏是什么症状| 果糖胺偏高说明什么| 4月3号是什么星座| 今天什么冲什么| 寿司是什么| 眼睛经常长麦粒肿是什么原因| 什么好| 宝宝爱出汗是什么原因| 氨基酸的作用是什么| 梦见自己家盖房子是什么预兆| 排黑便是什么原因| 跑马是什么意思| 什么的河流| o和ab型生的孩子是什么血型| 怕热不怕冷是什么体质| 来大姨妈量少是什么原因| 百度
百度 从2014年动工建设至今,侯智庸深居骊山,他说环境很复杂,遇到刮风下雨是常事,还有可能停电,野生小动物夜里敲门也是常事。

An infobox is a panel, usually in the top right of an article, next to the lead section in the desktop version of Wikipedia, or after the first paragraph of the lead section of an article in the mobile version that summarizes key facts about the page's subject. Infoboxes may also include images or maps.

Wikipedia's infoboxes almost always use the template software feature. The templates have parameters; to work properly, the parameter values have to be specified when the template is inserted in the page. This allows each infobox to show information relevant to the article subject, while requiring only a minimal amount of coding within each article.

Purpose

edit

The purpose of an infobox is to summarize, but not supplant, the key facts that appear in an article. Barring the specific exceptions listed below, an article should remain complete with its infobox ignored. The less information that an infobox contains, the more effectively it serves its purpose, allowing readers to identify key facts at a glance. Some infoboxes need to use more than a handful of fields, but information should be presented in a short format wherever possible, and should exclude unnecessary content. Avoid links to sections within the article; the table of contents provides that function.

There will be exceptions where a piece of key specialised information may be placed in the infobox, but is difficult to integrate into the body text. Examples include the ISO 639 and similar codes in {{Infobox language}} and most of the parameters in {{Chembox}}.

Using an infobox also makes its data available to third party re-users (such as DBpedia) in a granular and machine-readable format, often using microformats. Infoboxes can also present data imported from Wikidata (e.g., Category:Infobox templates using Wikidata), although imported data must comply with English Wikipedia policies.

Design principles

edit

Style, color and formatting

edit

General consistency should be aimed for across articles using the same infobox. A good guideline is not to add extraneous style formatting over that in a default infobox without good reason. Infoboxes may tend towards greater abbreviation than that generally used in article bodies. The general guidelines WP:NBSP (use of non-breaking spaces), WP:MOSNUM (numbers and dates), and WP:COLOR (use of color) are likely to be particularly relevant. As with navigation templates, the purpose of infoboxes is to facilitate convenient access to specific information; they should not prioritize a decorative appearance.

Images

edit

When adding an image to an infobox, thumbnails should NOT be used. Infobox templates should implement the InfoboxImage module to help with formatting of images so simply supplying the file name will work. For example, to use File:Image PlaceHolder.png, you can simply use |image=Image PlaceHolder.png. Captions should be specified with the |caption= option. Every infobox is different and the documentation for the infobox in question should be consulted for the proper parameters to match the image and caption. If InfoboxImage is not yet fully implemented in the infobox you are using, the same |alt=, |upright=, |title=, etc., options may be called using Extended image syntax, calling |frameless, not |thumb. (You may wish to add a request to the infobox's talk page that the missing parameters be added.)

Consistency between infoboxes

edit

For consistency the following guidelines apply:

  • Before creating a new infobox template, check first to see whether a suitable infobox already exists.
  • Name the template [[Template:Infobox some subject]] (some subject should be in the singular and capitalized as per normal usage—see Wikipedia:Article titles, e.g., "Infobox settlement" or "Infobox NFL player").
  • Use {{infobox}} template to create a new infobox.
  • The template should have a large, bold title line. Either a table caption or a header can be used for this. It should be named the common name of the article's subject but may contain the full (official) name; this does not need to match the article's Wikipedia title, but falling back to use that (with {{PAGENAMEBASE}}) is usually fine. It should not contain a link.
  • Parameters in infoboxes should:
    • be named, not numbered, to provide for future use.
    • use lower-case unless they are proper nouns.
    • be consistent between infoboxes. For example, {{Infobox person}} uses |birth_date=, as do many other biographical infoboxes, so it would be confusing for a new biographical infobox to use, say |date of birth=, rather than reusing the existing parameter name.
    • use snake case (e.g., |birth_date=), not camel case (e.g., |birthDate=) or title case (e.g., |BirthDate=)
    • represent spaces using an underscore, e.g., |birth_place= not |birth-place= or |birth place=.
  • Infoboxes using geographical coordinates should use |coordinates= as the parameter name, with the {{coord}} template in the parameter's value.
  • If a parameter is not applicable, or no information is available, it should be left blank, and the template coded to selectively hide information or provide default values for parameters that are not defined.

Causes of inconsistency

edit

A number of factors can cause inconsistency in available summary information for a particular type of article:

Design inconsistency
Infoboxes, particularly infobox forks for the same category of articles, should maintain a consistent appearance with related infoboxes, particularly in relation to layout, colour and structure. For example, readers expect a degree of similarity when viewing the article for London vs New York City.
Historical incompleteness
Certain desired information may simply have been lost over time. For example, an infobox describing a modern bank may provide certain financial information that would be unavailable for a medieval one.
Hierarchical inconsistency
Infoboxes that indicate hierarchical relationships may have subtly different requirements depending on where in the hierarchy the subject of the article is located. For example, an infobox for corporations will be different between an article describing a parent company and indicating its subsidiaries and an article describing a subsidiary and indicating its parent.
Feature inconsistency
Items within a single set may have optional features that would commonly be listed in an infobox. For example, an infobox for an article about a university may include a motto; but not all universities have them.
Lack of information
Some items in infoboxes may not be readily available or not available at all, such as the producers of an album or film. In these cases it is better to provide available information while concealing fields for which information may not be available.

General design considerations

edit

The availability of optional fields does not mean that all fields should be made optional, nor that large numbers of rarely used fields should be added without regard for the layout and ease of use of the infobox template. In some cases, the markup for the field still needs to be downloaded even if it is not displayed. Creating overly long templates with a number of irrelevant fields is not recommended.

As you design an infobox template, consider the following questions:

Is the field of value?
How important is the field to the articles that will use the infobox? Is it summary information, or more extended detail that may be better placed within the body of an article?
Will the field be relevant to many of the articles that will use the infobox?
If the field is relevant to very few articles, it should probably not be included at all. Conversely, very common fields may be included – and made optional – even if they are not applicable to a few of the articles in question.
How likely is the field to be empty?
Any field that might reasonably be empty should probably be optional. However, a field that is usually empty may not be particularly useful or relevant.
Can the field name be reused from elsewhere?
For instance, if adding a field for the date on which the subject died, to a biographical infobox template, use |death_date= from {{Infobox person}}, and not a similar name like |date_of_death= or |died=.
Is it for people, places or organisations?
If so, include an hCard microformat – see the microformat project
Is it for a dated event?
(Such as a record release, or sport fixture) If so, include an hCalendar microformat – see the microformat project

Geographical infoboxes

edit

Infoboxes for geographical items (e.g. cities and countries) should generally be headed with the article title, although the formal version of a name (e.g., Republic of Montenegro at Montenegro) can be substituted. Where the article title is disambiguated, the plain name can head the infobox, as long as the topic is clear (e.g., S?o Paulo at S?o Paulo (state)). Alternative or native names can appear beneath this if beneficial. Extensive historic names are often better in a second infobox, as at Augsburg.

Dynamic templates

edit

In theory, the fields in an infobox should be consistent across every article using it; in practice, however, this is rarely the case, for a number of reasons. Infobox templates should be designed to dynamically adapt themselves to the absence or presence of particular fields.

Like static infoboxes, they are designed to present summary information about an article's subject, such that similar subjects have a uniform look and in a common format. However, the template technique allows updates of style and of common text from a central place, the template page.

While there are several alternatives to dynamic infoboxes, such as using multiple (forked) templates or leaving fields blank, they should be avoided, for a number of reasons:

Readers greatly outnumber editors
The most important group to consider are the casual readers of Wikipedia, who will never do any significant editing. Infobox templates that contain many blank fields, question marks, or "Unknown"s present an unprofessional appearance.
Article editors greatly outnumber template editors
The average editor will merely use templates without making changes to them. To make things easier for them, we should aim to minimize the number of different templates they must be familiar with; creating multiple forks of templates is therefore undesirable.

Requirement

edit

Assess the requirement of a new infobox before designing one. A few points should be considered while initiating a new infobox:

  1. Sufficient and appropriate distinct parameters
  2. Inability of being addressed by the existing infoboxes
  3. Inability of being addressed by creating a wrapper of existing infoboxes

Implementations

edit

Basing a new infobox template on Template:Infobox allows the designer to concentrate on which fields to include. Functionality such as default styling and suppression of rows in an article that has no value for a particular field are taken care of automatically.

Conditional templates

edit

Parser functions can be used to selectively show or hide particular content (such as table rows) within an infobox based on the value of one or more template parameters.

For example, a parameter may be designed to display only if another parameter exists. A simplistic test to display a caption only when an image is present could be:

| caption        = {{#if:{{{image|}}}|{{{caption|}}} }}

Name-resolved meta-templates

edit

Several sub-templates (and independent templates) have a common name prefix. They are included in an infobox based on the value of a particular parameter, which acts as the name suffix. For example, we create {{Infobox Ship/Military}} and {{Infobox Ship/Civilian}} and use {{Infobox Ship/{{{type}}}}}. Using |type=Military in an article causes {{Infobox Ship/Military}} to be used.

Multi-part infoboxes

edit

Rather than having each field correspond to a parameter on one template, the infobox consists of an individual sub-template for each field; see, for example, Template:Taxobox.

Interaction between multiple templates

edit

Templates can be designed in a modular way, such that various combinations are possible. A combination may even appear on the page as a single infobox.

For example, if the WikiProject Saints group wanted to design a template based on their static infobox, they could use Template:Infobox Biography, and design a project-specific template with only additional information, and the pages would render both "stacked" together.

Using infoboxes in articles

edit

The use of infoboxes is neither required nor prohibited for any article. Whether to include an infobox, which infobox to include, and which parts of the infobox to use, is determined through discussion and consensus among the editors at each individual article.

The meaning given to each infobox part should be the same across instances of that type of infobox. For example, for a particular infobox type, if one of its fields is called "weight", it would be inappropriate to sometimes use this field to denote "weight at birth" and other times "weight at maturity".

Each infobox type should have documentation giving instruction on how each part/field may be used.

Like navigation templates, infoboxes should generally not contain flag icons. For more information about flag icons, and exceptions to the general guideline, see MOS:FLAG.

References in infoboxes

edit

References are acceptable in some cases, but generally not needed in infoboxes if the content is repeated (and cited) elsewhere or if the information is obvious. If the material needs a reference (see WP:MINREF for guidelines) and the information does not also appear in the body of the article, the reference should be included in the infobox. But editors should first consider including the fact in the body of the article.

Ethnicity in infoboxes

edit

The Wikipedia community has decided at this RfC not to allow the use of an |ethnicity= parameter in biography infoboxes.

Religion in infoboxes

edit

The Wikipedia community has decided at this RfC not to allow the use of a |religion= parameter in general biography infoboxes. Such a parameter should only appear in infoboxes that pertain to classes of persons for whom religion is integral to their notability, e.g., {{Infobox clergy}}.

Nationality and citizenship in infoboxes

edit

In biographies, a |nationality= field should not be used. This was previously available for legal nationality, but was often confused with national identity or ethnicity. The decision was affirmed by the Wikipedia community per this discussion.

A |citizenship= field can be used, with the following guidelines:

  • Omit when this can be inferred from the birth country (almost all cases)
    • This includes countries both with and without jus soli birthright citizenship. For example, we allow readers to assume that people born in Norway are citizens of Norway, and document known exceptions.
    • This includes when citizenship changes due to sovereignty changes (e.g., when a colony attains independence) but is a group change that only depends on citizenship at birth.
    • Make sure the birth country is visible (not just a link target) in the "birth_place" field, and that it is not anachronistic based on the birth date.
  • Do not use for ethnicity or national identity.
  • Citizenship or nationality can be noted if dual, naturalized, or an exception to the typical case.
  • Be aware of citizenship and nationality laws to avoid incorrect assumptions.
  • Include an inline citation and use a reliable source, especially for biographies of living people.
  • Use a country name (e.g., "Cuba") or legal category linked to an explanatory article (e.g., "British Overseas citizen"), not a demonym (e.g., "Cuban" or "American"). Per MOS:USA, use "United States" or "U.S." or "US", not "USA".
  • If citizenship rights vary by territory, specify the territory, e.g., "British Overseas Territories citizen (Bermuda)".
  • Denote non-citizen national status by explicitly naming the legal status, e.g., "citizenship=British subject (Massachusetts Bay)" or "citizenship=United States national (American Samoa)"
  • Do not omit previous values, and add very brief context to explain when a given status was acquired. For example:
    • "Germany (until 1945), United States (since 1945)"
  • In complicated cases, omit from the infobox and explain in the article body.

If needed to indicate legal nationality, use "national of" rather than "nationality", to avoid confusion with ethnicity.

Education in infoboxes

edit

The |alma mater= parameter is a more concise alternative to (not addition to) the |education= parameter, and will often consist of the linked name of the last-attended institution of higher education (not secondary schools). It is usually not relevant to include either parameter for non-graduates, but article talk page consensus may conclude otherwise, as for Bill Gates, who dropped out of Harvard to start Microsoft.

Infoboxes and user style

Users can have user CSS that hides any infoboxes in their own browsers.

To hide all infoboxes, add the following to Special:MyPage/common.css (for all skins, or Special:MyPage/skin.css for just the current skin), on a line by itself:

div.mw-parser-output .infobox { display: none; }

Alternatively, you can add the following code to your common.js or into a browser user script that is executed by an extension like Greasemonkey:

$('.infobox').hide();

Be aware that although all information in an infobox ideally should also be found in the main body of an article, there isn't perfect compliance with this guideline. For example, the full taxonomic hierarchy in {{Taxobox}}, and the OMIM and other medical database codes of {{Infobox disease}} are often not found in the main article content. The infobox is also often the location of the most significant, even only, image in an article. There is a userscript which removes infoboxes but moves the images contained to separate thumbnails: User:Maddy from Celeste/disinfobox.js.

See also

edit

List of templates

edit

Other infobox information

edit

Other types of templates

edit
胃疼吐酸水是什么原因 肾错构瘤是什么原因引起的 帝女花讲的是什么故事 肺静脉流的是什么血 七月上旬是什么时候
震动棒是什么 止咳化痰吃什么好 妇科炎症是什么原因引起的 于谦为什么加入国民党 户口所在地是什么意思
阿托伐他汀治什么病 2003年属羊是什么命 什么花没有叶子 双克是什么药 坯子是什么意思
鞭长莫及是什么意思 ict是什么意思 吃止痛药有什么副作用 加拿大货币叫什么 早上做什么运动最好
现在什么手机好用cj623037.com 原位杂交技术检查什么hcv8jop7ns4r.cn 手抽筋是什么原因引起的hcv7jop5ns0r.cn c2是什么车型hcv8jop6ns9r.cn 电话停机是什么意思hcv8jop4ns5r.cn
黄鼠狼的天敌是什么动物hcv9jop1ns6r.cn 单独是什么意思hcv8jop5ns5r.cn 高血压头晕吃什么药hcv8jop9ns3r.cn 附属国是什么意思hcv7jop6ns7r.cn falcon是什么牌子hcv8jop2ns7r.cn
关节镜是什么hcv9jop3ns5r.cn 纵欲什么意思hcv9jop6ns5r.cn 金蝉花是什么hcv8jop9ns7r.cn 性质是什么hcv8jop9ns8r.cn 人为什么要日bhcv8jop1ns9r.cn
病入膏肓什么意思hcv9jop0ns2r.cn 验孕棒一深一浅代表什么hcv9jop3ns5r.cn 寄居蟹吃什么hcv8jop7ns0r.cn 公费是什么意思hcv8jop5ns1r.cn 晚上喝什么茶不影响睡眠hcv8jop6ns0r.cn
百度