Template:Motor type

{{#switch:{{{fuel|}} | electricity = {{#switch:{{{fuel2|}} | diesel = {{#switch:{{{emissions|}} | 6d = {{diagonal split color box|deepskyblue|darkgray|P|D|white|font-size=0.6em}} |#default = {{diagonal split color box|deepskyblue|black|P|D|white|font-size=0.6em}} }}                                                          | petrol = {{#switch:{{{ignition|}} | compression = {{diagonal split color box|deepskyblue||P|C|white|font-size=1.05em|maximize=yes}} |#default = {{diagonal split color box|deepskyblue||P|P|white|white|font-size=1.05em|maximize=yes}} }}                                                          |#default = {{diagonal split color box|lime||E|E|font-size=1.05em|maximize=yes}} }}                                 | hydrogen = {{#switch:{{{type|}} | cell = {{diagonal split color box|aquamarine||H|H|font-size=1.05em|maximize=yes}} |#default = {{diagonal split color box|blue||W|W|font-size=1.05em|maximize=yes}} }}                                 | lng = {{#switch:{{{fuel2|}} | diesel = {{#switch:{{{emissions|}} | 6d = |#default = {{diagonal split color box|gold|darkgray|L|D|font-size=0.6em}} |#default = {{diagonal split color box|gold|black|L|D|font-size=0.6em}} }}                                                  | petrol = {{#switch:{{{ignition|}} | compression = {{diagonal split color box|gold|#ddd|L|C|font-size=0.6em}} |#default = {{diagonal split color box|gold|red|L|G|font-size=0.6em}} }}                                                  |#default = {{diagonal split color box|gold||L|L|font-size=1.05em|font-size=1.05em|maximize=yes}} }}                                 | cng = {{#switch:{{{fuel2|}} | diesel = {{#switch:{{{emissions|}} | 6d = {{diagonal split color box|darkorange|darkgray|N|D|font-size=0.6em}} |#default = {{diagonal split color box|darkorange|black|N|D|font-size=0.6em}} }}                                                  | petrol = {{#switch:{{{ignition|}} | compression = {{diagonal split color box|darkorange|#bbb|N|G|font-size=0.6em}} |#default = {{diagonal split color box|darkorange|red|N|G|font-size=0.6em}} }}                                                  |#default = {{diagonal split color box|darkorange||N|N|font-size=1.05em|maximize=yes}} }}                                 | lpg = {{#switch:{{{fuel2|}} | petrol = {{#switch:{{{ignition|}} | compression = {{diagonal split color box|darkviolet|#bbb|A|C|white|white|font-size=0.6em}} |#default = {{diagonal split color box|darkviolet|red|A|G|white|white|font-size=0.6em}} }}                                                  |#default = {{diagonal split color box|darkviolet||A|A|white|white|font-size=1.05em|maximize=yes}} }}                                 | diesel = {{#switch:{{{emissions|}} | 6d = {{#switch:{{{fuel2|}} | electricity = {{diagonal split color box|deepskyblue|darkgray|P|D|white|font-size=0.6em}} | lng = {{diagonal split color box|gold|darkgray|L|D|font-size=0.6em}} | cng = {{diagonal split color box|darkorange|darkgray|N|D|font-size=0.6em}} |#default = {{#switch:{{{type|}} | full-hybrid = {{diagonal split color box|lemonchiffon|darkgray|F|D|font-size=0.6em}} | mild-hybrid = {{diagonal split color box|magenta|dark gray|M|D|white|white|font-size=0.6em}} |#default = {{diagonal split color box|#999||D|D|white|white|font-size=1.05em|maximize=yes}} }}                                                                     }}                                                      |#default = {{#switch:{{{fuel2|}} | electricity = {{diagonal split color box|deepskyblue|black|P|D|white|font-size=0.6em}} | lng = {{diagonal split color box|gold|black|L|D|font-size=0.6em}} | cng = {{diagonal split color box|darkorange|black|N|D|font-size=0.6em}} |#default = {{#switch:{{{type|}} | full-hybrid = {{diagonal split color box|lemonchiffon|black|F|D|font-size=0.6em}} | mild-hybrid = {{diagonal split color box|magenta|black|M|D|white|white|font-size=0.6em}} |#default = {{diagonal split color box|black||D|D|white|white|font-size=1.05em|maximize=yes}} }}                                                                 }}                                             }}                                  | petrol = {{#switch:{{{ignition|}} | compression = {{#switch:{{{fuel2|}} | electricity = {{diagonal split color box|deepskyblue||P|C|white|font-size=1.05em|maximize=yes}} | lng = {{diagonal split color box|gold|#ddd|L|C|font-size=0.6em}} | cng = {{diagonal split color box|darkorange|#ddd|N|C|font-size=0.6em}} | lpg = {{diagonal split color box|darkviolet|#ddd|A|C|white|white|font-size=0.6em}} |#default = {{#switch:{{{type|}} | full-hybrid = {{diagonal split color box|lemonchiffon|#ddd|F|C|font-size=0.6em}} | mild-hybrid = {{diagonal split color box|magenta|#ddd|M|C|white|black|font-size=0.6em}} |#default = {{diagonal split color box|#ddd||C|C|font-size=1.05em|maximize=yes}} }}                                                                     }}                                                      |#default = {{#switch:{{{fuel2|}} | electricity = {{diagonal split color box|deepskyblue||P|P|white|white|font-size=1.05em|maximize=yes}} | lng = {{diagonal split color box|gold|red|L|G|font-size=0.6em}} | cng = {{diagonal split color box|darkorange||N|N|font-size=1.05em|maximize=yes}} | lpg = {{diagonal split color box|darkviolet|red|A|G|white|white|font-size=0.6em}} |#default = {{#switch:{{{type|}} | full-hybrid = {{diagonal split color box|lemonchiffon||F|F|font-size=1.05em|maximize=yes}} | mild-hybrid = {{diagonal split color box|magenta||M|M|white|white|font-size=1.05em|maximize=yes}} |#default = {{diagonal split color box|red||G|G|font-size=1.05em|font-size=1.05em|maximize=yes}} }}                                                                     }}                                             }} }}  {{documentation}}