Template:Infobox aircraft: Difference between revisions

Improved logic for adding a 'Download' link to the infobox.
(Improved logic for adding a 'development' section to the infobox.)
(Improved logic for adding a 'Download' link to the infobox.)
Line 533: Line 533:
                   | zh = 下载
                   | zh = 下载
                 }}
                 }}
| data30{{#if:{{{download|{{{hangar|}}}}}}||NULL}}
| data30     = {{#switch: {{{download|{{{hangar|none}}}}}}
              = [[File:Folder-downloads 32x32.png <!--
                  | bermuda
              -->| 30px <!--
                  | none =
              -->| {{#switch: {{{hangar|fgaddon}}}
                  | #default = [[File:Folder-downloads 32x32.png <!--
                      | fgaddon  = {{LangSwitch
                  -->| 30px <!--
                                    | de = Laden Sie die {{{name|}}} Flugzeug-Paket für die aktuelle stabile Version herunter ({{current release|cr}}).
                  -->| {{#switch: {{{hangar|fgaddon}}}
                                    | en = Download the {{{name|}}} aircraft package for the current stable release ({{current release|cr}}).
                          | fgaddon  = {{LangSwitch
                                    | fr = Téléchargez le paquet de l'avion {{{name|}}} pour la version stable actuelle ({{current release|cr}}).
                                        | de = Laden Sie die {{{name|}}} Flugzeug-Paket für die aktuelle stabile Version herunter ({{current release|cr}}).
                                  }}
                                        | en = Download the {{{name|}}} aircraft package for the current stable release ({{current release|cr}}).
                      | fgdata  = {{LangSwitch
                                        | fr = Téléchargez le paquet de l'avion {{{name|}}} pour la version stable actuelle ({{current release|cr}}).
                                    | en = The UFO comes as part of the base package.
                                      }}
                                  }}
                          | fgdata  = {{LangSwitch
                      | #default = {{LangSwitch
                                        | en = The UFO comes as part of the base package.
                                    | de = Laden Sie die Flugzeug-Paket herunter.
                                      }}
                                    | en = Download the aircraft package.
                          | #default = {{LangSwitch
                                    | fr = Téléchargez le paquet de l'avion.
                                        | de = Laden Sie die Flugzeug-Paket herunter.
                                  }}
                                        | en = Download the aircraft package.
                    }} <!--
                                        | fr = Téléchargez le paquet de l'avion.
              -->| link={{#if:{{{download|}}}
                                      }}
                          | {{{download}}}
                        }} <!--
                          | {{#switch: {{{hangar|fgaddon}}}
                  -->| link={{#if:{{{download|}}}
                              | aucafly          = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                              | {{{download}}}
                              | bermuda          = Category:Bermuda Triangle
                              | {{#switch: {{{hangar|fgaddon}}}
                              | buckaroo          = http://www.buckarooshangar.com/flightgear/models/{{{aircraft|}}}.zip
                                  | aucafly          = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                              | dave              = http://www.daveshangar.org/
                                  | buckaroo          = http://www.buckarooshangar.com/flightgear/models/{{{aircraft|}}}.zip
                              | emilianh          = {{gitlab zip file|user=emilianh|repo={{{aircraft|}}}|tag=latest|full=1}}
                                  | dave              = http://www.daveshangar.org/
                              | fgaddon          = http://fgfs.goneabitbursar.com/official/{{{aircraft|}}}.zip
                                  | emilianh          = {{gitlab zip file|user=emilianh|repo={{{aircraft|}}}|tag=latest|full=1}}
                              | fgdata            = https://sourceforge.net/projects/flightgear/files/
                                  | fgaddon          = http://fgfs.goneabitbursar.com/official/{{{aircraft|}}}.zip
                              | fguk              = http://fguk.eu/index.php/hangar
                                  | fgdata            = https://sourceforge.net/projects/flightgear/files/
                              | helijah          = http://helijah.free.fr/flightgear/hangar.htm
                                  | fguk              = http://fguk.eu/index.php/hangar
                              | herbyw            = {{github zip file|user=HerbyW|repo={{{aircraft|}}}|full=1}}
                                  | helijah          = http://helijah.free.fr/flightgear/hangar.htm
                              | it0uchpods        = {{github zip file|user=it0uchpods|repo={{{aircraft|}}}|full=1}}
                                  | herbyw            = {{github zip file|user=HerbyW|repo={{{aircraft|}}}|full=1}}
                              | lake of constance = http://www.marc-kraus.de
                                  | it0uchpods        = {{github zip file|user=it0uchpods|repo={{{aircraft|}}}|full=1}}
                              | paf              = http://equipe-flightgear.forumactif.com/t835-hangar-de-la-p-a-f-paf-team-hangar#14330
                                  | lake of constance = http://www.marc-kraus.de
                            }}
                                  | paf              = http://equipe-flightgear.forumactif.com/t835-hangar-de-la-p-a-f-paf-team-hangar#14330
                        }}<!--
                                }}
            -->]]
                            }}<!--
                -->]]
                }}
| label31    = {{LangSwitch
| label31    = {{LangSwitch
                   | de = Livree
                   | de = Livree