Difference between revisions of "Template:InfoBox block"
Template page
Views
Actions
Namespaces
Variants
Tools
m (Add author) |
(Remove hardness and type) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> | ||
{{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} {{#if:{{{image_desc|}}}|<div class="infobox-imgdesc">{{{image_desc}}}</div>}} | {{#if:{{{image|}}}|<div class="infobox-image">[[File:{{{image}}}|250px]]</div>}} {{#if:{{{image_desc|}}}|<div class="infobox-imgdesc">{{{image_desc}}}</div>}} | ||
{{#if:{{{general_category|}}}|<div class="infobox-category"> | {{#if:{{{general_category|}}}|<div class="infobox-category">General Information</div>}} | ||
<table> | <table> | ||
{{#if:{{{id|}}}|<tr> | {{#if:{{{id|}}}|<tr> | ||
Line 12: | Line 12: | ||
<th>Item Group</th> | <th>Item Group</th> | ||
<td>{{{item_group}}}</td> | <td>{{{item_group}}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{transparent|}}}|<tr> | {{#if:{{{transparent|}}}|<tr> | ||
<th>Transparent</th> | <th>Transparent</th> | ||
<td>{{{transparent}}}</td> | <td>{{{transparent}}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{light_level|}}}|<tr> | {{#if:{{{light_level|}}}|<tr> | ||
Line 29: | Line 21: | ||
<td>{{{light_level}}}</td> | <td>{{{light_level}}}</td> | ||
</tr>}} | </tr>}} | ||
</table> | |||
{{#if:{{{other_category|}}}|<div class="infobox-category">Other Information</div>}} | |||
<table> | |||
{{#if:{{{since|}}}|<tr> | {{#if:{{{since|}}}|<tr> | ||
<th>Added in</th> | <th>Added in</th> | ||
Line 36: | Line 31: | ||
<th>Created by</th> | <th>Created by</th> | ||
<td>{{{author}}}</td> | <td>{{{author}}}</td> | ||
</tr>}} | |||
{{#if:{{{assets|}}}|<tr> | |||
<th>Assets by</th> | |||
<td>{{{assets}}}</td> | |||
</tr>}} | </tr>}} | ||
</table> | </table> | ||
Line 48: | Line 47: | ||
|general_category = General Information | |general_category = General Information | ||
|id = jsblock:water_machine_1 | |id = jsblock:water_machine_1 | ||
|light_level = 15 | |light_level = 15 | ||
|transparent = Yes | |transparent = Yes | ||
|other_category = Other Information | |||
|since = 1.0.0 | |since = 1.0.0 | ||
|author = LX86 | |author = LX86 | ||
|assets = 1081MTR | |||
}} | }} | ||
Line 73: | Line 72: | ||
"label": "Image description", | "label": "Image description", | ||
"description": "Image description", | "description": "Image description", | ||
"type": "string" | |||
}, | |||
"general_category": { | |||
"label": "General Category", | |||
"description": "General Category", | |||
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 84: | Line 88: | ||
"label": "Item Group", | "label": "Item Group", | ||
"description": "Item Group in creative menu", | "description": "Item Group in creative menu", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
Line 96: | Line 94: | ||
"description": "Whether Light passes through this block (Yes/No)", | "description": "Whether Light passes through this block (Yes/No)", | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"light_level": { | "light_level": { | ||
Line 106: | Line 99: | ||
"description": "Light level of the block", | "description": "Light level of the block", | ||
"type": "number" | "type": "number" | ||
}, | |||
"other_category": { | |||
"label": "Other Category", | |||
"description": "Other Category", | |||
"type": "string" | |||
}, | }, | ||
"since": { | "since": { | ||
Line 116: | Line 114: | ||
"label": "Author", | "label": "Author", | ||
"description": "The original creator of the block", | "description": "The original creator of the block", | ||
"type": "string" | |||
}, | |||
"assets": { | |||
"label": "Assets", | |||
"description": "Texture/Model Creator", | |||
"type": "string" | "type": "string" | ||
} | } |
Latest revision as of 21:35, 31 January 2024
Block Name
Insert block images
General Information
Block ID | jsblock:water_machine_1 |
---|---|
Transparent | Yes |
Light Level | 15 |
Other Information
Added in | v1.0.0 |
---|---|
Created by | LX86 |
Assets by | 1081MTR |
Infobox template for a JCM block
Parameter | Description | Type | Status | |
---|---|---|---|---|
Block Name | title | Name of the block | String | optional |
Image | image | Image name | String | optional |
Image description | image_desc | Image description | String | optional |
General Category | general_category | General Category | String | optional |
Block ID | id | The block ID of the block | String | required |
Item Group | item_group | Item Group in creative menu | String | optional |
Transparent | transparent | Whether Light passes through this block (Yes/No) | String | optional |
Light Level | light_level | Light level of the block | Number | optional |
Other Category | other_category | Other Category | String | optional |
Version | since | JCM Version that this block is added | Number | required |
Author | author | The original creator of the block | String | optional |
Assets | assets | Texture/Model Creator | String | optional |