Template:Infobox aircraft: Difference between revisions

Added preliminary support for Buckaroo's hangar.
(Fix for the author list if 'authors' is not supplied, but 'author1' and 'author2' are both supplied.)
(Added preliminary support for Buckaroo's hangar.)
Line 9: Line 9:
               = {{#switch: {{{hangar}}}
               = {{#switch: {{{hangar}}}
                   | aucafly          = [[File:Aucafly banner.jpg|300px|AUCAFLY hangar|alt=AUCAFLY hangar|link=https://aucafly.wordpress.com/]]
                   | 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/]]
                   | dave              = [[File:Dave's hangar logo.png|300px|Dave's hangar|alt=Dave's hangar|link=http://www.daveshangar.org/]]
                   | emilianh          =  
                   | emilianh          =  
Line 462: Line 463:
                   | {{#switch: {{{hangar|}}}
                   | {{#switch: {{{hangar|}}}
                       | aucafly
                       | aucafly
                      | buckaroo
                       | dave
                       | dave
                       | fgaddon
                       | fgaddon
Line 478: Line 480:
                       -->| link={{#switch: {{{hangar|}}}
                       -->| link={{#switch: {{{hangar|}}}
                                   | aucafly          = https://aucafly.wordpress.com/
                                   | aucafly          = https://aucafly.wordpress.com/
                                  | buckaroo          = http://www.buckarooshangar.com/flightgear/
                                   | dave              = http://www.daveshangar.org/
                                   | dave              = http://www.daveshangar.org/
                                   | fgaddon          = http://wiki.flightgear.org/FGAddon
                                   | fgaddon          = http://wiki.flightgear.org/FGAddon
Line 566: Line 569:
                           | {{#switch: {{{hangar|fgaddon}}}
                           | {{#switch: {{{hangar|fgaddon}}}
                               | aucafly          = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                               | aucafly          = {{github zip file|proj=aucafly|repo={{{aircraft|}}}|full=1}}
                              | buckaroo          = http://www.buckarooshangar.com/flightgear/{{{aircraft|}}}.zip
                               | dave              = http://www.daveshangar.org/
                               | dave              = http://www.daveshangar.org/
                               | emilianh          = {{gitlab zip file|user=emilianh|repo={{{aircraft|}}}|tag=latest|full=1}}
                               | emilianh          = {{gitlab zip file|user=emilianh|repo={{{aircraft|}}}|tag=latest|full=1}}
Line 723: Line 727:
-->{{#switch: {{{hangar|}}}
-->{{#switch: {{{hangar|}}}
     | aucafly          = [[Category:AUCAFLY hangar]]
     | aucafly          = [[Category:AUCAFLY hangar]]
    | buckaroo          = [[Category:Buckaroo's hangar]]
     | dave              = [[Category:Dave's hangar]]
     | dave              = [[Category:Dave's hangar]]
     | fgaddon          = [[Category:FGAddon hangar]]
     | fgaddon          = [[Category:FGAddon hangar]]
Line 799: Line 804:
; name:  The name of the aircraft.  This will be displayed at the top of the infobox.
; name:  The name of the aircraft.  This will be displayed at the top of the infobox.


; hangar:  The optional aircraft hangar.  This adds the hangar logo at 300 px or text and a link for the hanger, automatically creates development repository and download links for hangars which support this, and adds a hangar specific category to the article.  This can currently be one of {{param||fgaddon}}, {{param||fguk}}, {{param|helijah}}, {{param|herbyw}}, {{param|lake of constance}}, {{param|paf}}.
; hangar:  The optional aircraft hangar.  This adds the hangar logo at 300 px or text and a link for the hanger, automatically creates development repository and download links for hangars which support this, and adds a hangar specific category to the article.  This can currently be one of {{param||fgaddon}}, {{param||buckaroo}}, {{param||fguk}}, {{param|helijah}}, {{param|herbyw}}, {{param|lake of constance}}, {{param|paf}}.


; aircraft:  The name of the aircraft in the hangar.  This is only used if the {{param|hangar}} parameter is supplied.  For [[FGAddon]], this corresponds to the aircraft directory in <code>[[$FG_AIRCRAFT]]/Aircraft/<aircraft-dir></code>.  For other hangars, this is currently unused.
; aircraft:  The name of the aircraft in the hangar.  This is only used if the {{param|hangar}} parameter is supplied.  For [[FGAddon]], this corresponds to the aircraft directory in <code>[[$FG_AIRCRAFT]]/Aircraft/<aircraft-dir></code>.  For other hangars, this is currently unused.