Template:Infobox aircraft: Difference between revisions
AlexChillOut (talk | contribs) No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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|}}} | ||
| label3 = National origin | | label3 = National origin | ||
| data3 = {{{national origin| | | data3 = {{{national origin|}}} | ||
| label4 = Manufacturer | | label4 = Manufacturer | ||
| data4 = {{{manufacturer| | | data4 = {{{manufacturer|}}} | ||
| label5 = First flight | | label5 = First flight | ||
| data5 = {{{first flight| | | data5 = {{{first flight|}}} | ||
| label6 = Status | | label6 = Status | ||
| data6 = {{{status| | | data6 = {{{status|}}} | ||
| label7 = Primary users | | label7 = Primary users | ||
| data7 = {{{primary users| | | data7 = {{{primary users|}}} | ||
| label8 = Years produced | | label8 = Years produced | ||
| data8 = {{{years produced| | | data8 = {{{years produced|}}} | ||
| label9 = Number built | | label9 = Number built | ||
| data9 = {{{number built| | | data9 = {{{number built|}}} | ||
| belowclass = mergedtoprow noprint | | belowclass = mergedtoprow noprint | ||
Line 43: | Line 44: | ||
"params": { | "params": { | ||
"title1": { | "title1": { | ||
"type": "string" | "type": "string", | ||
"required": true, | |||
"suggested": true | |||
}, | }, | ||
"image1": { | "image1": { | ||
Line 50: | Line 53: | ||
}, | }, | ||
"image2": { | "image2": { | ||
"type": "wiki-file-name" | "type": "wiki-file-name", | ||
"suggested": true | |||
}, | }, | ||
"role": { | "role": { | ||
Line 60: | Line 64: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
"manufacturer": {}, | "manufacturer": { | ||
"type": "string", | |||
"suggested": true | |||
}, | |||
"first_flight": { | "first_flight": { | ||
"type": " | "type": "string", | ||
"suggested": true | |||
}, | }, | ||
"status": { | "status": { | ||
"type": "string" | "type": "string", | ||
"suggested": true | |||
}, | }, | ||
"primary_users": { | "primary_users": { | ||
"type": "string" | "type": "string", | ||
"suggested": true | |||
}, | }, | ||
"years_produced": { | "years_produced": { | ||
"type": "string" | "type": "string", | ||
"suggested": true | |||
}, | }, | ||
"number_built": { | "number_built": { | ||
"type": " | "type": "string", | ||
"suggested": true | |||
} | } | ||
} | } | ||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
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 |