Template talk:Item infobox
Jump to navigation
Jump to search
I can't seem to be able to have caption/tooltip on the image (as the "Tooltip" parameter is not useful... as a parameter).
Help !
--British (talk) 09:12, 23 October 2013 (EDT)
- as i understand you want
<img src="..." alt="Tooltip here"></img>
when your mouse at image right --AcDie (talk) 09:29, 23 October 2013 (EDT)
- Not quite.
My Infobox template makes use of imagecaption, and it does work.
I can't make it to work on your infobox, though.
--British (talk) 09:41, 23 October 2013 (EDT)
- Not quite.
- Looking at Template:Structure and I can't understand what role it performs, like caption for youtube videos at frontpage? --AcDie (talk) 09:59, 23 October 2013 (EDT)
- True ALT html tag..
- Looking at Template:Structure and I can't understand what role it performs, like caption for youtube videos at frontpage? --AcDie (talk) 09:59, 23 October 2013 (EDT)
- Template:Structure is a global infobox, since I've added so many parameters as time and needs went by...
It uses standard image manipulation syntax, just like in your test down there.
--British (talk) 10:16, 23 October 2013 (EDT)
- Template:Structure is a global infobox, since I've added so many parameters as time and needs went by...
There's really no need to separate the width and height of the items, as is it commonly understood. The items can also be rotated, which renders that detail moot. Keep it as 1x2, for instance.
Also, a max width of 220 for the infobox seems about right, as long as bigger items still enlarge that as needed...
--British (talk) 08:42, 24 October 2013 (EDT)
- Template its just template, we can always modify it... not tested big pics, max i used 192px or smaller
--AcDie (talk) 18:16, 24 October 2013 (EDT)
- * I insist that the "Tooltip" line is ludicrous, it should either be displayed as a caption, or not at all. That's why I added the Note parameter which you removed without an explanation...
* Regarding the width of 220px I mentionned, it's the width of the infobox, not of the images... and in the asset images I uploaded, some are bigger than that. The point of setting the infobox width to 220 is that all the boxes on all the pages will be shown equal.
* I also insist that there is absolutely no point in having a separate widths and heights for items, besides making things more complicated.
--British (talk) 05:52, 25 October 2013 (EDT)
- * I insist that the "Tooltip" line is ludicrous, it should either be displayed as a caption, or not at all. That's why I added the Note parameter which you removed without an explanation...
- I understand how the "Tooltip" field is used in that infobox, but it's the term tooltip I'm fighting against. By definition, a tooltip is something that is displayed when hovering the cursor above an element. That's why "Note" made more sense (until we can figure out why the tooltip isn't working out as a proper tooltip.
Usingimage = [[File:image.png|Some text]]
is NOT the proper way to do it... we should have just like in [my template]:{{!}} class="infobox-image" colspan="2" align="center" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]]
This makes use of:image = some_image.png
imagecaption = Some tooltip
Which brings me to another subject: as much as it's easier to fill in pages, I don't think it's optimal to have the name of the image be taken out of the name of the page, and forcingimage = [[File:image.png]]
into the call to the template is not clean either... What's wrong with naming a specific file as I shown above (image = some_image.png
) ?!
--British (talk) 07:24, 25 October 2013 (EDT)
- I understand how the "Tooltip" field is used in that infobox, but it's the term tooltip I'm fighting against. By definition, a tooltip is something that is displayed when hovering the cursor above an element. That's why "Note" made more sense (until we can figure out why the tooltip isn't working out as a proper tooltip.
After test
It may work, but the caption is not a parameter(such as image, type), and so it's not straight-forward to use...
--British (talk) 08:45, 24 October 2013 (EDT)