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

Difference between revisions of "Template:InfoBox block"

Template page
(Remove hardness and type)
 
(13 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 9: Line 9:
     <td>{{{id}}}</td>
     <td>{{{id}}}</td>
</tr>}}
</tr>}}
{{#if:{{{type|}}}|<tr>
{{#if:{{{item_group|}}}|<tr>
     <th>Type</th>
     <th>Item Group</th>
     <td>{{{type}}}</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>}}
{{#if:{{{hardness|}}}|<tr>
    <th>Hardness</th>
    <td>{{{hardness}}}</td>
</tr>}}
</tr>}}
{{#if:{{{light_level|}}}|<tr>
{{#if:{{{light_level|}}}|<tr>
Line 25: 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>
     <td>v{{{since}}}</td>
     <td>v{{{since}}}</td>
</tr>}}
{{#if:{{{author|}}}|<tr>
    <th>Created by</th>
    <td>{{{author}}}</td>
</tr>}}
{{#if:{{{assets|}}}|<tr>
    <th>Assets by</th>
    <td>{{{assets}}}</td>
</tr>}}
</tr>}}
</table>
</table>
Line 40: Line 47:
|general_category = General Information
|general_category = General Information
|id = jsblock:water_machine_1
|id = jsblock:water_machine_1
|type = Multipart
|light_level = 15
|hardness = 4.0
|transparent = Yes
|light_level = 0
|other_category = Other Information
|transparent = No
|since = 1.0.0
|since = 1.0.0
|author = LX86
|assets = 1081MTR
}}
}}


Line 51: Line 59:
     "description": "Infobox template for a JCM block",
     "description": "Infobox template for a JCM block",
     "params": {
     "params": {
        "title": {
            "label": "Block Name",
            "description": "Name of the block",
            "type": "string"
        },
         "image": {
         "image": {
             "label": "Image",
             "label": "Image",
Line 59: 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 67: Line 85:
             "required": true
             "required": true
         },
         },
         "type": {
         "item_group": {
             "label": "Type of the block",
             "label": "Item Group",
             "description": "Block/Directional Block/Multipart",
             "description": "Item Group in creative menu",
            "suggestedvalues": ["Block", "Directional Block", "Multipart"],
             "type": "string"
             "type": "string"
         },
         },
Line 77: 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 88: Line 100:
             "type": "number"
             "type": "number"
         },
         },
         "version": {
         "other_category": {
            "label": "Other Category",
            "description": "Other Category",
            "type": "string"
        },
        "since": {
             "label": "Version",
             "label": "Version",
             "description": "JCM Version that this block is added",
             "description": "JCM Version that this block is added",
             "type": "number",
             "type": "number",
             "required": true
             "required": true
        },
        "author": {
            "label": "Author",
            "description": "The original creator of the block",
            "type": "string"
        },
        "assets": {
            "label": "Assets",
            "description": "Texture/Model Creator",
            "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