Extension:EAN

What can this extension do?
The EAN BarCode generator extension can create a picture of a Code39, EAN-13, an EAN-8 or a UPC-A barcode by only adding the EAN-Tags with the barcode number to the article (its enough to specify the first 12 (EAN-13), the first 7 (EAN-8) or the first 11 (UPC-A) digits, the following check-digit will be calculated anyway).

Usage
For example, the EAN-13 barcode 425353932002 will be added with the following wiki code to the article:  425353932002  The EAN-8 barcode 8371966 will be added with the following wiki code to the article:  8371966  And the UPC-A barcode 07283974129 will be added with the following wiki code to the article:  07283974129  You can change any barcode to a bigger size by adding the option size=X to the opening tag (X is ofcourse the size-number, like 1 or 2). Example:  425353932002  A Code39 barcode like "EAN 2.1" will be added with the following wiki code to the article:  EAN 2.1 

You can also use normal image options just like you would with wikipedia images. If you would add an image like this: the bold part is the part you would add as "options" parameter to the opening tag. For the barcode this would look like the following: 123786564872 In live this would produce the following picture:

Since version 2, the pictures are added to your MediaWiki just like any other picture, and therefore, no more used pictures can be found with the "Unused images" special-page and deleted. It also gives you the possibility to arrange the picture more like you want to, just like normal pictures (see the options parameter described above).

Another example with a bigger size would be:  5901234123457  5901234123457

With the "code" parameter you define the barcode you want to display. Standard is "EAN-13" but you can also choose EAN-8 (code="ean8") or UPC (code="upc").

Download instructions
Download the zip file here from ChaosReligion.com.

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

Also make sure that the new directory ' ' is available to the extension: Either ensure that Apache has the rights to automatically create the new directory, or manually create the directory ' ' under the  (this path typically leads to your ' ' folder). Example: " ". The new  directory will need write permissions   to work properly. If Apache has the appropriate rights the extension will try to set the write permission automatically.