DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:barcodes

barcodes Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" yes
  • 2020-07-29 "Hogfather" unknown

plugin Barcodes (1D & 2D) for DokuWiki

Last updated on
2023-01-29
Provides
Syntax
Repository
Source

Barcodes (1D & 2D) for DokuWiki

Installation

The recommended way to install this plugin is to use the DokuWiki Extension Manager. Search for barcodes and click on Install.

Alternatively, you can download the latest version here and manually upload and install it to your DokuWiki. Please take a look here to learn how to install plugins manually.

Usage

Create a QR code, pointing to https://dokuwiki.org:

<barcode type="QRCODE" value="https://dokuwiki.org" />

Alternatively, put the same URL in Data Matrix:

<barcode type="DATAMATRIX" value="https://dokuwiki.org" />

Options

The following tables contains a list of attributes, which can be used to modify the different types of supported barcodes.

Option QR Code Data Matrix Other Barcodes Description Example
type type="QRCODE"type="DATAMATRIXtype=...One of: C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, EAN2, EAN5, EAN8, EAN13, UPCA, UPCE, MSI, MSI+, POSTNET, PLANET, RMS4CC, KIX, IMB, CODABAR, CODE11, PHARMA, PHARMA2T.type="QRCODE" type="DATAMATRIX" type="EAN13"
value required required required Value to be represented by the Barcode. value="https://dokuwiki.org" value="42"
img-type optional optional optional Type of the image to be created. Must be one of svg (default) or png img-type="png"
color optional optional optional Base color of the barcode. color="#FF0000"
background-coloroptional optional optional Background color of the barcode. Leave empty for transparent. background-color="#FFFFFF"
size optional optional optional Set the size in px (width and height for QR code and Data Matrix, height for other barcodes). size="64px"
scale N.A. N.A. optional Scale the width of the barcode. scale="1.5"
padding optional optional optional Padding of the barcode in px. padding="10px"

Development

This plugin is fairly new and therefore does not yet have all the features you might want. If you are missing a feature, feel invited to submit a feature request.

Change Log

The Changelog is available here: https://gitlab.com/MatthiasLohr/dokuwiki-barcodes/-/blob/main/CHANGELOG.md.

License

This DokuWiki plugin is published under the GNU General Public License v3.0.

DokuWiki barcodes Plugin Copyright (C) 2023 by Matthias Lohr «mail@mlohr.com»

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 http://www.gnu.org/licenses/.

Attributions

This DokuWiki plugin makes use of the php-barcode library from Jucksearm.

plugin/barcodes.txt · Last modified: 2023-10-15 11:50 by 2a02:810c:4bbf:f8d4:614c:4f49:4fdc:dd99

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