User:John of Reading/Image errors

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
This never worked properly with the old Infobox person, but did work with some others. Now it seems to work.



...and after the image has been deleted and automatically removed
Not too bad. It's a pity that the Commons Delinker doesn't handle this case.



External link used as image
As of 26 March 2013, the LUA module suppresses the image entirely.

No brackets


Single brackets


Double brackets


Missing "center" parameter causing an off-centre image
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. 

Multiple image
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 {{clear}}
 * 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 torteaux; Reverse: SECRETUM MEUM (Private seal)

Thumb parameter creating an extra frame
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. 

Double 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.



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

