One of my background tasks is to find articles where Google has seen the words "File", "Alt" and "Frameless" - a sign that something is wrong with the image syntax in the infobox. The new Module:InfoboxImage suppresses some of these errors, but currently doesn't fix up the image exactly. So here are some examples, so that the current state of the templates can be reviewed easily.

An AWB Google Search returns a maximum of 100 articles, so I have no idea of the extent of these problems. I am keen for the LUA-based replacements to do more error-checking so that relevant articles can be dropped into maintenance categories.

Caption separated by <br> edit

Example person
 

Here's the caption

This never worked properly with the old {{Infobox person}}, but did work with some others. Now it seems to work.

{{Infobox person
|name    = Example person
|image   = [[File:William Orpen Le Chef de l'Hôtel Chatham, Paris.jpg|200px|center]]<br>Here's the caption
}}

...and after the image has been deleted and automatically removed edit

Example person

Here's the caption

Not too bad. It's a pity that the Commons Delinker doesn't handle this case.

{{Infobox person
|name    = Example person
|image   = <br>Here's the caption
}}

External link used as image edit

As of 26 March 2013, the LUA module suppresses the image entirely.

No brackets edit

Example person
{{Infobox person
|name    = Example person
|image   = http://example.com/someimage.jpg
}}

Single brackets edit

Example person
{{Infobox person
|name    = Example person
|image   = [http://example.com/someimage.jpg]
}}

Double brackets edit

Example person
{{Infobox person
|name    = Example person
|image   = [[http://example.com/someimage.jpg]]
}}

Gallery tags edit

Example person

As of 26 March 2013, the LUA module doesn't mess with the image parameter if it begins with an angle bracket, so this case works better than before. The result is non-standard.

{{Infobox person
|name    = Example person
|image   =
<gallery>
File:William Orpen Le Chef de l'Hôtel Chatham, Paris.jpg|Here's the caption
</gallery>
}}

...and after the image has been deleted and automatically removed edit

Example person
{{Infobox person
|name    = Example person
|image   =
<gallery>
</gallery>
}}

Missing "center" parameter causing an off-centre image edit

Example person
 
A typical result from this kind of error

In this example, {{Infobox person}} is being used with incorrect parameters. As of March 2013, the LUA error recovery is not clever enough to centre the image.

{{Infobox person
|name    = Example person
|image   = [[File:William Orpen Le Chef de l'Hôtel Chatham, Paris.jpg|200px|thumb]]
|caption = A typical result from this kind of error
}}

Multiple image edit

Peter II of Courtenay
Seal of Peter II of Courtenay: Obverse: SIGIL(LUM PETRUS) COMITIS NIVERNENSIS (Count of Nevers). His shield displays the arms of Courtenay: Or, three torteaux; Reverse: SECRETUM MEUM (Private seal)

Peter II of Courtenay tries to use {{Multiple image}}. This used to result in a mess, but as of 26 March 2013 the LUA module has been coded to spot the initial "{". The result isn't centred but is otherwise ok.

{{ infobox nobility
| name = Peter II of Courtenay
| image = {{double image|right|Peter 2 of Courtenay.jpg|100|Peter II of Courtenay reverz.jpg|100}} 
| caption = Seal of Peter II of Courtenay: Obverse: SIGIL(LUM PETRUS) COMITIS NIVERNENSIS (Count of Nevers). His shield displays the arms of Courtenay: ''Or, three [[roundel|torteaux]]''; Reverse: SECRETUM MEUM (Private seal)

Thumb parameter creating an extra frame edit

Example person
 
A typical result from this kind of error

In this example, {{Infobox person}} is being used with incorrect parameters. As of March 2013, the LUA error recovery is not clever enough to eliminate the extra frame.

{{Infobox person
|name    = Example person
|image   = [[File:William Orpen Le Chef de l'Hôtel Chatham, Paris.jpg|200px|thumb|center]]
|caption = A typical result from this kind of error
}}

Double caption edit

University of Somewhere
 
This is the first caption
This is the second caption

This is adapted from Raja Rammohan Roy Hall(New Hall). This infobox hasn't been converted to LUA yet. Note that there are two captions, one in the "image_name" parameter and one in the "caption" parameter, and that both are visible. When converted, what will happen to the captions? Only a human can decide properly, so if one is automatically ignored then the article should go in a maintenance category.

{{Infobox University
 |name              = University of Somewhere
 |image_name        = [[File:Magdalen-may-morning-2007-panorama.jpg|thumb|This is the first caption]]
 |caption           = This is the second caption
}}
Example person
 
This is the first caption
This is the second caption

Here's the same thing using LUA. Currently both captions are still visible:

{{Infobox person
|name    = Example person
|image   = [[File:William Orpen Le Chef de l'Hôtel Chatham, Paris.jpg|200px|thumb|center|This is the first caption]]
|caption = This is the second caption
}}