Template:Infobox aircraft: Difference between revisions
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
| above = {{{title1|<includeonly>{{PAGENAME}}</includeonly>}}} | | above = {{{title1|<includeonly>{{PAGENAME}}</includeonly>}}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}{{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image1|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}{{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|size={{#ifeq:{{lc:{{{landscape|}}}}}|yes|{{min|300|{{#if:{{#ifexpr:{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|300|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}}}x200px|{{{image size|{{{image_size|{{{imagesize|}}}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}} | ||
| label2 = Role | | label2 = Role | ||
| data2 = {{{role|}}} | | data2 = {{{role|}}} |
Latest revision as of 17:58, 1 January 2025
}}} | image =
| label2 = Role | data2 =
| label3 = National origin | data3 =
| label4 = Manufacturer | data4 =
| label5 = First flight | data5 =
| label6 = Status | data6 =
| label7 = Primary users | data7 =
| label8 = Years produced | data8 =
| label9 = Number built | data9 =
| belowclass = mergedtoprow noprint | below = }} </includeonly>
This template uses Lua: |
{{Infobox aircraft}} may be used to summarize information about an aircraft, usually at the top of an article.
Usage
The infobox may be added by pasting the template as shown below into an article and then filling in the desired fields. Any parameters left blank or omitted will not be displayed.
Blank template with basic parameters
Template:Infobox aircraft | |
---|---|
Role | placeholder |
Manufacturer | placeholder |
Status | placeholder |
{{Infobox aircraft
| title1 = <!-- defaults to article title when left blank -->
| image1 = <!-- filename only, no "File:" or "Image:" prefix, and no enclosing [[brackets]] -->
| image2 = <!-- filename only, no "File:" or "Image:" prefix, and no enclosing [[brackets]] -->
| role =
| manufacturer =
| first_flight =
| status =
| primary_users =
| years_produced =
| number_built =
}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
title1 | title1 | no description | String | required |
image1 | image1 | no description | File | suggested |
image2 | image2 | no description | File | suggested |
role | role | no description | String | suggested |
national_origin | national_origin | no description | String | suggested |
manufacturer | manufacturer | no description | String | suggested |
first_flight | first_flight | no description | String | suggested |
status | status | no description | String | suggested |
primary_users | primary_users | no description | String | suggested |
years_produced | years_produced | no description | String | suggested |
number_built | number_built | no description | String | suggested |