Difference between revisions of "Template:Node Data"

From Minetest Wiki
Jump to navigation Jump to search
(Update example)
(added itemstring to template (is only shown if defined))
Line 17: Line 17:
 
|-
 
|-
 
| '''Stackable''' || {{{stackable|Yes (99)}}}
 
| '''Stackable''' || {{{stackable|Yes (99)}}}
|}</includeonly>
+
{{#if: {{{itemstring}}} |
 +
|-
 +
| '''Itemstring''' || {{{itemstring}}}
 +
}}
 +
|}
 +
 
 +
</includeonly>
 
<noinclude>
 
<noinclude>
 
== Examples ==
 
== Examples ==
Line 27: Line 33:
 
  <nowiki>{{Block Data | image=Dirt.png | name=Dirt}}</nowiki>
 
  <nowiki>{{Block Data | image=Dirt.png | name=Dirt}}</nowiki>
 
|{{Block Data | image=Dirt.png | name=Dirt}}
 
|{{Block Data | image=Dirt.png | name=Dirt}}
 +
|-
 +
|
 +
<nowiki>{{Block Data
 +
| image=Sand.png
 +
| name=Sand
 +
| physics = Yes
 +
| itemstring = default:sand }}</nowiki>
 +
|{{Block Data | image=Sand.png | name=Sand | physics = Yes | itemstring = default:sand }}
 
|}
 
|}
 
</noinclude>
 
</noinclude>

Revision as of 20:50, 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)