Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

Module talk:Infobox

From Minecraft Wiki
Jump to: navigation, search

Missing images[edit]

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

Inventory image separators[edit]

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
		end
		table.insert( invImages, grid{ image, link = 'none' } )
	end
end

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
Contribs
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
Contribs
12:03, 24 July 2015 (UTC)
Thanks. It looks reasonable. There’s my test:
Test
No image.svg
{{#invoke:Infobox|infobox
|title=Test
|invimage=Oak Wood
|invimage2=Birch Wood
|invimage3=----
|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
Contribs
15:09, 25 July 2015 (UTC)
Thanks. — Agent NickTheRed37 (talk) 18:03, 25 July 2015 (UTC)
Test
No image.svg
Chain Helmet
Chain Chestplate
Chain Leggings
Chain Boots
Test
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[edit]

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)