![]() |
VOOZH | about |
Can it be made so that missing images will link to uploading the file? 71.212.10.80 17:12, 7 June 2015 (UTC)
Bringing in the discussion about invimage split in Talk:Stained Terracotta#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)
{{#invoke:Infobox|infobox
|title=Test
|invimage=Oak Wood
|invimage2=Birch Wood
|invimage3=----
|invimage4=Oak Wood Planks
|invimage5=Birch Wood Planks
}}
Here are some more tests.
β Sealbudsman (Aaron) π Image
T/C 05:19, 26 July 2015 (UTC)
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)
Recently myself and some other users have been adding tabs to show block variants in infoboxes to improve the reader experience. This obviously can be quite a long list in cases like Wool with 16 colors. A solution I have seen on other wiki's is to dynamically change from tabs to a drop down selector if the infobox has too many tabs. I think we would benefit from a similar approach, as having all the options in infobox allows for graceful handling of redirects such as Purple Wool, or Yellow Wool automatically showing their correct color. I will be working towards this feature, although I am not yet familiar with the modules here. Mudscape (talk) 17:55, 29 September 2023 (UTC)
haii~ :3
is there any specific reason that this module isn't like the one on wikipedia?
cuz i prefer this simple syntax instead of the current one on the minecraft wiki and would like to update it in a potential azerbaijani translation, and i wonder whether doing this would affect working infoboxes. tia :3 ΙkrΙm. 16:33, 29 October 2024 (UTC)
Please. -- Simanelix (T|C) 20:06, 6 August 2025 (UTC)
'<div class="infobox notaninfobox ' .. ( args.infoboxclass or '" ) .. '">'.'<div class="infobox notaninfobox ' .. ( args.style and 'style="' .. args.style .. '" ' or '" ) .. ( args.infoboxclass or '" ) .. '">'. -- Simanelix (T|C) 21:21, 6 August 2025 (UTC)