(→changing imagesize to 160px: new section) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 114: | Line 114: | ||
The image divs could display:inline-block, the <code>.infobox-imagearea > div:not(:first-child)</code> 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. – [[User:Sealbudsman| Sealbudsman]] <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;"><sup>[[User talk:Sealbudsman|talk]]</sup>/<sub>[[Special:Contributions/Sealbudsman|contr]]</sub></span> 19:12, 8 July 2016 (UTC) |
The image divs could display:inline-block, the <code>.infobox-imagearea > div:not(:first-child)</code> 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. – [[User:Sealbudsman| Sealbudsman]] <span style="transform: rotate(-16deg); display: inline-block; top: -1px; position: relative;"><sup>[[User talk:Sealbudsman|talk]]</sup>/<sub>[[Special:Contributions/Sealbudsman|contr]]</sub></span> 19:12, 8 July 2016 (UTC) |
||
− | |||
− | == changing imagesize to 160px == |
||
− | |||
− | Since every item render is in 160x160px, the imagesize should be updated to 160px, otherwise the images look blurry. |
||
− | Example [https://i.imgur.com/S5dUrTJ.png 160px] [https://i.imgur.com/jldVbUV.png 150px] <span class="nowrap"><!-- [[Datei:ChickenSig.png|link=Benutzer:ILeonx]]--> <font face="Ubuntu">'''[[:de:Benutzer:ILeonx|ILeon]]''' ᐸ <small style="display:inline-block;line-height:1em;vertical-align:-0.4em">[[:de:Benutzer Diskussion:ILeonx|Talk]]<br>[[:de:Spezial:Beiträge/ILeonx|Contribs]]</small></span></font> - '''<small>de.Wiki Admin</small>''' 17:23, 13 April 2020 (UTC) |
Revision as of 19:08, 3 May 2020
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)