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)
 
(10 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 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>
     <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 44: 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 68: 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 79: 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 91: 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 101: 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 107: Line 110:
             "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