模板:Infobox aircraft begin/doc
此頁面是Template:Infobox aircraft begin的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
本模板含有複雜而精密的擴展語法。 編輯本模板前,建議您先熟悉解析器函數與本模板的設計思路、運作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的編輯可先在模板沙盒或您的個人頁面中進行測試。 |
此模板使用Lua語言: |
使用
[編輯]{{{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
[編輯]- 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模板資料 沒有描述。
|