Template:Infobox aircraft: Difference between revisions
AlexChillOut (talk | contribs) No edit summary |
AlexChillOut (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | |||
{{infobox | {{infobox | ||
|templatestyles = Template:Infobox country/styles.css | |templatestyles = Template:Infobox country/styles.css | ||
Line 7: | Line 7: | ||
| subheader = {{#if:{{{life_span|}}} | {{{life_span}}} | {{#if:{{{year_start|}}}|{{{year_start}}}{{#if:{{{year_end|}}}|–{{{year_end}}} }} }} }} | | subheader = {{#if:{{{life_span|}}} | {{{life_span}}} | {{#if:{{{year_start|}}}|{{{year_start}}}{{#if:{{{year_end|}}}|–{{{year_end}}} }} }} }} | ||
| image | | 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}} | ||
| label2 = Role | | label2 = Role | ||
| data2 = {{{role|{{{role}}}}}} | | data2 = {{{role|{{{role}}}}}} | ||
Line 37: | Line 36: | ||
| below = {{#if:{{{navbar|}}}| {{navbar|{{{navbar|}}}}} }} | | below = {{#if:{{{navbar|}}}| {{navbar|{{{navbar|}}}}} }} | ||
}} | }} | ||
</includeonly> | |||
<noinclude> | |||
{{documentation}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"title1": { | |||
"type": "string" | |||
}, | |||
"image1": { | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"image2": { | |||
"type": "wiki-file-name" | |||
}, | |||
"role": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"national_origin": { | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"manufacturer": {}, | |||
"first_flight": { | |||
"type": "date" | |||
}, | |||
"status": { | |||
"type": "string" | |||
}, | |||
"primary_users": { | |||
"type": "string" | |||
}, | |||
"years_produced": { | |||
"type": "string" | |||
}, | |||
"number_built": { | |||
"type": "number" | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> |
Revision as of 13:42, 18 April 2024
}}} | image = | label2 = Role | data2 = {{{role}}}
| label3 = National origin | data3 = {{{national_origin}}}
| label4 = Manufacturer | data4 = {{{manufacturer}}}
| label5 = First flight | data5 = {{{first_flight}}}
| label6 = Status | data6 = {{{status}}}
| label7 = Primary users | data7 = {{{primary_users}}}
| label8 = Years produced | data8 = {{{years_produced}}}
| label9 = Number built | data9 = {{{number_built}}}
| 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
{{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 | optional |
image1 | image1 | no description | File | suggested |
image2 | image2 | no description | File | optional |
role | role | no description | String | suggested |
national_origin | national_origin | no description | String | suggested |
manufacturer | manufacturer | no description | Unknown | optional |
first_flight | first_flight | no description | Date | optional |
status | status | no description | String | optional |
primary_users | primary_users | no description | String | optional |
years_produced | years_produced | no description | String | optional |
number_built | number_built | no description | Number | optional |