Template:Infobox aircraft: Difference between revisions

Improved logic for showing the download link.
(The download link no longer defaults to FGAddon.)
(Improved logic for showing the download link.)
Line 582: Line 582:
                   | th = ดาวน์โหลด
                   | th = ดาวน์โหลด
                 }}
                 }}
| data30      = {{#switch: {{{download|{{{hangar|none}}}}}}
| data30      = {{#if: {{{download|{{{hangar|}}}}}}
                  | bermuda
                  | {{#switch: {{{download|{{{hangar|none}}}}}}
                  | none =
                      | bermuda
                  | #default = [[File:Folder-downloads 32x32.png <!--
                      | none =
                  -->| 30px <!--
                      | #default = [[File:Folder-downloads 32x32.png <!--
                  -->| {{#switch: {{{hangar|fgaddon}}}
                      -->| 30px <!--
                          | fgaddon  = {{LangSwitch
                      -->| {{#switch: {{{hangar|fgaddon}}}
                                        | de = Lade das Flugzeug-Paket des {{{name|}}} für die aktuelle stabile Version ({{current release|cr}}) herunter.
                              | fgaddon  = {{LangSwitch
                                        | en = Download the {{{name|}}} aircraft package for the current stable release ({{current release|cr}}).
                                            | de = Lade das Flugzeug-Paket des {{{name|}}} für die aktuelle stabile Version ({{current release|cr}}) herunter.
                                        | es = Descargar el paquete de avion {{{name|}}} para la versión estable actua ({{current release|cr}}).
                                            | en = Download the {{{name|}}} aircraft package for the current stable release ({{current release|cr}}).
                                        | fr = Téléchargez le paquet de l'avion {{{name|}}} pour la version stable actuelle ({{current release|cr}}).
                                            | es = Descargar el paquete de avion {{{name|}}} para la versión estable actua ({{current release|cr}}).
                                        | th = ดาวน์โหลดเครื่องบิน {{{name|}}} สำหรับรุ่นปัจจุบัน({{current release|cr}})
                                            | fr = Téléchargez le paquet de l'avion {{{name|}}} pour la version stable actuelle ({{current release|cr}}).
                                      }}
                                            | th = ดาวน์โหลดเครื่องบิน {{{name|}}} สำหรับรุ่นปัจจุบัน({{current release|cr}})
                          | fgdata  = {{LangSwitch
                                          }}
                                        | de = Das UFO ist bereits im Basispaket enthalten.
                              | fgdata  = {{LangSwitch
                                        | en = The UFO comes as part of the base package.
                                            | de = Das UFO ist bereits im Basispaket enthalten.
                                        | es = El UFO está incluido en el paquete básico.
                                            | en = The UFO comes as part of the base package.
                                        | th = UFO จะมาพร้อมกับโปรแกรมอยู่แล้ว
                                            | es = El UFO está incluido en el paquete básico.
                                      }}
                                            | th = UFO จะมาพร้อมกับโปรแกรมอยู่แล้ว
                          | #default = {{LangSwitch
                                          }}
                                        | de = de = Lade das Flugzeug-Paket herunter.
                              | #default = {{LangSwitch
                                        | en = Download the aircraft package.
                                            | de = de = Lade das Flugzeug-Paket herunter.
                                        | es = Descargar el paquete de avion.
                                            | en = Download the aircraft package.
                                        | fr = Téléchargez le paquet de l'avion.
                                            | es = Descargar el paquete de avion.
                                        | th = ดาวน์โหลดเครื่องบิน
                                            | fr = Téléchargez le paquet de l'avion.
                                      }}
                                            | th = ดาวน์โหลดเครื่องบิน
                        }} <!--
                                          }}
                  -->| link={{#if:{{{download|}}}
                            }} <!--
                              | {{{download}}}
                      -->| link={{#if:{{{download|}}}
                              | {{#switch: {{{hangar|}}}
                                  | {{{download}}}
                                  | aucafly          = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                                  | {{#switch: {{{hangar|}}}
                                  | buckaroo          = http://www.buckarooshangar.com/flightgear/models/{{{aircraft|}}}.zip
                                      | aucafly          = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                                  | bulldogrs        = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                                      | buckaroo          = http://www.buckarooshangar.com/flightgear/models/{{{aircraft|}}}.zip
                                  | dave              = http://www.daveshangar.org/
                                      | bulldogrs        = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                                  | 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          = {{LangSwitch
                                      | fguk              = http://fguk.eu/index.php/hangar
                                                            | en = http://helijah.free.fr/flightgear/hangaren.htm
                                      | helijah          = {{LangSwitch
                                                            | fr = http://helijah.free.fr/flightgear/hangar.htm
                                                                | en = http://helijah.free.fr/flightgear/hangaren.htm
                                                          }}
                                                                | fr = http://helijah.free.fr/flightgear/hangar.htm
                                  | herbyw            = {{github zip file|user=HerbyW|repo={{{aircraft|}}}|full=1}}
                                                              }}
                                  | 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