Difference between revisions of "Template:Node Data"

From Luanti Wiki
Jump to navigation Jump to search
(fixed itemstring parsing)
 
(39 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}}}}}}
| '''Physics''' || {{{physics|No}}}
+
|drops={{{drops|''Itself''}}}
|-
+
|physics={{{physics|No}}}
| '''Luminance''' || {{{luminance|No}}}
+
|luminance={{{luminance|No}}}
|-
+
|flammable={{{flammable|No}}}
| '''Flammable''' || {{{flammable|No}}}
+
|generated={{{generated|Yes}}}
|-
+
|renewable={{{renewable|No}}}
| '''Generated''' || {{{generated|Yes}}}
+
|stackable={{{stackable|Yes (99)}}}
|-
+
|itemstring={{{itemstring|''?''}}}
| '''Renewable''' || {{{renewable|Yes}}}
+
}}<noinclude>
|-
+
<pre>
| '''Stackable''' || {{{stackable|Yes (99)}}}
+
{{Block Data
{{#if: {{{itemstring | }}} |
+
|name=A Block
{{!}}-
+
|image=Image.png
{{!}} '''Itemstring''' {{!}}{{!}} {{{itemstring}}}  | }}
+
|wherein=[[Mods/xPanes|xPanes]]
|}
+
|type=Liquid
 +
|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