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

Difference between revisions of "Template:InfoBox block"

Template page
m
(Remove hardness and type)
 
(7 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">{{{general_category}}}</div>}}
{{#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>}}
{{#if:{{{type|}}}|<tr>
    <th>Type</th>
    <td>{{{type}}}</td>
</tr>}}
</tr>}}
{{#if:{{{transparent|}}}|<tr>
{{#if:{{{transparent|}}}|<tr>
     <th>Transparent</th>
     <th>Transparent</th>
     <td>{{{transparent}}}</td>
     <td>{{{transparent}}}</td>
</tr>}}
{{#if:{{{hardness|}}}|<tr>
    <th>Hardness</th>
    <td>{{{hardness}}}</td>
</tr>}}
</tr>}}
{{#if:{{{light_level|}}}|<tr>
{{#if:{{{light_level|}}}|<tr>
Line 30: Line 22:
</tr>}}
</tr>}}
</table>
</table>
{{#if:{{{other_category|}}}|<div class="infobox-category">{{{other_category}}}</div>}}
{{#if:{{{other_category|}}}|<div class="infobox-category">Other Information</div>}}
<table>
<table>
{{#if:{{{since|}}}|<tr>
{{#if:{{{since|}}}|<tr>
Line 40: Line 32:
     <td>{{{author}}}</td>
     <td>{{{author}}}</td>
</tr>}}
</tr>}}
</table>
{{#if:{{{assets|}}}|<tr>
{{#if:{{{technical_category|}}}|<div class="infobox-category">{{{technical_category}}}</div>}}
     <th>Assets by</th>
<table>
     <td>{{{assets}}}</td>
{{#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 66: Line 47:
|general_category = General Information
|general_category = General Information
|id = jsblock:water_machine_1
|id = jsblock:water_machine_1
|type = Multipart
|hardness = 2.0
|light_level = 15
|light_level = 15
|transparent = Yes
|transparent = Yes
Line 73: Line 52:
|since = 1.0.0
|since = 1.0.0
|author = LX86
|author = LX86
|assets = 1081MTR
}}
}}


Line 108: Line 88:
             "label": "Item Group",
             "label": "Item Group",
             "description": "Item Group in creative menu",
             "description": "Item Group in creative menu",
            "type": "string"
        },
        "type": {
            "label": "Type of the block",
            "description": "Block/Directional Block/Multipart",
            "suggestedvalues": ["Block", "Directional Block", "Multipart"],
             "type": "string"
             "type": "string"
         },
         },
Line 120: Line 94:
             "description": "Whether Light passes through this block (Yes/No)",
             "description": "Whether Light passes through this block (Yes/No)",
             "type": "string"
             "type": "string"
        },
        "hardness": {
            "label": "Hardness",
            "description": "Hardness/Strength of a block",
            "type": "number"
         },
         },
         "light_level": {
         "light_level": {
Line 147: Line 116:
             "type": "string"
             "type": "string"
         },
         },
         "class_name": {
         "assets": {
             "label": "Class Name",
             "label": "Assets",
             "description": "The internal class name",
             "description": "Texture/Model Creator",
            "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"
         }
         }

Latest revision as of 21:35, 31 January 2024


Block Name
JCM Water Machine.png
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

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
Transparenttransparent

Whether Light passes through this block (Yes/No)

Stringoptional
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
Assetsassets

Texture/Model Creator

Stringoptional