Template:Infobox block: Difference between revisions
m excellent, no visible issues. some minor tweaks, will rewrite the rest tomorrow |
Attempting automatic inv image from crafting square. |
||
| Line 4: | Line 4: | ||
{{#if:{{{image2|}}}|[[File:{{{image2}}}|150px|center]]}} | {{#if:{{{image2|}}}|[[File:{{{image2}}}|150px|center]]}} | ||
{{#if:{{{image3|}}}|[[File:{{{image3}}}|150px|center]]}} | {{#if:{{{image3|}}}|[[File:{{{image3}}}|150px|center]]}} | ||
{{#if:{{{invimage|}}}|[[File:{{{invimage}}}|36px]] {{#if:{{{invimage2|}}}| [[File:{{{invimage2}}}|36px]] {{#if:{{{invimage3|}}}| [[File:{{{invimage3}}}|36px]]}} }} }} | {{#if:{{{invimage|Crafting square {{BASEPAGENAME}}.png}}}|[[File:{{{invimage}}}|36px]] {{#if:{{{invimage2|}}}| [[File:{{{invimage2}}}|36px]] {{#if:{{{invimage3|}}}| [[File:{{{invimage3}}}|36px]]}} }} }} | ||
| rows = | | rows = | ||
{{infobox row|label=Type|field={{{type|?}}}}} | {{infobox row|label=Type|field={{{type|?}}}}} | ||
| Line 80: | Line 80: | ||
| <code>image3</code> || Third image for three-state blocks (also approx. 150x150px) || ''None'' | | <code>image3</code> || Third image for three-state blocks (also approx. 150x150px) || ''None'' | ||
|- | |- | ||
| <code>invimage</code> || Image for object in inventory (should be approx. 36x36px) || | | <code>invimage</code> || Image for object in inventory, only needed to change from the crafting square image (should be approx. 36x36px) || <code><nowiki>Crafting square {{BASEPAGENAME}}.png</nowiki></code> | ||
|- | |- | ||
| <code>invimage2</code> || Second image for two-state objects in inventory (should be approx. 36x36px) || ''None'' | | <code>invimage2</code> || Second image for two-state objects in inventory (should be approx. 36x36px) || ''None'' | ||