Difference between revisions of "Template talk:Item infobox"

From RimWorld Wiki
Jump to navigation Jump to search
(Created page with "I can't seem to be able to have caption/tooltip on the image (as the "Tooltip" parameter is not useful... as a parameter).<br>Help !<br>--~~~~ ----")
 
(→‎Size: new section)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
I can't seem to be able to have caption/tooltip on the image (as the "Tooltip" parameter is not useful... as a parameter).<br>Help !<br>--[[User:British|British]] ([[User talk:British|talk]]) 09:12, 23 October 2013 (EDT)
 
I can't seem to be able to have caption/tooltip on the image (as the "Tooltip" parameter is not useful... as a parameter).<br>Help !<br>--[[User:British|British]] ([[User talk:British|talk]]) 09:12, 23 October 2013 (EDT)
 
----
 
----
 +
: as i understand you want <pre><img src="..." alt="Tooltip here"></img></pre> when your mouse at image right [[File:Template-info.png|Tooltip test]] --[[User:AcDie|AcDie]] ([[User talk:AcDie|talk]]) 09:29, 23 October 2013 (EDT)
 +
----
 +
:: Not quite.<br>My [[Template:Structure|Infobox template]] makes use of ''imagecaption'', and it does work.<br>I can't make it to work on your infobox, though.<br>--[[User:British|British]] ([[User talk:British|talk]]) 09:41, 23 October 2013 (EDT)
 +
----
 +
:::Looking at [[Template:Structure]] and I can't understand what role it performs, like caption for youtube videos at frontpage? --[[User:AcDie|AcDie]] ([[User talk:AcDie|talk]]) 09:59, 23 October 2013 (EDT)
 +
:::: True ALT html tag..
 +
----
 +
::::: [[Template:Structure]] is a global infobox, since I've added so many parameters as time and needs went by...<br>It uses standard image manipulation [https://www.mediawiki.org/wiki/Help:Images#Syntax syntax], just like in your [[Template_talk:Item_infobox#Test|test]] down there.<br>--[[User:British|British]] ([[User talk:British|talk]]) 10:16, 23 October 2013 (EDT)
 +
----
 +
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.<br>Also, a max width of 220 for the infobox seems about right, as long as bigger items still enlarge that as needed...<br>--[[User:British|British]] ([[User talk: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<br>--[[User:AcDie|AcDie]] ([[User talk: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 '''[http://ludeon.com/rimworld/wiki/index.php?title=Template:Item_infobox&curid=557&diff=1122&oldid=1120 Note parameter]''' which you '''[http://ludeon.com/rimworld/wiki/index.php?title=Template:Item_infobox&curid=557&diff=1268&oldid=1265 removed]''' without an explanation...<br>* 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.<br>* I also insist that there is absolutely no point in having a separate widths and heights for items, besides making things more complicated.<br>--[[User:British|British]] ([[User talk:British|talk]]) 05:52, 25 October 2013 (EDT)
 +
----
 +
::: Tooltip is short info, all other important information better place as raw text (Or if info/description too long), also i'm sorry for "Note" was deleted by accident :P. We merge "width" & "height" filds little later. Anyway in plans rebuild this template. <br>--[[User:AcDie|AcDie]] ([[User talk:AcDie|talk]]) 06:38, 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 [http://en.wikipedia.org/wiki/Tooltip 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.<br>Using <code><nowiki>image = [[File:image.png|Some text]]</nowiki></code> is '''NOT''' the proper way to do it... we should have just like in ['''[[Template:Structure|my template]]''']:<br><code><nowiki>{{!}} class="infobox-image" colspan="2" align="center" {{!}} [[File:{{{image}}}|{{{imagewidth|210}}}px|{{{imagecaption|}}}]]</nowiki></code><br>This makes use of:
 +
:::* <code>image = some_image.png</code>
 +
:::* <code>imagecaption = Some tooltip</code>
 +
:::<br>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 forcing <code><nowiki>image = [[File:image.png]]</nowiki></code> into the call to the template is not clean either... What's wrong with naming a specific file as I shown above (<code>image = some_image.png</code>) ?!<br>--[[User:British|British]] ([[User talk:British|talk]]) 07:24, 25 October 2013 (EDT)
 +
----
 +
==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...<br>--[[User:British|British]] ([[User talk:British|talk]]) 08:45, 24 October 2013 (EDT)
 +
::Deal with it little later, we have issue at Main Page, <nowiki>__NOTITLE__</nowiki> shows <br>--[[User:AcDie|AcDie]] ([[User talk:AcDie|talk]]) 09:14, 24 October 2013 (EDT)
 +
 +
== Size ==
 +
 +
We really need to change the infobox's sizes. It's way too big right now: too much width (I don't know what the "em" is about), too much height, the spacing between the lines should be smaller, and the black bar (formerly "info") should be half thin (or even a third)...<br>--[[User:British|British]] ([[User talk:British|talk]]) 06:54, 28 October 2013 (EDT)

Latest revision as of 10:54, 28 October 2013

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 Tooltip test --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)

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

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)

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)

Tooltip is short info, all other important information better place as raw text (Or if info/description too long), also i'm sorry for "Note" was deleted by accident :P. We merge "width" & "height" filds little later. Anyway in plans rebuild this template.
--AcDie (talk) 06:38, 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.
Using image = [[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 forcing image = [[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)

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)

Deal with it little later, we have issue at Main Page, shows
--AcDie (talk) 09:14, 24 October 2013 (EDT)

Size

We really need to change the infobox's sizes. It's way too big right now: too much width (I don't know what the "em" is about), too much height, the spacing between the lines should be smaller, and the black bar (formerly "info") should be half thin (or even a third)...
--British (talk) 06:54, 28 October 2013 (EDT)