Template:BlockInfo: Difference between revisions

From NodeCore Wiki
Jump to navigation Jump to search
(A test of the Template system.)
 
m (Update stack_max)
 
(26 intermediate revisions by 2 users not shown)
Line 3: Line 3:
! colspan="2" style="font-size:120%; padding:0.5em; background-color: #2e9b96; color: #FFFFFF; border: 3px solid #83efe3; -khtml-border-radius: .7em; -icab-border-radius: .7em; -o-border-radius: .7em; -moz-border-radius:.7em"  class="color1" | {{{name|{{BASEPAGENAME}}}}}<!--border-radius: .7em; -webkit-border-radius: .7em; -->
! colspan="2" style="font-size:120%; padding:0.5em; background-color: #2e9b96; color: #FFFFFF; border: 3px solid #83efe3; -khtml-border-radius: .7em; -icab-border-radius: .7em; -o-border-radius: .7em; -moz-border-radius:.7em"  class="color1" | {{{name|{{BASEPAGENAME}}}}}<!--border-radius: .7em; -webkit-border-radius: .7em; -->
|-
|-
| colspan="2" style="padding:0.5em; text-align:center;" | [[File:{{#if: {{{image|}}} | {{{image|}}} | {{#ifexist: File:{{BASEPAGENAME}}.png | {{BASEPAGENAME}}.png | {{{name}}}.png }}}} | {{#if: {{{imgsize|}}} | | frameless}} | {{#if: {{{imgsize|}}}|{{{imgsize|}}}|150px}}]]
| colspan="2" style="padding:0.5em; text-align:center;" | [[File:{{{image|{{BASEPAGENAME}}.jpg}}}|200px|alt="A picture of {{{image|{{BASEPAGENAME}}}}}"]]
|-
|-
! colspan="2" style="font-size:120%; padding:0.1em; background-color: #2e9b96; color: #FFFFFF; border: 3px solid #83efe3; -khtml-border-radius: .7em; -icab-border-radius: .7em; -o-border-radius: .7em; -moz-border-radius:.7em"  class="color1" | Statistics
! colspan="2" style="font-size:120%; padding:0.1em; background-color: #2e9b96; color: #FFFFFF; border: 3px solid #83efe3; -khtml-border-radius: .7em; -icab-border-radius: .7em; -o-border-radius: .7em; -moz-border-radius:.7em"  class="color1" | Statistics
|-
| '''[[mcw:Breaking#Speed|Hardness]]'''
| {{#if: {{{hardness|}}}
| {{{hardness}}}
| ? {{#if: {{NAMESPACE}} | | [[Category:Pages missing hardness stat]]}}
}}
|-
| '''[[mcw:Explosion#Effect|Blast resistance]]'''
| {{#if: {{{blastresistance|}}}
| {{{blastresistance}}}
| ? {{#if: {{NAMESPACE}} | | [[Category:Pages missing blast resistance stat]]}}
}}
|-
{{#if: {{{transparent|}}}{{{transparency|}}}|
{{!}} '''[[mcw:Opacity|Transparent]]'''
{{!}} {{{transparent|}}}{{{transparency|}}}
}}
|-
{{#if: {{{luminance|}}}|
{{!}} '''[[mcw:Light|Luminance]]'''
{{!}} {{{luminance}}}
}}
|-


{{#if: {{{flammable|}}}{{{flamability|}}}|
{{!}} '''Flammable'''
{{!}} {{{flammable|}}}{{{flamability|}}}
}}
|-
|-
{{!}}'''Flammable'''
{{!}}{{{flammable|No}}}


{{#if: {{{renewable|}}}|
{{!}} '''Renewable'''
{{!}} {{{renewable}}}
}}
|-
|-
{{!}}'''Stackable?'''
{{!}}{{{stackable|Yes (100)}}}


{{#if: {{{stackable|}}}|
{{!}} '''Stackable'''
{{!}} {{{stackable}}}
}}
|-
|-
{{!}}'''Affected by gravity?'''
{{!}}{{{gravity|Yes}}}


{{#if: {{{tool|}}}|
{{!}} '''Tool'''
{{!}} {{{tool}}}
}}
|-
|-


{{#if: {{{drops|}}}|
{{!}} '''Drops'''
{{!}} {{{drops}}}
}}
|-


{{#if: {{{id|}}}|
</includeonly>
{{!}} '''ID'''
{{!}} {{{id}}}
}}
|-


{{#if: {{{versionadded|}}}|
<noinclude>
{{!}} '''Version added'''
This is the template page for defining the properties and information of a node. To include this in your page, please paste this into your page: <br>
{{!}} {{{versionadded}}}
<pre>
}}
{{BlockInfo
 
|name (optional, title of the block)
|-
|image (optional, filename of image to use)
|}
|flammable
{{#switch: {{lc: {{{renewable}}} }}
|stackable
|yes = [[Category:Renewable resources]]
|gravity
|no = [[Category:Nonrenewable resources]]
}}
}}
[[Category:Blocks]]</includeonly><noinclude>
</pre>
<templatedata>
{
"params": {
"name": {},
"image": {},
"imgsize": {},
"hardness": {
"label": "Hardness",
"type": "number",
"suggested": true
},
"blastresistance": {
"label": "Blast resistance",
"type": "number",
"suggested": true
},
"transparent": {
"aliases": [
"transparency"
],
"label": "Transparent",
"description": "Whether or not the block is transparent.",
"type": "string"
},
"transparency": {
"type": "string",
"deprecated": "\"transparent\" might be clearer"
},
"luminance": {
"label": "Luminance",
"description": "The light level emitted, if any",
"type": "number"
},
"flammable": {
"aliases": [
"flamability"
],
"label": "Flammable",
"description": "Whether the block is flammable.",
"type": "string"
},
"flamability": {
"type": "string",
"deprecated": "Misspelling"
},
"renewable": {
"label": "Renewable",
"description": "Whether the block is renewable.",
"type": "string"
},
"stackable": {
"label": "Stackable",
"description": "Whether a block is stackable, and how much it can stack.",
"type": "string"
},
"tool": {
"label": "Tool required",
"description": "Tool required to mine the block.",
"type": "string"
},
"drops": {
"label": "Drops",
"description": "Items/blocks dropped from mining the block.",
"type": "string"
},
"id": {
"label": "ID",
"description": "Name ID of the block. For 1.12+, it should begin with \"aoa3:\"",
"type": "string"
},
"versionadded": {
"label": "Version added",
"description": "Version the block was added.",
"type": "string"
}
},
"description": "Infobox template used on block pages.",
"format": "\n{{_\n|_=_\n}}\n"
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 21:04, 11 August 2022


This is the template page for defining the properties and information of a node. To include this in your page, please paste this into your page:

{{BlockInfo
|name (optional, title of the block)
|image (optional, filename of image to use)
|flammable
|stackable
|gravity
}}