VOOZH about

URL: https://minecraft.wiki/w/Module_talk:Infobox

⇱ Module talk:Infobox – Minecraft Wiki


Module talk:Infobox

From Minecraft Wiki
Latest comment: 6 August 2025 by Simanelix in topic Add style parameter
Jump to navigation Jump to search

Missing images

[edit source]
Latest comment: 7 June 20151 comment1 person in discussion

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 source]
Latest comment: 26 July 201511 comments3 people in discussion

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)

I vote πŸ‘ Image
 Yes, either one. – Sealbudsman (Aaron) πŸ‘ Image
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)
Well I'll add it so we can try it, and see if it is agreeable. –Majr ᐸ Talk
Contribs
12:03, 24 July 2015 (UTC)
Thanks. It looks reasonable. There’s my test:
{{#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. –Majr ᐸ Talk
Contribs
15:09, 25 July 2015 (UTC)
Thanks. β€” Agent NickTheRed37 (talk) 18:03, 25 July 2015 (UTC)
Test
Test
πŸ‘ Invicon White Terracotta.png: Sprite image for White Terracotta in Minecraft
πŸ‘ Invicon Orange Terracotta.png: Sprite image for Orange Terracotta in Minecraft
πŸ‘ Invicon Magenta Terracotta.png: Sprite image for Magenta Terracotta in Minecraft
πŸ‘ Invicon Light Blue Terracotta.png: Sprite image for Light Blue Terracotta in Minecraft
πŸ‘ Invicon Yellow Terracotta.png: Sprite image for Yellow Terracotta in Minecraft
πŸ‘ Invicon Lime Terracotta.png: Sprite image for Lime Terracotta in Minecraft
πŸ‘ Invicon Pink Terracotta.png: Sprite image for Pink Terracotta in Minecraft
πŸ‘ Invicon Gray Terracotta.png: Sprite image for Gray Terracotta in Minecraft
πŸ‘ Invicon Light Gray Terracotta.png: Sprite image for Light Gray Terracotta in Minecraft
πŸ‘ Invicon Cyan Terracotta.png: Sprite image for Cyan Terracotta in Minecraft
πŸ‘ Invicon Purple Terracotta.png: Sprite image for Purple Terracotta in Minecraft
πŸ‘ Invicon Blue Terracotta.png: Sprite image for Blue Terracotta in Minecraft
πŸ‘ Invicon Brown Terracotta.png: Sprite image for Brown Terracotta in Minecraft
πŸ‘ Invicon Green Terracotta.png: Sprite image for Green Terracotta in Minecraft
πŸ‘ Invicon Red Terracotta.png: Sprite image for Red Terracotta in Minecraft
πŸ‘ Invicon Black Terracotta.png: Sprite image for Black Terracotta in Minecraft

Here are some more tests. – Sealbudsman (Aaron) πŸ‘ Image
T/C 05:19, 26 July 2015 (UTC)

Parameter for floating images left-to-right

[edit source]
Latest comment: 8 July 20161 comment1 person in discussion

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)

Tabs and dropdowns

[edit source]
Latest comment: 29 September 20231 comment1 person in discussion

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)

infobox on wikipedia

[edit source]
Latest comment: 29 October 20241 comment1 person in discussion

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)

Add style parameter

[edit source]
Latest comment: 6 August 20255 comments2 people in discussion

Please. -- Simanelix (T|C) 20:06, 6 August 2025 (UTC)

Can you be more descriptive? Mudscape πŸ‘ Image
talk
20:43, 6 August 2025 (UTC)
Yes. I want a style param that adds style to '<div class="infobox notaninfobox ' .. ( args.infoboxclass or '" ) .. '">'.
So, '<div class="infobox notaninfobox ' .. ( args.style and 'style="' .. args.style .. '" ' or '" ) .. ( args.infoboxclass or '" ) .. '">'. -- Simanelix (T|C) 21:21, 6 August 2025 (UTC)
And what is the intended use case? Mudscape πŸ‘ Image
talk
21:31, 6 August 2025 (UTC)
To remove the margin on the left side of the infobox on my userpage. -- Simanelix (T|C) 21:48, 6 August 2025 (UTC)
Retrieved from "https://minecraft.wiki/w/Module_talk:Infobox?oldid=3419061"

Navigation menu