Module talk:InfoboxImage
User:MiszaBot/config Template:Archives
Alt text versus title text
Hello,
The module currently uses the alt text as title text when no title text is provided; alt text and title text are not the same thing, so this doesn't seem a good idea to me... The alt text is supposed to provide information that can replace the image's graphics, whereas the title text is a possibility to supplement the image's graphics with additional information. Currently, if a visual description of the image is passed as alt text, the module also displays it as a title text, even though it isn't relevant there (see the infobox in Template:Oldid2 for an example).
Shouldn't this be changed? (Quickly scrolling through this page, I see that this behavior was Template:Diff2 by WOSlinker following the #Error in the code discussion above.)
Cos-fr (talk) 09:47, 19 September 2014 (UTC)
Agreed that this is a bad idea. Agents processing the page source expect the title text to be extra information that can be meaningfully displayed alongside the image; with alt text this tends to have awkward results. To give a specific example, MediaViewer displays title text as the image caption; if there is no title text, it fetches a caption from other sources (such as the image description page). No title text gives much more meaningful results than alt text duplicated as title text. --Tgr (WMF) (talk) 01:22, 26 November 2014 (UTC)
Suggestion: landscape
Template:Ping some infoboxes, like Template:Infobox church, uses |landscape=yes. Maybe it could be imported in this module somehow? --Edgars2007 (talk/contribs) 10:32, 27 February 2015 (UTC)
- I'm not sure if it could be included in the module directly as the code appears to be specific to that infobox. However, I have updated Template:Infobox church/sandbox to use InfoboxImage and including the landscape option. This could be copied over to the live template if you are happy with it. -- WOSlinker (talk) 13:07, 27 February 2015 (UTC)
- Template:Ping I think there could be some three params in the template code
|landscape={{{landscape|yes}}},|landscape x=250,|landscape y=300, or something like that. The rest of the code should be the same for all templates, I think. About the sandbox version - thanks, but I haven't used it, that was just an example :) --Edgars2007 (talk/contribs) 13:55, 27 February 2015 (UTC)
- Template:Ping I think there could be some three params in the template code
Error when parameter missing
This edit, applying this module, seems to be the cause of the error showing on this page. Template:Diff fixed it, but the error needs a permanent solution. Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 09:44, 24 June 2015 (UTC)
- There's no way to catch the error here; it needs to be fixed in Module:Wikidata. Alakzi (talk) 10:53, 24 June 2015 (UTC)