Difference between revisions of "Template:Node Data"

From Minetest Wiki
Jump to navigation Jump to search
(changed the default value of “Renewable” to “Yes” because most blocks are not renewable.)
 
(36 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>
+
<noinclude>
{| class="wikitable" style="float: right; margin: 0 0 0.5em 1.5em" width="{{{width|200px}}}"
+
{{Documentation|content=
!align="center" colspan="2"|[[File:{{{image}}}|150px|150px]]
+
{{Languages}}
|-
+
{{Lua|Infobox|data=Infobox/en}}
! colspan="2" | {{{name | {{{block_name}}} }}}
+
</noinclude>{{#invoke:Infobox|block
|-
+
|name={{{name|{{{block_name|A block}}}}}}
| '''Type''' || {{{type | {{{block_type | Solid Block}}} }}}
+
|description=A [[Nodes|node]] in {{{wherein|[[Games/Minetest Game|Minetest Game]]}}}
|-
+
|type={{{type|{{{block_type|Full node}}}}}}
| '''Drops''' || {{{drops|''itself''}}}
+
|drops={{{drops|''Itself''}}}
|-
+
|physics={{{physics|No}}}
| '''Physics''' || {{{physics|No}}}
+
|luminance={{{luminance|No}}}
|-
+
|flammable={{{flammable|No}}}
| '''Luminance''' || {{{luminance|No}}}
+
|generated={{{generated|Yes}}}
|-
+
|renewable={{{renewable|No}}}
| '''Flammable''' || {{{flammable|No}}}
+
|stackable={{{stackable|Yes (99)}}}
|-
+
|itemstring={{{itemstring|''?''}}}
| '''Generated''' || {{{generated|Yes}}}
+
}}<noinclude>
|-
+
<pre>
| '''Renewable''' || {{{renewable|No}}}
+
{{Block Data
|-
+
|name=A Block
| '''Stackable''' || {{{stackable|Yes (99)}}}
+
|image=Image.png
{{#if: {{{itemstring | }}} |
+
|wherein=[[Mods/xPanes|xPanes]]
{{!}}-
+
|type=Liquid
{{!}} '''Itemstring''' {{!}}{{!}} {{{itemstring}}}  | }}
+
|drops=No
|}
+
|physics=No
 +
|luminance=No
 +
|generated=No
 +
|renewable=No
 +
|stackable=Yes (18)
 +
|itemstring=xpanes:a_block
 +
}}
 +
</pre>
  
</includeonly>
+
== See also ==
<noinclude>
+
{{Data see also}}
== Examples ==
+
 
{| class="wikitable"
+
[[Category:Templates]]
! source
+
}}
! output
 
|-
 
|
 
<nowiki>{{Block Data | image=Dirt.png | name=Dirt}}</nowiki>
 
|{{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>

Latest revision as of 10:34, 10 March 2024

Documentation icon.png Documentation
Languages Language: English • Deutsch • français • Bahasa Indonesia • Bahasa Melayu • русский
Lua logo.png This template uses Module:Infobox, with data stored in Module:Infobox/en.
Please see wikipedia:Wikipedia:Lua and mw:Extension:Scribunto to learn more.
A block
Blank.png
A node in Minetest Game
Node Type Full node
Drops Itself
Physics No
Luminance No
Flammable No
Generated Yes
Renewable No
Stackable Yes (99)
Itemstring ?
{{Block Data
|name=A Block
|image=Image.png
|wherein=[[Mods/xPanes|xPanes]]
|type=Liquid
|drops=No
|physics=No
|luminance=No
|generated=No
|renewable=No
|stackable=Yes (18)
|itemstring=xpanes:a_block
}}

See also