模板:Infobox aircraft begin/sandbox
这是Template:Infobox aircraft begin(差异)的沙盒。 参见本模板的测试样例。 |
本模板含有复杂而精密的扩展语法。 编辑本模板前,建议您先熟悉解析器函数与本模板的设计思路、运作原理等。若您的编辑引发了意外的问题,请尽快撤销编辑,因为本模板可能被大量页面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行测试。 |
此模板使用Lua语言: |
使用
此模板为所有航空器相关信息框提供通用格式。此模板和任何配合使用的模板都必须被括在{|
和|}
之中以生成一个完整的维基表格。(见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
- Category:Pages using deprecated image syntax(0) – Used by Module:InfoboxImage to track articles where an infobox uses image syntax in the format |image=[[File:Example.jpg]]. To exclude articles from this category, change it to |image=Example.jpg.
- Category:No local image but image on Wikidata(5) – Used by Template:Wikidata image to track articles where an infobox has no image but Wikidata has an image name. To exclude articles from this category, add an image or
|nocat_wdimage=yes
to the infobox.
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模板数据 无描述。
|