本页使用了标题或全文手工转换

Template:Infobox aircraft begin

维基百科,自由的百科全书
跳到导航 跳到搜索
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

使用[编辑]

{{{name}}}
[[File:{{{logo}}}|210px]]
[[File:{{{image}}}|{{{size}}}|alt={{{alt}}}|{{{alt}}}]]
{{{caption}}}
{{{name}}}
[[File:{{{logo}}}|210px]]
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|{{{alt}}}]]
{{{long caption}}}

此模板为所有航空器相关信息框提供通用格式。此模板和任何配合使用的模板都必须被括在{||}之中以生成一个完整的维基表格。(见Help:表格

{|{{Infobox aircraft begin
 |在此处输入参数
}}
|}

对于航空器型号条目,使用:

{|{{Infobox aircraft begin
 |在此处输入参数
}}{{Infobox aircraft type
 |在此处输入参数
}}
|}

对于航空发动机条目,使用:

{|{{Infobox aircraft begin
 |在此处输入参数
}}{{Infobox aircraft engine
 |在此处输入参数
}}
|}

多重模板可以被层叠起来,例如使用特定飞机型号制造的唯一飞机同时也有其个体值得关注的使用历史,如圣路易斯精神号

{|{{Infobox aircraft begin
 |在此处输入参数
}}{{Infobox aircraft type
 |在此处输入参数
}}{{Infobox aircraft career
 |在此处输入参数
}}
|}

其他模块[编辑]

当前可用于Infobox aircraft模块化模板的其他模块如下:

{{Infobox aircraft type}}
与航空器型号(或子型号)有关的通用资料,如职能、制造商、产量、首飞日期。但不包括性能规格。
{{Infobox aircraft career}}
与个别具有重要意义的飞机有关的资料,比如注册号、军队序列号、当前保存状态。
{{Infobox aircraft engine}}
与航空器发动机型号有关的通用资料,如型号、制造商、主要应用。但不包括性能规格。
{{Infobox aircraft program}}
General data on programs to develop types (and subtypes) of aircraft and aircraft engines, but not on the aircraft or engines themselves or their technical specifications

Parameters[编辑]

name
The subject of the article. When naming aircraft and engines, please do not repeat the name of the manufacturer unless the name would be otherwise ambiguous. For example, "P-51 Mustang" does not need to have "North American" in front of it: the name itself is unambiguous and the manufacturer will be stated just a few lines down in the Type Infobox.
image
In the format filename.xxx format with or without 'File:' tag
size or image_size
Allows for the specification of image size; default is 250px.
alt
Alt text for the image, for readers who cannot see the image. Please see WP:ALT for details.
border
set to yes to add a thin border to the image
caption
A short (one- or two-line) caption for the image. If it isn't descriptive, then please skip it. "Boeing 747" or "Boeing 747 in flight" should be patently obvious from the context and does not need to be captioned. "A Qantas Airlines Boeing 747-400 at Heathrow Airport in 2006" is an example of a useful caption. Captions will appeared centred in the infobox.
long caption
A longer (multi-line), more detailed caption may be desirable from time to time. Long captions will appear left-justified in the infobox. Won't display if caption is defined.

Template with notes[编辑]

{{Infobox aircraft begin
 |name = REQUIRED <!-- avoid stating manufacturer (it's stated 3 lines below) unless name used by other aircraft manufacturers -->
 |image = <!-- in the ''File:filename'' format with no image tags.  In-flight images are preferred for aircraft. -->
 |alt = <!-- Alt text for main image -->
 |caption = <!-- Image caption; if it isn't descriptive, please skip. -->
 |long caption = <!-- A longer (multi-line), more detailed caption may be desirable from time to time. Text is left-justified in the infobox. -->
}}

Example[编辑]

 |name = Foo
 |image = Foo.jpg
 |size = 300px
 |alt = an aircraft in flight
 |caption = The Foo on its first flight

Tracking categories[编辑]

Supporting templates and modules[编辑]

The following templates are used directly from this template:

TemplateData[编辑]

TemplateData documentation used by VisualEditor and other tools

Infobox aircraft begin模板数据

无描述。

模板参数

此模板首选参数换行格式。

参数说明类型状态
Namename

Name of the aircraft without the name of the manufacturer

字符串可选
Imageimage

Image of the aircraft

页面可选
Image Sizesize

Size of image (eg. 300px)

默认值
250px
字符串可选
Alternative Textalt

Alternative text to display if image does not display for whatever reason

字符串可选
Captioncaption

Caption for the image

字符串可选
Long captionlong caption

A longer (multi-line), more detailed caption may be desirable from time to time. Long captions will appear left-justified in the infobox.

字符串可选