MWML [BARCODE]-Tag

MWML [BARCODE]-Tag

Creates a URL to an image with a QR code or barcode.

Usage

Email templates, Landing page templates, Emails, Landing pages, Dynamic content

Syntax

  1. [BARCODE type='...' ...]<text to encode>[/BARCODE]

Attributes

General

Attribute
Value
Description
type1
Barcodes

Code39
Code39FullAscii
Interleaved2Of5
Code128
EAN13
EAN8
UPC-A

2D-Codes

QRCode
Type/Representation of the code.
h-padding
Integer
Horizontal inner padding/margin in pixels. Default: 0
v-padding
Integer
Vertical inner padding/margin in pixels. Default: 0
fg-color
Color
Foreground color (Hexadecimal, without #). Default: 000000
bg-color
Color
Background color (Hexadecimal, without #). Default: FFFFFF

Barcodes

Attribute
Value
Description
bar-width
Integer
Width of bars in pixels. Default: 1
bar-height
Integer
Height of bars in pixels. Default: 10
up
up2
down
left
right
Upward direction.

QR-Code

Attribute
Value
Description
pixel-size
Integer
Size of each pixel. Default: 1
error-correction
L (Low, 7%3)
M2 (Medium, 15%)
Q (Quartile, 25%3)
H (High, 30%3)
Error correction level

Example

Creating QR codes for the text https://mailingwork.de/. The text can also be read from a subscriber field using placeholders: [BARCODE type='QRCode' pixel-size='6'][Alias_of_subscriber_field /][/BARCODE]
MWML-Input
HTML-Output
Preview
MWML-Input
Example: QR codes
  1. <img src="[BARCODE  type='QRCode'
  2.                     pixel-size='6']https://mailingwork.de/[/BARCODE]" /><br/><br/>

  3. <img src="[BARCODE  type='QRCode'
  4.                     pixel-size='6'
  5.                     fg-color='06182E'
  6.                     bg-color='E08330'
  7.                     h-padding='5'
  8.                     v-padding='5']https://mailingwork.de/[/BARCODE]" />
Preview


 


  1. Required field 

  2. Default: If the attribute is omitted, the element is automatically initialized with this value. 

  3. Percentage of recoverable data bytes