Difference between revisions of "Template:Node Data"

From Minetest Wiki
Jump to navigation Jump to search
(added itemstring to template (is only shown if defined))
(fixed itemstring parsing)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="float: right; margin: 0 0 0.5em 1.5em" width="{{{width|200px}}}"
+
<includeonly>
 +
{| class="wikitable" style="float: right; margin: 0 0 0.5em 1.5em" width="{{{width|200px}}}"
 
!align="center" colspan="2"|[[File:{{{image}}}|150px|150px]]
 
!align="center" colspan="2"|[[File:{{{image}}}|150px|150px]]
 
|-
 
|-
Line 17: Line 18:
 
|-
 
|-
 
| '''Stackable''' || {{{stackable|Yes (99)}}}
 
| '''Stackable''' || {{{stackable|Yes (99)}}}
{{#if: {{{itemstring}}} |
+
{{#if: {{{itemstring | }}} |
|-
+
{{!}}-
| '''Itemstring''' || {{{itemstring}}}
+
{{!}} '''Itemstring''' {{!}}{{!}} {{{itemstring}}} | }}
}}
 
 
|}
 
|}
  

Revision as of 21:04, 2 October 2013


Examples

source output
{{Block Data | image=Dirt.png | name=Dirt}}
Dirt.png
Dirt
Type Solid Block
Physics No
Luminance No
Flammable No
Generated Yes
Renewable Yes
Stackable Yes (99)


{{Block Data
| image=Sand.png
| name=Sand
| physics = Yes
| itemstring = default:sand }}
Sand.png
Sand
Type Solid Block
Physics Yes
Luminance No
Flammable No
Generated Yes
Renewable Yes
Stackable Yes (99)
Itemstring default:sand