The District of Joban Difference between revisions of "Template:InfoBox block"

Difference between revisions of "Template:InfoBox block"

Template page
m
Line 39: Line 39:
     <th>Created by</th>
     <th>Created by</th>
     <td>{{{author}}}</td>
     <td>{{{author}}}</td>
</tr>}}
</table>
{{#if:{{{technical_category|}}}|<div class="infobox-category">{{{technical_category}}}</div>}}
<table>
{{#if:{{{class|}}}|<tr>
    <th>Class Name</th>
    <td>v{{{class}}}</td>
</tr>}}
{{#if:{{{extends|}}}|<tr>
    <th>Extends</th>
    <td>v{{{extends}}}</td>
</tr>}}
{{#if:{{{implements|}}}|<tr>
    <th>Implement</th>
    <td>{{{implements}}}</td>
</tr>}}
</tr>}}
</table>
</table>
Line 130: Line 145:
             "label": "Author",
             "label": "Author",
             "description": "The original creator of the block",
             "description": "The original creator of the block",
            "type": "string"
        },
        "class_name": {
            "label": "Class Name",
            "description": "The internal class name",
            "type": "string"
        },
        "extends": {
            "label": "Extends",
            "description": "The class name that this block extends from",
            "type": "string"
        },
        "implements": {
            "label": "Implement",
            "description": "The class name that this block implements",
             "type": "string"
             "type": "string"
         }
         }

Revision as of 02:28, 18 August 2022


Block Name
JCM Water Machine.png
Insert block images
General Information
Block ID jsblock:water_machine_1
Type Multipart
Transparent Yes
Hardness 2.0
Light Level 15
Other Information
Added in v1.0.0
Created by LX86


Infobox template for a JCM block

Template parameters

ParameterDescriptionTypeStatus
Block Nametitle

Name of the block

Stringoptional
Imageimage

Image name

Stringoptional
Image descriptionimage_desc

Image description

Stringoptional
General Categorygeneral_category

General Category

Stringoptional
Block IDid

The block ID of the block

Stringrequired
Item Groupitem_group

Item Group in creative menu

Stringoptional
Type of the blocktype

Block/Directional Block/Multipart

Suggested values
Block Directional Block Multipart
Stringoptional
Transparenttransparent

Whether Light passes through this block (Yes/No)

Stringoptional
Hardnesshardness

Hardness/Strength of a block

Numberoptional
Light Levellight_level

Light level of the block

Numberoptional
Other Categoryother_category

Other Category

Stringoptional
Versionsince

JCM Version that this block is added

Numberrequired
Authorauthor

The original creator of the block

Stringoptional
Class Nameclass_name

The internal class name

Stringoptional
Extendsextends

The class name that this block extends from

Stringoptional
Implementimplements

The class name that this block implements

Stringoptional