| Block |
This template shows an infobox on the right side of the page with a visualisation of the block and basic information about it.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | The block's name as it appears in the Scratch editor. Replace all inputs with () regardless of type. | String | required |
| ScratchBlocks code / screenshot | image | Can be either valid [[Block Plugin]] syntax to render the block, or, for blocks where that is not possible, the name of the file where a screenshot of the block has been uploaded. Block Plugin syntax is preferred when possible | String | required |
| ScratchBlocks Version (only if using Block Plugin) | sb | Setting the version of block rendering to use, if block plugin syntax was given above. Usually set to "3.0". Set this to "2.0" to make the block show up as a 2.0 block, useful for blocks that only existed in Scratch 2.0 or 1.4. To use a screenshot, omit this parameter entirely.
| String | suggested |
| Image size (only if using screenshot) | image_size | If using a screenshot instead of Block Plugin syntax, set the size of the image. | String | optional |
| Block Palette Category | category | Category that the block is sorted in the Block Palette. Please make this a wikilink to that section's page, or to the extension's page if the block is part of an extension.
| String | required |
| Type | type | Whether the block is a stack/reporter/boolean/etc
| String | required |
| Added (in version) | added | What version of Scratch this block was added in
| String | suggested |
| Unlisted (in version) | unlisted | (if the block is unlisted) In what version of Scratch this block was removed from the palette (but kept in Scratch)
| String | optional |
| Removed (in version) | removed | (if the block has been removed) In what version of Scratch this block was removed
| String | optional |
Example
{{block
| name = Move () Steps
| image = move () steps
| category = [[Motion Blocks|Motion]]
| type = [[Stack Block|Stack]]
| added = [[11Oct03]]
| sb = yes
}}
produces:
| Move () Steps | |
move () steps | |
| Category | Motion |
| Type | Stack |
For blocks that are no longer in Scratch 3.0:
{{block
| name = Sensor ()?
| image = <sensor [button pressed v]?:: extension>
| category = [[PicoBoard Blocks|PicoBoard]]
| type = [[Boolean Block|Boolean]]
| added = [[2.0]]
| removed = [[3.0]]
| sb = 2.0
}}
| Sensor ()? | |
<sensor [button pressed v]?:: extension> | |
| Category | PicoBoard |
| Type | Boolean |
| Introduced in | 2.0 |
| Removed in | 3.0 |
For blocks which require an image to render:
{{block
| name = While ()
| image = File:0.x While () (block).png
| image_size = 100px
| category = [[Control Blocks|Control]]
| type = [[C Block|C]]
}}
| While () | |
| Category | Control |
| Type | C |