Minecraft Wiki
Minecraft Wiki

Missing images[]

Can it be made so that missing images will link to uploading the file? 17:12, 7 June 2015 (UTC)

Inventory image separators[]

Bringing in the discussion about invimage split in Talk:Stained Clay#Merge back. We should be able to make splits in inventory image lists (like this), by being able to give the module something like |invimagex=-. The module should be adjusted by adding the appropriate if/else clause.

for k, v in ipairs( invImgCount ) do
	if image == '-' then
		table.insert(invImages, '<br>')
	elseif image then
		if not grid then
			grid = require( 'Module:Grid' ).cell
		table.insert( invImages, grid{ image, link = 'none' } )

Instead of that <br> we can also use something like <div style="padding-bottom: 1en"/>.

— Agent NickTheRed37 (talk) 16:53, 15 June 2015 (UTC)

I vote  Yes, either one. – Sealbudsman (Aaron) SealbudsmanFace.png T/C 17:08, 15 June 2015 (UTC)
Majr? — Agent NickTheRed37 (talk) 17:51, 22 July 2015 (UTC)
I'm not decided if I really like it or not. What use-cases are there? MajrTalk
09:21, 23 July 2015 (UTC)
For example this, where normal hardened clay is separate from stained clay. Also perhaps splitting full sets of armor of different materials. — Agent NickTheRed37 (talk) 14:06, 23 July 2015 (UTC)
Well I'll add it so we can try it, and see if it is agreeable. MajrTalk
12:03, 24 July 2015 (UTC)
Thanks. It looks reasonable. There’s my test:
No image.svg
|invimage=Oak Wood
|invimage2=Birch Wood
|invimage4=Oak Wood Planks
|invimage5=Birch Wood Planks
— Agent NickTheRed37 (talk) 12:13, 24 July 2015 (UTC)
Actually, I think it is too wide of a split. — Agent NickTheRed37 (talk) 12:14, 24 July 2015 (UTC)
I've halved the spacing. MajrTalk
15:09, 25 July 2015 (UTC)
Thanks. — Agent NickTheRed37 (talk) 18:03, 25 July 2015 (UTC)
No image.svg
No image.svg

Here are some more tests. – Sealbudsman (Aaron) SealbudsmanFace.png T/C 05:19, 26 July 2015 (UTC)

Parameter for floating images left-to-right[]

Can we make a parameter so that images can be set to float left-to-right? Use cases I can think of off-hand: Wither#Wither skull for the black and blue skulls, Hardened Clay, Flower, Zombie, Skeleton, Diorite and the other new stones.

The image divs could display:inline-block, the .infobox-imagearea > div:not(:first-child) could be padding-left rather than padding-top, and padding-top would be 0. Then, setting the images' size parameters from 150 to 125 or so would let them fit side-by-side. – Sealbudsman talk/contr 19:12, 8 July 2016 (UTC)