Template:Infobox aircraft: Difference between revisions

Use unfirom infobox template
(Use unfirom infobox template)
Line 1: Line 1:
<includeonly>{| style="background: white; width: 260px; font-size: 90%; text-align: left; border: 1px silver solid; border-collapse: collapse; margin-left:1em; float: right;" cellpadding="3" border="1"
<includeonly>{{Infobox
! colspan="2" style="text-align: center; background-color: #0f7a71; color: white; font-size: larger;" | {{{name}}}
|title    = {{{name|}}}
|-
|image    = {{#if:{{{image|}}}|[[Image:{{{image|}}}{{{!}}}{{{width{{{!}}}270px}}}{{{!}}}{{{alt{{{!}}}}}}]]}}
{{#if:{{{image|}}}|
|caption  = {{{alt}}}
! colspan="2" {{!}} <center>[[Image:{{{image|}}}|{{{width|270px}}}|{{{alt|}}}]]<br/><small>{{{alt|}}}</small></center>|
|image2  = {{#if:{{{image2|}}}|[[Image:{{{image2|}}}{{{!}}}{{{width2{{{!}}}270px}}}{{{!}}}{{{alt2{{{!}}}}}}]]}}
! colspan="2" {{!}} <center>[[Special:UploadWizard|Image requested]]</center>}}
|caption2 = {{{alt2}}}
|-
|label1  = Type
{{#if:{{{image2|}}}|
|data1    = {{{type|}}}
! colspan="2" {{!}} <center>[[Image:{{{image2|}}}|{{{width|270px}}}|{{{alt2|}}}]]<br/><small>{{{alt2|}}}</small></center>|
|label2  = Author(s)
|data2    = {{{authors|}}}
|label3  = FDM
|data3    = {{{fdm|}}}
|label4  = --aircraft=
|data4    = {{{fgname|}}}
|label5  = Status
|data5    = {{#if:{{{status|}}}|{{{status}}} | {{#if: {{{status-fdm|}}} | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 17 | Advanced production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 15 | Production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 11 | Early production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 8 | Beta | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} < 9 | Alpha |  }} }} }} }} }} | }} }}
|label6  = FDM
|data6    = {{#if:{{{status-fdm|}}}|[[File:stars-{{{status-fdm}}}.png]] }}
|label7  = Systems
|data7    = {{#if:{{{status-systems|}}}|[[File:stars-{{{status-systems}}}.png]]}}
|label8  = Cockpit
|data8    = {{#if:{{{status-cockpit|}}}|[[File:stars-{{{status-cockpit}}}.png]]}}
|label9  = Model
|data9    = {{#if:{{{status-model|}}}|[[File:stars-{{{status-model}}}.png]]}}
|data10  = {{#if:{{{development|}}}|'''[{{{development}}} Development repository]'''}}
|data11  = {{#if:{{{download|}}}|'''[{{{download}}} Download]'''}}
}}
}}
|-
 
{{#if:{{{type|}}}|
{{#if: {{{status-fdm|}}} | [[Category:Aircraft status: {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 17 | Advanced production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 15 | Production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 11 | Early production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 8 | Beta | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} < 9 | Alpha | }} }} }} }} }}]] | }}
{{!}} width="60px" {{!}}  Type
{{!}} {{!}} {{{type|}}} }}
|-
{{#if:{{{livery|}}}|
{{!}} {{!}}  Liveries
{{!}} {{!}} {{{livery|}}} }}
|-
{{#if:{{{authors|}}}|
{{!}} {{!}}  Author(s)
{{!}} {{!}} {{{authors|}}} }}
|-
{{#if:{{{version|}}}|
{{!}} {{!}}  Version
{{!}} {{!}} {{{version}}} }}
|-
{{#if:{{{fdm|}}}|
{{!}} {{!}} [[FDM]]
{{!}} {{!}} {{{fdm|}}} }}
|-
{{#if:{{{fgname|}}}|
{{!}} {{!}}  --aircraft
{{!}} style="font-family: 'Courier New'" {{!}}  {{{fgname}}} }}
|-
{{!}} style="background-color: #0f7a71; color: white; font-size: larger;" {{!}} Status
{{#if:{{{status|}}}|
{{!}} {{!}} {{{status}}} |
{{!}} {{!}} {{#if: {{{status-fdm|}}} | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 17 | Advanced production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 15 | Production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 11 | Early production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 8 | Beta | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} < 9 | Alpha |  }} }} }} }} }} | }} }}
|-
{{#if:{{{status-fdm|}}}|
{{!}} {{!}}  FDM
{{!}} {{!}} [[File:stars-{{{status-fdm}}}.png]] }}
|-
{{#if:{{{status-systems|}}}|
{{!}} {{!}}  Systems
{{!}} {{!}} [[File:stars-{{{status-systems}}}.png]] }}
|-
{{#if:{{{status-cockpit|}}}|
{{!}} {{!}}  Cockpit
{{!}} {{!}} [[File:stars-{{{status-cockpit}}}.png]] }}
|-
{{#if:{{{status-model|}}}|
{{!}} {{!}}  Model
{{!}} {{!}} [[File:stars-{{{status-model}}}.png]] }}
|-
{{#if:{{{ready|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}}
{{Ready|{{#titleparts: /{{{ready|}}} | 1 }}}}
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 2 }}}}
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 3 }}}}
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 4 }}}}
{{Ready|{{#titleparts: /{{{ready|}}} | 1 | 5 }}}}
}}
<!-- comment out ratingbar, as extension is disabled
|-
{{!}} colspan="2" style="text-align: center;" {{!}} <w4g_ratingbar style="stars"/>
-->
|-
{{#if:{{{download|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}} '''[{{{download}}} Download]'''  }}
|-
{{#if:{{{liverydbid|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}} '''[http://liveries.flightgear.org/aircraft.php?id={{{liverydbid|}}}&display=2 Livery database]'''  }}
|-
{{#if:{{{development|}}}|
{{!}} colspan="2" style="text-align: center;" {{!}} '''[{{{development}}} Development]'''  }}
|}{{#if: {{{status-fdm|}}} | [[Category:Aircraft status: {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 17 | Advanced production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 15 | Production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 11 | Early production | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} > 8 | Beta | {{#ifexpr: {{#expr: {{{status-fdm|}}}+{{{status-systems|}}}+{{{status-cockpit|}}}+{{{status-model|}}} }} < 9 | Alpha | }} }} }} }} }}]] | }}
{{#if: {{{image}}} | | [[Category:Image requested]]}}</includeonly><!--
{{#if: {{{image}}} | | [[Category:Image requested]]}}</includeonly><!--