Template:Infobox aircraft: Difference between revisions

Usage of the {{hangar banner}} template for embedding the logos or text.
(Added "lake of constance" support for the devel-hangar parameter.)
(Usage of the {{hangar banner}} template for embedding the logos or text.)
Line 7: Line 7:
                 }}}
                 }}}
| above{{#if:{{{hangar|}}}||NULL}}
| above{{#if:{{{hangar|}}}||NULL}}
               = {{#switch: {{{hangar}}}
               = {{hangar banner|{{{hangar}}}}}
                  | aucafly          = [[File:Aucafly banner.jpg|300px|AUCAFLY hangar|alt=AUCAFLY hangar|link=https://aucafly.wordpress.com/]]
                  | buckaroo          = <big><big>[http://www.buckarooshangar.com/flightgear Buckaroo's Hangar]</big></big>
                  | dave              = [[File:Dave's hangar logo.png|300px|Dave's hangar|alt=Dave's hangar|link=http://www.daveshangar.org/]]
                  | emilianh          =
                  | fgaddon          = [[File:FGAddon logo.png|300px|{{LangSwitch
                                              | de = FGAddon: Der offizielle FlightGear-Flugzeughangar
                                              | en = FGAddon: The official FlightGear hangar
                                              | fr = FGAddon: Le hangar d'aéronef officiel de FlightGear
                                          }}
                                          | alt=FGAddon|link=FGAddon
                                        ]]
                  | fgdata            = [[File:FGData_logo.png|300px|{{LangSwitch
                                              | de = FGData: Flugzeuge des FlightGear-Basispakets.
                                              | en = FGData: Aircraft of the base FlightGear package.
                                              | fr = FGData: Les aéronefs FlightGear de base.
                                          }}
                                          | alt=FlightGear|link=FlightGear
                                        ]]
                  | fguk              = [[File:Fguk.png|300px|FGUK hangar|alt=FGUK hangar|link=http://www.fguk.eu/index.php/hangar]]
                  | helijah          = [[File:Helijahlogo300whiteframed.png|300px|Helijah hangar|alt=Helijah hangar|link=http://helijah.free.fr/flightgear/hangar.htm]]
                  | herbyw            = [[File:Herbywlogo.png|300px|HerbyW's hangar|alt=HerbyW's hangar|link=https://github.com/HerbyW]]
                  | it0uchpods        = [[File:411a.png|300px|It0uchpods hangar|alt=it0uchpods Hangar|link=https://github.com/it0uchpods]]
                  | lake of constance = [[File:Lakeofconstance.png|300px|Lake of Constance hangar|alt=Lake of Constance hangar|link=http://www.marc-kraus.de]]
                  | paf              = <big><big>[http://equipe-flightgear.forumactif.com/t835-hangar-de-la-paf-paf-team-hangar#14330 PAF hangar]</big></big>
                }}
| image      = {{#if: {{{image|}}}
| image      = {{#if: {{{image|}}}
                   | [[File:{{{image}}}|300px|{{{alt|}}}]]
                   | [[File:{{{image}}}|300px|{{{alt|}}}]]
Line 433: Line 408:
                         | fr = Hangar
                         | fr = Hangar
                       }}
                       }}
| data21      = {{#if: {{{devel-hangar|}}}
| data21      = {{hangar banner|{{{devel-hangar|}}}|size=180px}}
                  | {{#switch: {{{devel-hangar|}}}
                      | helijah = [[File:Helijahlogo300whiteframed.png|180px|alt=Helijah's hangar|link=http://helijah.free.fr/flightgear/hangar.htm]]
                      | lake of constance = [[File:Lakeofconstance.png|300px|Lake of Constance hangar|alt=Lake of Constance hangar|link=http://www.marc-kraus.de]]
                    }}
                }}
| label22    = &emsp;{{LangSwitch
| label22    = &emsp;{{LangSwitch
                         | de = Webseite
                         | de = Webseite
Line 910: Line 880:
Then create your <code>{{obr}}PAGENAME{{cbr}}/info</code> multi-language page with, for the example of [[de Havilland Canada DHC-6 Twin Otter/info]] (also see the [[#de Havilland Canada DHC-6 Twin Otter|DHC-6 example]] below):
Then create your <code>{{obr}}PAGENAME{{cbr}}/info</code> multi-language page with, for the example of [[de Havilland Canada DHC-6 Twin Otter/info]] (also see the [[#de Havilland Canada DHC-6 Twin Otter|DHC-6 example]] below):


  &lt;includeonly&gt;{{obr}}infobox aircraft
  &lt;includeonly&gt;{{obr}}User:Bugman/infobox aircraft
  {{!}} name          = de Havilland Canada DHC-6 Twin Otter
  {{!}} name          = de Havilland Canada DHC-6 Twin Otter
  {{!}} hangar        = fgaddon
  {{!}} hangar        = fgaddon
Line 973: Line 943:
== Examples ==
== Examples ==


Apart from the examples below, see the [[Special:WhatLinksHere/Template:Infobox aircraft|articles using this template]] to learn how to use it.
Apart from the examples below, see the [[Special:WhatLinksHere/Template:User:Bugman/infobox aircraft|articles using this template]] to learn how to use it.


=== Empty template ===
=== Empty template ===


  {{obr}}infobox aircraft{{cbr}}
  {{obr}}User:Bugman/infobox aircraft{{cbr}}


{{infobox aircraft|float=none}}
{{infobox aircraft|float=none}}