Template:Infobox block: Difference between revisions
patch-fixing the tool option, which was broken, even after typing in "pickaxe" in any spelling variation. edit the version before for what I replaced if you can fix it. |
Fixed the switch and added a note. |
||
| Line 13: | Line 13: | ||
{{Block/row|label=Transparency|field={{{transparent|?}}}}} | {{Block/row|label=Transparency|field={{{transparent|?}}}}} | ||
{{Block/row|label=Luminance|field={{{light|?}}}}} | {{Block/row|label=Luminance|field={{{light|?}}}}} | ||
{{Block/row|label=Tool | {{Block/row|label=Tool|field={{#switch:{{lc:{{{tool|{{{Tool}}}}}}}}|<!--- | ||
The images are set input side because the majority of pages use the images as value entered into the field. Not having them breaks it for those pages. And most pages reference {{{Tool}}} not {{{tool}}}, its case sensitive. | |||
--->|[[file:use-pickaxe.png]]|pick|pickaxe=[[File:Use-pickaxe.png]]<!--- | |||
--->|[[file:use-spade.png]]|spade|shovel=[[File:Use-spade.png]]<!-- | |||
--->|[[file:use-axe.png]]|axe=[[File:Use-axe.png]]<!-- | |||
--->|[[file:use-hoe.png]]|hoe|ho=[[File:Use-hoe.png]]<!-- | |||
--->|n/a|none=N/A<!-- | |||
--->|#default=?}} | |||
}} | |||
{{#switch:{{lc:{{{type}}}}}|fluid = | {{#switch:{{lc:{{{type}}}}}|fluid = | ||
{{Block/row|label=Speed of fluid movement:|field={{{fluidspeed|?}}}}} | {{Block/row|label=Speed of fluid movement:|field={{{fluidspeed|?}}}}} | ||
| Line 75: | Line 85: | ||
| <code>light</code> || Emits Light? || ? | | <code>light</code> || Emits Light? || ? | ||
|- | |- | ||
| <code> | | <code>tool</code> || Tool to use || ? | ||
|- | |- | ||
| <code>datadec</code> || Decimal Data Value || ? | | <code>datadec</code> || Decimal Data Value || ? | ||