plugin:barcode
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:barcode [2019-02-24 15:05] – eIrOcA | plugin:barcode [2024-02-13 04:02] (current) – [Requests] 77.116.87.77 | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : staff@eiroca.net | email : staff@eiroca.net | ||
Line 16: | Line 16: | ||
bugtracker : https:// | bugtracker : https:// | ||
sourcerepo : https:// | sourcerepo : https:// | ||
- | donationurl: | + | donationurl: |
---- | ---- | ||
Line 26: | Line 26: | ||
Last version can be found on [[https:// | Last version can be found on [[https:// | ||
+ | **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 " | ||
+ | ^ Repository |[[https:// | ||
===== Documentation ===== | ===== Documentation ===== | ||
+ | |||
Barcode generates 2D barcodes using different providers, currently: | Barcode generates 2D barcodes using different providers, currently: | ||
+ | |||
* Google Charts | * Google Charts | ||
* I-nigma | * I-nigma | ||
* Kaywa | * Kaywa | ||
* QRServer | * QRServer | ||
+ | * qrencode (only available in Fork of Runout) | ||
+ | * zint (only available in Fork of Runout) | ||
+ | |||
+ | [[https:// | ||
+ | |||
Layout of the barcode can be defined by CSS styles. | Layout of the barcode can be defined by CSS styles. | ||
Full documentation and examples [[http:// | Full documentation and examples [[http:// | ||
+ | |||
+ | ==== Usage ==== | ||
+ | |||
+ | < | ||
+ | ~~BARCODE~attribute1=value1~attribute2=value2~~ | ||
+ | </ | ||
+ | |||
+ | === Attributes === | ||
+ | |||
+ | Only one attribute of type payload can be specified. \\ If no payload attribute is given a barcode pointing to the containing page is generated. | ||
+ | |||
+ | ^Attribute^Description^Type^ | ||
+ | |id|Id to assign to the barcode img tag. \\ Control for rendering via CSS.|optional| | ||
+ | |class|Class 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|optional| | ||
+ | |mode|Only for I-nigma provider. 0 is QR-Code, 1 is DataMatrix |optional| | ||
+ | |size|Size of the barcode. Allowed values: S, M, L, XL|optional| | ||
+ | |url|payload is an URL, e.g. // | ||
+ | |sms|payload is a SMS, e.g. // | ||
+ | |tel|payload is a telephone number, e.g. // | ||
+ | |contact|payload is a contact, e.g. // | ||
+ | |text|payload is a text, e.g. // | ||
+ | |caption|caption to be used on the bottom of the barcode. \\ Only for ' | ||
+ | |bgcolor|Background color of the barcode. \\ Only for '' | ||
+ | |foreground|color | ||
+ | |background|color | ||
+ | |level|Error | ||
+ | |margin|Width of margin. (default=4)|optional \\ Runout fork only| | ||
+ | |dpi|DPI of the generated PNG. (default=72)|optional \\ Runout fork only| | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | < | ||
+ | ~~BARCODE~class=barcode_left~url=http:// | ||
+ | ~~BARCODE~class=barcode_right~url=http:// | ||
+ | ~~BARCODE~class=barcode_center~size=M~~ | ||
+ | </ | ||
+ | |||
+ | For Zint (Runout fork only) use the long form parameters of the cli. | ||
+ | |||
+ | //size// is a synonym for //scale//. | ||
+ | |||
+ | < | ||
+ | ~~BARCODE~class=barcode_left~url=https:// | ||
+ | ~~BARCODE~barcode=aztec~scale=L~~ | ||
+ | </ | ||
===== History ===== | ===== History ===== | ||
Line 78: | Line 132: | ||
* :?: 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 [[http:// | * :?: 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 [[http:// | ||
+ | * You can try runout' | ||
plugin/barcode.1551017142.txt.gz · Last modified: 2019-02-24 15:05 by eIrOcA