Template:Infobox aircraft: Difference between revisions

From YATA Wiki
Jump to navigationJump to search
No edit summary
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     = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|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}}
| above = {{{title1|<includeonly>{{PAGENAME}}</includeonly>}}}
| caption    = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
| 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>

No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
title1title1

no description

Stringoptional
image1image1

no description

Filesuggested
image2image2

no description

Fileoptional
rolerole

no description

Stringsuggested
national_originnational_origin

no description

Stringsuggested
manufacturermanufacturer

no description

Unknownoptional
first_flightfirst_flight

no description

Dateoptional
statusstatus

no description

Stringoptional
primary_usersprimary_users

no description

Stringoptional
years_producedyears_produced

no description

Stringoptional
number_builtnumber_built

no description

Numberoptional