Template talk:Infobox aircraft image

From Wikimedia Commons, the free media repository
Jump to: navigation, search
RIAN archive 566221 Tu-144 passenger airliner (cropped).jpg
WikiProject Aviation

The media Template:Infobox aircraft image is related to aviation, and as such is within the scope of the WikiProject Aviation. Please discuss the layout of the information page on WikiProject Aviation 's discussion page.

Status: structure: unchecked, correctness: unassessed, completeness: unchecked


What are all the fields for? --InfantGorilla (talk) 08:49, 18 January 2009 (UTC)

Yes check.svg Resolved

Thanks for creating comprehensive documentation. --InfantGorilla (talk) 15:38, 5 October 2010 (UTC)


This template should be merged with Template:Infobox aircraft --Jarekt (talk) 03:45, 29 September 2010 (UTC)

Adding an entry for the construction number[edit]

I thought, it could be good to add an entry for the construction number of the aircraft. Such an entry could be usefull, for example to track the latest operator of the airframe. Any thoughts? abf «Cabale!» 09:37, 28 February 2011 (UTC)

  • Symbol keep vote.svg Agree Yes, a good idea. SV1XV (talk) 14:37, 28 February 2011 (UTC)

New version of the template[edit]

There seem to be a nice alternative version of this template, created by user:Zolo, Template:Infobox aircraft image/sandbox. It is build as an extension of {{Information}} with a few fields added, so it benefits from few hundred translations of the field names. Translations of the additional field names can be found here. See File:FA-18 Hornet breaking sound barrier (7 July 1999).jpg for example of the new template. Are there any objections about replacing current template with Template:Infobox aircraft image/sandbox? --Jarekt (talk) 13:23, 1 June 2012 (UTC)

I have moved the sandbox code to the main template. Actually the template already made use of {{information}} internationalization messages, but the code was rather complicated, with parts of it no longer used. Using {{tl|information directly should make it more maintainable.
There are two other small changes:
  • "imageloc" parameter now adds {{city}} by default to help with links / localization
  • in: [[:Category:Aircraft by registration|{{{aircraftid-label|Identification}}}]]</td><td> [[:Category:{{#if:{{{aircraftid|}}}|{{#ifexist:Category:{{{aircraftid}}} (aircraft)|{{{aircraftid}}} (aircraft)|Aircraft by registration}}|Aircraft by registration}}|{{{aircraftid}}}]]. I have removed the link to Category:Aircraft by registration. It found that really misleading, as the link seems to imply we will find that specific registration). A link Category:Aircraft by registration is provided in the field header, so there is no use in sometimes having it inside the field as well. --Zolo (talk) 07:07, 3 June 2012 (UTC)

Automatically adding images to category Aircraft by Registration[edit]

It would be cool to have an image be automatically added to its registration category based on the value of the registration field. However, it may not be accepted in wikimedia commons to add dynamically-generated category names, and there may some downsides to this, specifically those which can arise from differences in use between the aircraftreg field, and the aircraft registration category. What are the suggestions for this?

Demo here. --Hhm8 (talk) 08:29, 18 November 2014 (UTC)

Another demo. This one only adds the reg category if the nocat=false param is passed; see en:Wikipedia:Category suppression#Attribute-based suppression. --Hhm8 (talk) 08:44, 18 November 2014 (UTC)

This has been applied to the main template, with G-d's help :-) --Hhm8 (talk) 09:52, 10 December 2014 (UTC)

Sorry to bring this up, but the autocat-function causes a lot of confusion in Category:Re-used aircraft registrations. This generated a lot of redundancies for those aircraft pictures that use the infobox (see Category:D-ABFC_(aircraft) and category:D-ABFC (Airbus A320). I spent a lot of effort already in fixing most of the "one registration vs two aircraft" problem, assigning each pic to the appropriate (new) cat.
In general I see no added value to this function as there are much more aircraft pics without the infobox and additioanlly plenty of users aleady categorizing aircraft pics manually.
This problem could probably be fixed with the above mentiones "nocat", but it does not work here as desired for the existing infoboxes.
Btw: The template documentation caused the template itself to be categorized to category:OH-LEI (aircraft)
All in all, from my point of view there is more damage then benefit from this change. I thus reverted it, hoping that a futher change in code can fix the problem. Thanks. -- Wo st 01 (talk / cont) 16:21, 6 January 2015 (UTC)

How do we handle multiple aircraft with this ?[edit]

example : File:Bombardier Dash 8-Q402, Lufthansa Regional (Augsburg Airways) JP7439824.jpg . I have all the deetails for the background aircraft on ground. Can this template cater for it ? Rcbutcher (talk) 15:30, 1 September 2015 (UTC)

You can add two templates, one for each aircraft. Ruslik (talk) 19:45, 23 October 2016 (UTC)