It's better when it's simple

User Tools

Site Tools


barcode (2D-Barcodes) Plugin

Compatible with DokuWiki


plugin Create 2D-Barcodes using different providers. See 'Fork' below for maintained version.

Last updated on

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to barcodes, qrcode, qrcode2

Tagged with barcode, images, media, qrcode

Download and Installation

Search and install the plugin using the Extension Manager or manually with the download from the GitHub Mirror. Refer to Plugins on how to install plugins manually.

Last version can be found on GitHub, including project tracking.

Fork 2024-02-13 with ability to use local qrencode or zint library and compatibility for PHP 8.2 and DokuWiki version 2024-06-04a “Kaos” by Runout:


Barcode generates 2D barcodes using different providers, currently:

  • Google Charts
  • I-nigma
  • Kaywa
  • QRServer
  • qrencode (only available in Fork of Runout)
  • zint (only available in Fork of Runout)

Zint supports a lot of different barcode types. Lookup the manpage!

Layout of the barcode can be defined by CSS styles.

Full documentation and examples here (English & Italian).




Only one attribute of type payload can be specified.
If no payload attribute is given a barcode pointing to the containing page is generated.

idId to assign to the barcode img tag.
Control for rendering via CSS.
classClass to assign to the barcode img tag.
Control for rendering via CSS.
Possible values:
barcode_left → barcode is left aligned
barcode_right → barcode is right aligned
barcode_center → barcode is centered
modeOnly for I-nigma provider. 0 is QR-Code, 1 is DataMatrix optional
sizeSize of the barcode. Allowed values: S, M, L, XLoptional
urlpayload is an URL, e.g. url=https://example.orgpayload
smspayload is a SMS, e.g. sms=+391234567890=A Messagepayload
telpayload is a telephone number, e.g. tel=+391234567890payload
contactpayload is a contact, e.g. contact=Name=+123432324=my@example.orgpayload
textpayload is a text, e.g. text=MAILTO:my@example.orgpayload
captioncaption to be used on the bottom of the barcode.
Only for 'I-nigma'
bgcolorBackground color of the barcode.
Only for qrencode and QRServer.
For usage with qrencode see attribute background
foregroundcolor in hexadecimal notation: RRGGBB[AA]
6-digit (RGB) or 8-digit (RGBA).
Color output support available only in PNG, EPS and SVG.
Runout fork only
backgroundcolor in hexadecimal notation: RRGGBB[AA]
6-digit (RGB) or 8-digit (RGBA).
Color output support available only in PNG, EPS and SVG.
Runout fork only
levelError correction level. Allowed values: L, M, Q, Hoptional
Runout fork only
marginWidth of margin. (default=4)optional
Runout fork only
dpiDPI of the generated PNG. (default=72)optional
Runout fork only



For Zint (Runout fork only) use the long form parameters of the cli.

size is a synonym for scale.



version 19.02

  • dokuwiki “Greebo” compatibility
  • PHP 7.x compatibility


  • Added support fol translation plugin


  • Added button in the edit toolbar
  • Support for DokuWiki “Anteater”


  • The footer can be translated into multiple languages
  • New provider architecture
  • New provider (QRserver)
  • Easier administration


  • Simpler syntax to generate a barcode that points to the page that contains it
  • Removing death code


  • First version

Plugin is based upon QRCode

Copyright © 2010-2019 eIrOcA (eNrIcO Croce & sImOnA Burzio)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see



Is possible to draw a QR code of current page?

From version 2010/01/20 without specifying the payload, e.g.



Please raise request here.

  • :?: Would it be possible to create barcodes without any external provider and dependency? This would be helpful for intranets without internet access. Perhaps a library like phpbarcode could be used.
plugin/barcode.txt · Last modified: 2024-02-13 04:02 by

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki