[tw] Re: Trouble with fields and templates

2016-10-14 Thread Greg Davis
Neat! I've been thinking about creating a TW for bookmarks that included QR 
codes so could transfer links to my phone or tablet. Previously had to use 
an extension to create png image and embed in TW thus increasing size.

Also like the Firefox extension QR Secret Decoder Ring 
https://addons.mozilla.org/en-US/firefox/addon/qr-secret-decoder-ring/ 
, suppose there is something similar for Chrome.

"Right click an image (including a background image), SVG element, or 
canvas containing a QR code to decode.
Allows internal decoding (using the QR-Logo library) or the choice of the 
ZXing and MiniQR websites for decoding."

Can be set to go to a link, if a link, or display a textbox with contents.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/3ca7f622-988f-407a-96c4-d73455fcb22d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Trouble with fields and templates

2016-10-14 Thread Thomas Elmiger
Hi 

I experimented a bit with Google’s QR API and found a way to send tiddlers 
in vcard format to my phone to import in my address book. My macro takes a 
tiddler title as input and optionally a size: 

To transform a tiddler into a QR code use 

<> 

or

<>

---

\define qr-tid(tiddler,size:354)
<$wikify name="text" text=<>>
<$macrocall $name="qr-code" text=<> size=$size$/>

\end

\define qr-code(text,size:354)

\end

\define qr-urlencode(tiddler)
<$view format="urlencoded" tiddler="""$tiddler$"""/>
\end

---

If you want to test, you can import a .vcf file like mine 
 directly by 
dropping it on your wiki. 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/4836fc01-9705-49ba-aad5-bed6eb738904%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Trouble with fields and templates

2016-10-13 Thread RunningUtes
The QR template is something that I really like since I can send almost 
anything to the template and it will output a QR code that can be quickly 
scanned by my phone. Easy way to visually transfer information from my 
computer to the phone at work.

I changed the size from 150x150 to 400x400 so the camera can pick up things 
a little easier, and I can send roughly 800 characters or so without any 
problems.

I use the QR template to add useful bits of info into my tiddlers.

Thanks for your help!

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/c90514fa-9145-45bc-9a45-9469fb0d4742%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Trouble with fields and templates

2016-10-12 Thread 'Mark S.' via TiddlyWiki
Is there a reason you want to use a template here? What's happening is that 
the text is seeing the title of the transcluded tiddler.

If you make your test tiddler like this:

\define QR(text)
http://chart.apis.google.com/chart?chs=150x150=qr=$text$;>
\end

<$edit-text class='tc-edit-texteditor'  tiddler="QRData" field='new_QR' 
placeholder='QR text'/>


<$macrocall $name="QR" text={{QRData!!new_QR}}/>

It seems to work OK this way. Note that I moved the data into a separate 
tiddler. You might have noticed that it was very hard to type into the edit 
field. Somewhere in the documentation they warn you not to call the edit 
widget on a field inside the same tiddler -- some sort of loop-back thing.

Is that an actual QR code that google is giving back? That's certainly a 
good trick to know!

Good luck!
Mark


 

On Wednesday, October 12, 2016 at 6:45:15 PM UTC-7, RunningUtes wrote:
>
> I have some issues with fields that I cant seem to fix.
>
> I have 2 tiddlers:
>
> 1) *QR*
> \define QR(text)
> http://chart.apis.google.com/chart?chs=150x150=qr=$text$
> ">
> \end
> <$macrocall $name="QR" text={{!!title}}/>
>
> 2) *QR test field*
>  
> <$edit-text class='tc-edit-texteditor'  field='new_QR' placeholder='QR 
> text'/>
>
>
> {{!!new_QR}}
>
>
> {{!!new_QR||QR}}
>
> which also has a custom field of *new_QR* which contains "Hello world"
>
> Basically I can't seem to get the custom field *new_QR* to work with the 
> template QR
>
> Any tips or did I miss something?
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/f9d53278-3847-4437-94cb-db4d6dfa71ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.