Missing images
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
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) 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? –Majr ᐸ Talk
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)
- I'm not decided if I really like it or not. What use-cases are there? –Majr ᐸ Talk
{{#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)
- — Agent NickTheRed37 (talk) 12:13, 24 July 2015 (UTC)
- I've halved the spacing. –Majr ᐸ Talk
Contribs 15:09, 25 July 2015 (UTC)- Thanks. — Agent NickTheRed37 (talk) 18:03, 25 July 2015 (UTC)
- I've halved the spacing. –Majr ᐸ Talk
Here are some more tests. – Sealbudsman (Aaron) 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)