Extension:Scratch

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Scratch
Release status: beta
Scratch1.png
Implementation Tag
Description Allows to insert Scratch applets
Author(s) Yury Katkov <katkov.juriy@gmail.com>
Latest version 0.1
MediaWiki 1.16
PHP 5.2
License LGPL
Download Latest version
Translate the Scratch extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?[edit]

This extension allows you to insert Scratch applets in your MediaWiki website.

Usage[edit]

In this first version of an extension you have to upload your scratch script on an Official Scratch Website.

Insert the code <scratch script="author/id" /> on a place where you want to insert your script.

Here author is your name on Scratch website, id is the identifier of your project. You can go to your Scratch project and copy and paste the tail of the URL.

Example[edit]

For example <scratch script="patarakin/1470508" /> will add this script in a wiki page: http://scratch.mit.edu/projects/patarakin/1470508

Download instructions[edit]

The latest release is here. Just download it. Unpack the extension with 7-zip or tar and put it in the your extensions folder.

Installation[edit]

To install this extension, add the following to LocalSettings.php:

include_once("$IP/extensions/Scratch/Scratch.php");

See also[edit]

Extension:Java Applet — another way to do the same thing