Dokuwiki plugin to create 2D-Barcodes using different providers.
It was added the support to the translation plugin. If it is installed will be used to detect the language for barcode messages.
Barcode generates 2D barcodes using different providers, currently:
Layout of the barcode can be definited by CSS styles.
Possible optional attributes:
|id||id to assign to the barcode img tag|
|class||class to assign to the barcode img tag, possible value:|
|barcode_left → barcode is left aligned|
|barcode_right → barcode is right aligned|
|barcode_center → barcode is centered|
|mode||Valid only for I-nigma provider, 0 is QR Code, 1 for DataMatrix code|
|size||Size of the barcode, allowed: S, M, L, XL|
The payload is described by one, and only one, of theese attributes:
|url||payload is an URL, e.g. url=http://www.eiroca.net|
|sms||payload is a SMS, e.g. sms=+391234567890=A Message|
|tel||payload is an telephone number, e.g. tel=+391234567890|
|contact||payload is a contact, e.g. contact=Namefirstname.lastname@example.org|
|text||payload is a text, e.g. text=MAILTO:email@example.com|
If no payload attribute is given a barcode that points to the cointaner page is generated.
Using id and class it's possible to control, via CSS, the behavior of the rendered image.
It is possible to set any specific attributes of individual providers, such as:
|caption||Valid only for I-nigma, caption to be used on the bottom of the barcode|
|bgcolor||Valid only for QRServer, background color of the barcode|
See the site of the single provider for specific documentation.
Here the code:
~~BARCODE~class=barcode_left~url=http://www.eiroca.net/dokuwiki~size=S~~ ~~BARCODE~class=barcode_right~url=http://www.eiroca.net/dokuwiki~size=S~~ ~~BARCODE~class=barcode_center~size=M~~
Download and install the plugin using the Plugin Manager using the following http://www.eiroca.net/apps/dokuwiki/dokuwiki-plugin-barcode.zip. Refer to plugins on how to install plugins manually. github project that is always up to date.
Inside dokuwiki plugin administration is possible to configure:
The hint messages can be configured changingin the files footer.txt inside the barcode plugin directory. To add a new languages, not currently present, you should create a file footer_XX.txt where XX is the code of the language. The language is determined using plugin translation, if the plugin is not installed the default language of the wiki is used ($conf['lang']).
Copyright © 2010-20193 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 http://www.gnu.org/licenses/.