Extension:ScratchBlocks

ScratchBlocks is an extension to display Scratch, a programming language created by MIT, in wiki blocks.

Configuration
By default, only English Scratch blocks are rendered. Add more languages like so: Note that the TW is preceded by an underscore, not a hyphen. This variable is accessible through JS

Usage
There are two ways to create a snippet of Scratch blocks, which are nearly identical.
 * Use before and after your code to create a block level element displaying Scratch code.
 * To create an inline-block element (that will show in the middle of the paragraph), enclose the code in  tags.

Both tags take a  attribute, whose default value is 3. If specified as 2, the tag will render its blocks in Scratch 2.0 style.

For information on how to write ScratchBlocks code, visit https://en.scratch-wiki.info/wiki/Block_Plugin/Syntax.