Here is the code for a VCard template:
\define qr_vcard_contact(firstname,lastname,org,tel,email)
<img src=<<makeqr text:"""BEGIN:VCARD
VERSION:3.0
N:$lastname$;$firstname$
ORG:$org$
TEL:$tel$
EMAIL:$email$
END:VCARD""" size:"200" errorCorrectLevel:"L" >>/>
\end
<$macrocall $name="qr_vcard_contact" firstname={{!!first_name}}
lastname={{!!last_name}} org={{!!organization}} tel={{!!telephone}}
email={{!!email}}/>
and for a MECard Template (slightly more compact syntax so less complex
resulting QR). The ORG field is a bit off-spec but seems to work ... in
Android at least.
\define qr_mecard_contact(firstname,lastname,org,tel,email)
<img src=<<makeqr text:
"""MECARD:N:$lastname$,$firstname$;ORG:$org$;TEL:$tel$;EMAIL:$email$;;"""
size:"200" errorCorrectLevel:"L" >>/>
\end
<$macrocall $name="qr_mecard_contact" firstname={{!!first_name}}
lastname={{!!last_name}} org={{!!organization}} tel={{!!telephone}}
email={{!!email}}/>
You can cram an address in there but the resulting QRCode gets a bit
dense/large.
Also the "L" error correct level (7% loss tolerant) was used to make the
code smaller.
Enjoy,
/Mike
On Tuesday, March 20, 2018 at 9:59:06 AM UTC-4, Michael Wiktowy wrote:
>
> Absolutely! I already have some working code (based on the examples in the
> plugin) to produce MECard or VCard Contact QRs to plug into a page
> template. I just didn't want to include functionality from a pre-release
> plugin. Once 5.1.16 is released, I will add it in.
>
> I'll post the template code here a bit later if you are interested.
>
> /Mike
>
> On Tuesday, March 20, 2018 at 8:30:10 AM UTC-4, AlexHough wrote:
>>
>> Just a thought.....
>>
>> I wonder if the plugin could be used to produce QR labels from the QR
>> function in TW
>>
>>
>> Alex
>>
>>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/b13bbdfb-5faf-41d4-a235-13a4280a667b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.