Difference between revisions of "Template talk:Item infobox"

From RimWorld Wiki
Jump to navigation Jump to search
m
Line 11: Line 11:
 
----
 
----
 
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)
 
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)
==Test==
+
----
{{Structure
+
: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)
| title = Grave
+
----
| image = GraveFull.png
 
| imagewidth = 128
 
| imagecaption = test imagecaption
 
| size = 2x1
 
}}
 
 
 
<br>
 
<code><a href="/rimworld/wiki/File:GraveFull.png" class="image"</code> '''title="test imagecaption"'''<code>>
 
<img</code> '''alt="test imagecaption"''' <code>src="/rimworld/wiki/images/thumb/6/6f/GraveFull.png/128px-GraveFull.png" width="128" height="96" srcset="/rimworld/wiki/images/thumb/6/6f/GraveFull.png/192px-GraveFull.png 1.5x, /rimworld/wiki/images/6/6f/GraveFull.png 2x"></code>
 
--[[User:AcDie|AcDie]] ([[User talk:AcDie|talk]]) 10:05, 23 October 2013 (EDT)
 
{{clr}}
 
 
 
== Test 2 ==
 
 
 
<onlyinclude>
 
{{item infobox
 
| name = Accele-potato plant
 
| image = [[File:Plant_PotatoPlant.png|It Works!]]
 
| type = Plants
 
}}
 
</onlyinclude>
 
{{clr}}
 
  
 +
----
 +
----
 +
==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)
 
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, <code>__NOTITLE__</code> shows --[[User:AcDie|AcDie]] ([[User talk:AcDie|talk]]) 09:14, 24 October 2013 (EDT)
+
::Deal with it little later, we have issue at Main Page, <code>__NOTITLE__</code> shows <br>--[[User:AcDie|AcDie]] ([[User talk:AcDie|talk]]) 09:14, 24 October 2013 (EDT)

Revision as of 22:16, 24 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)



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)