Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

A simple MediaWiki extension for rendering Scratch blocks.

License

Notifications You must be signed in to change notification settings

scratchfoundation/mw-ScratchBlocks2

 
 

Repository files navigation

A simple MediaWiki extension for rendering Scratch blocks.

Transforms <scratchblocks> tags inside wiki articles into <pre class="blocks"> in the HTML, which are then rendered to scratch blocks using CSS and JS included in the page. Inline blocks are rendered with <sb> tags, and become <code class="blocks"> tags.

  • Maintained by ErnieParke (@Choco31415).
  • Authored by tjvr

Installation

This repository uses Git submodules. If you git clone, make sure to include the --recursive option.

$ cd extensions
$ git clone --recursive http://github.com/tjvr/wiki-scratchblocks ScratchBlocks

Just drop this folder into MediaWiki's "extensions/" folder, and add

require_once( "$IP/extensions/ScratchBlocks/ScratchBlocks.php" );

to your "LocalSettings.php". If running Mediawiki 1.25 or greater, you can use

wfLoadExtension( "ScratchBlocks" );

instead of the require statement.

About

A simple MediaWiki extension for rendering Scratch blocks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 92.1%
  • JavaScript 6.5%
  • CSS 1.4%