DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:barcodes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:barcodes [2023-01-27 17:18] MatthiasLohrplugin:barcodes [2023-10-15 11:50] (current) – Fixed typo 2a02:810c:4bbf:f8d4:614c:4f49:4fdc:dd99
Line 6: Line 6:
 email      : mail@mlohr.com email      : mail@mlohr.com
 type       : syntax type       : syntax
-lastupdate : 2023-01-27+lastupdate : 2023-01-29
 compatible : Igor compatible : Igor
 depends    :  depends    : 
 conflicts  conflicts 
-similar    : barcode, code39+similar    : barcode, code39, qrcode, qrcode2
 tags       : barcode, barcodes, qr, qrcode, qrcodes, datamatrix tags       : barcode, barcodes, qr, qrcode, qrcodes, datamatrix
  
Line 21: Line 21:
 ---- ----
  
-This plugin allows to add 1D and 2D barcode to your wiki pages.+//Barcodes (1D 2D) for DokuWiki//
  
 ===== Installation ===== ===== Installation =====
  
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+The recommended way to install this plugin is to use the [[https://www.dokuwiki.org/plugin:extension|DokuWiki Extension Manager]]. Search for ''%%barcodes%%'' and click on //Install//.
  
-===== Examples/Usage =====+Alternatively, you can [[https://gitlab.com/MatthiasLohr/dokuwiki-barcodes/-/releases/permalink/latest/downloads/dokuwiki-barcodes.zip|download the latest version here]] and manually upload and install it to your DokuWiki. Please take a look [[https://www.dokuwiki.org/plugins|here]] to learn how to install plugins manually.
  
-Create a simple QR code, pointing to https://dokuwiki.org/:+===== Usage =====
  
-  <barcode type="qrcode" value="https://dokuwiki.org/+Create a [[https://en.wikipedia.org/wiki/QR_code|QR code]]pointing to https:%%//%%dokuwiki.org:
-   +
-Alternativelyput the same URL in a data matrix:+
  
-  <barcode type="datamatrix" value="https://dokuwiki.org" />+<code xml> 
 +<barcode type="QRCODE" value="https://dokuwiki.org" /
 +</code>
  
 +Alternatively, put the same URL in [[https://en.wikipedia.org/wiki/Data_Matrix|Data Matrix]]:
  
-===== Syntax =====+<code xml> 
 +<barcode type="DATAMATRIX" value="https://dokuwiki.org" /> 
 +</code>
  
-Basic syntax:+==== Options ====
  
-  <barcode type="TYPEvalue="VALUE" /> +The following tables contains a list of attributes, which can be used to modify the different types of supported barcodes. 
-   + 
-The type parameter is case insensitive. +^Option                  ^QR Code              ^Data Matrix             ^Other Barcodes  ^Description                                                                                                                                                                                                                                                                                                                                                                                                                                                ^Example                                                             ^ 
-   +|''%%type%%''            |''%%type="QRCODE"%%''|''%%type="DATAMATRIX%%''|''%%type=...%%''|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"%%''
-Currently supported types areQRCode, DataMatrix, 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+|''%%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-color%%''|optional             |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 [[https://gitlab.com/MatthiasLohr/dokuwiki-barcodes/-/issues/new|feature request]].
  
 ===== Change Log ===== ===== Change Log =====
  
-The CHANGELOG file can be seen here: https://gitlab.com/MatthiasLohr/dokuwiki-barcodes/-/blob/main/CHANGELOG.md.+The Changelog is available here: https:%%//%%gitlab.com/MatthiasLohr/dokuwiki-barcodes/-/blob/main/CHANGELOG.md. 
 + 
 +===== License ===== 
 + 
 +This DokuWiki plugin is published under the [[LICENSE.md|GNU General Public License v3.0]]. 
 + 
 +DokuWiki barcodes Plugin Copyright (C) 2023 by [[https://mlohr.com/|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 [[https://github.com/jucksearm/php-barcode|php-barcode]] library from [[https://github.com/jucksearm|Jucksearm]].
  
plugin/barcodes.1674836314.txt.gz · Last modified: 2023-01-27 17:18 by MatthiasLohr

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