Thread:FishTank/@comment-25683568-20160115220602/@comment-25683568-20160117020346

Ah, so the PI's aren't like the tabber extension? A preprocess worked for the tabber, so I thought it would work with PIs too.

The tabber in EquipmentInfoKai is just to show 4 images (with the card tab as the default), so from what you're saying it seems possible?

If you can get the PI xml and styling up with placeholder data, I'm sure I can write the Lua necessary to populate the PI. Letting Module:ShipData be accessible from #invoke should cover most of what's needed for ShipInfoKai. It'll need a bit of refactoring to use mw.loadData though, as if I understand correctly every field in the infobox will need an #invoke.

Losing the ability to generate HTML, even partially in Lua might hurt though, since it allows certain parts of the infobox to be variable length (the equipment rows for example, see Midway Princess for a rare 5 equipment slot case), or omitted (For example, in the extra statistics section of the infobox on Battleship Ru-Class, the Artillery Spotting row is only shown if that form of the Ru-Class is capable of it, otherwise it is not shown). Many of the tooltipped text values are also done in Lua; are conditional tooltips are possible with PIs?

There is also some functionality in the current system that relies on user CSS and some dodgy HTML. I guess figuring out whether it can be kept can be done afterwards.