Template talk:InvertibleImage

From PS3 Developer wiki
Jump to navigation Jump to search

Problems[edit source]

The implementation in the Template:PS2_Classics_Emulator_Compatibility_List_Headers icons is ignoring the baseline option (a type of vertical alignment, as explained in [1])
To confirm the problem try to edit the header table and replace the baseline by one of those align modes: (baseline, sub, super, top, text-top, middle, bottom, text-bottom), then click in "show preview" and note all them are aligned in the same way, this is because the template InvertibleImage is ignoring it
The problem is currently it only paases 2 options (more than 2 are ignored), and assumes 3 more are needed (link=|alt=|frameless)
The icons used in the compatibility headers are just an specific use case, probably there are many more in monochrome that could use this template but in the current state is not posible because this template is going to break them, i.e: the 5 TemplateTest#Chips_Pinouts icons used in many console component wikitables (please dont mess around with them until we are sure what to do, lets keep the experiment contained)
My point is this template needs to be the most generic posible--Sandungas (talk) 02:49, 13 June 2023 (CEST)
I fixed the problem specific for the compatibility list header icons in this edit just by allowing to pass up to 3 arguments (because the baseline option was in third position), but the other images in the pinout templates requires 5 options in his current state just because i ordered the options in a different way (allows to modify the icon size but this option is located at fifth position)... anyway, as said before this is not just a matter of improving the InvertibleImage just for this 2 specific cases, there could be many other images with a bigger number of options or ordered in many different ways --Sandungas (talk) 03:15, 13 June 2023 (CEST)