1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-05 21:50:02 +00:00
TiddlyWiki5/plugins/tiddlywiki/qrcode/MakeContactQR.tid
Jermolene 534f5e7c13 Revert "Add text/vnd.tiddlywiki to system tiddlers within plugins that should be wikified (c.f. #2883)"
This reverts commit 7436fc7374478de34f25abbd549d80436ac6e303.
2017-06-24 17:48:32 +01:00

28 lines
1.2 KiB
Plaintext

title: $:/plugins/tiddlywiki/qrcode/MakeContactQR
tags: $:/tags/MakeQR
caption: Contact
\define wifi-url()
WIFI:wifi name;T:WPA;S:SSID;P:password;
\end
\define image(firstname,lastname,address,tel,email)
<img src=<<makeqr text:"""MECARD:N:$lastname$,$firstname$;ADR:$address$;TEL:$tel$;EMAIL:$email$;;""" size:"350">>/>
\end
! Enter the contact details
First name: <$edit-text tiddler="$:/config/plugins/tiddlywiki/qrcode/contact/firstname" tag="input" default=""/>
Last name: <$edit-text tiddler="$:/config/plugins/tiddlywiki/qrcode/contact/lastname" tag="input" default=""/>
Address: <$edit-text tiddler="$:/config/plugins/tiddlywiki/qrcode/contact/address" tag="input" default=""/>
Telephone: <$edit-text tiddler="$:/config/plugins/tiddlywiki/qrcode/contact/tel" tag="input" default=""/>
Email: <$edit-text tiddler="$:/config/plugins/tiddlywiki/qrcode/contact/email" tag="input" default=""/>
! Here is your QR code
<$macrocall $name="image" firstname={{$:/config/plugins/tiddlywiki/qrcode/contact/firstname}} lastname={{$:/config/plugins/tiddlywiki/qrcode/contact/lastname}} address={{$:/config/plugins/tiddlywiki/qrcode/contact/address}} tel={{$:/config/plugins/tiddlywiki/qrcode/contact/tel}} email={{$:/config/plugins/tiddlywiki/qrcode/contact/email}}/>