Re: [tw] Re: [TW5] Button template

2016-02-28 Thread andrew harrison
No leading or trailing spaces. I can't use quotation marks if I want a
lookup. It seems I can't use <> for the tooltip or any defined
macro. The only thing that seems to work is a transclusion dictionary
lookup. I think I figured it out though. I still feel like something isn't
quite right with the lingo thing. But since I still don't understand how
lingo works I can't fully test it yet. Here is what I have now:

\define lingo-base() $:/language/format/
\define format(button)
<$button message="tm-$button$"
tooltip={{$:/language/format/hint##$button$}} aria-label=<> class=<>>
<$action-setfield $tiddler="$:/language/format/notify" $field="text"
$value=<>/>
<$action-sendmessage $message="tm-notify"
$param="$:/language/format/notify"/>
<$list filter="[prefix[yes]]">

<>


<$list filter="[prefix[yes]]">

<>



\end

On Sun, Feb 28, 2016 at 9:39 PM, Scott Simmons (Secret-HQ) <
goo...@secret-hq.com> wrote:

> H.  Is there a leading or trailing space in the dictionary tiddler
> causing problems?  Does the tooltip param have quotation marks that might
> be causing problems?
>
> --
> 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/4aaf8257-fda0-450d-b1ae-2eaa5eeda65b%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAL0r7zvTYSUddFzgD3so5OWrkeEzuTtsyF-smjiUzsd_UjHvZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Button template

2016-02-28 Thread Scott Simmons (Secret-HQ)
H.  Is there a leading or trailing space in the dictionary tiddler 
causing problems?  Does the tooltip param have quotation marks that might 
be causing problems?

-- 
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/4aaf8257-fda0-450d-b1ae-2eaa5eeda65b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Button template

2016-02-28 Thread andrew harrison
Um, well, I thought it was almost perfect. After I tested it a bit I still
have a slight problem. The tooltip comes up as
"{{$:/language/format/hint##bold}}" instead of "make the selected text
bold" from the dictionary tiddler. Any more suggestions?

On Sun, Feb 28, 2016 at 4:17 AM, Scott Simmons (Secret-HQ) <
goo...@secret-hq.com> wrote:

> Awesome!
>
> (Did you get a chance to check out my tab source button solution in the
> other thread?
> https://groups.google.com/d/msg/tiddlywiki/UAHlzJrZB5c/1aAswfeaHAAJ )
>
> --
> 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/94bfee94-1351-4161-9e5a-5af9dece6bef%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAL0r7zvG7GxjFFkXQGgp3grkNrJyEezoSxzfFdx%2BCuYZZV4-kQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Button template

2016-02-28 Thread Scott Simmons (Secret-HQ)
Awesome!

(Did you get a chance to check out my tab source button solution in the 
other thread?  
https://groups.google.com/d/msg/tiddlywiki/UAHlzJrZB5c/1aAswfeaHAAJ )

-- 
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/94bfee94-1351-4161-9e5a-5af9dece6bef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Button template

2016-02-27 Thread Scott Simmons (Secret-HQ)
Would it work to create a macro that could generate each button based on a 
parameter?

E.g.:

\define format(button)
<$button message="tm-button" tooltip=<> 
aria-label=<> class=<>>
<$action-setfield $tiddler="$:/language/format/notify" $field="text" 
$value=<>/>
<$action-sendmessage $message="tm-notify" 
$param="$:/language/format/notify"/>
<$list filter="[prefix[yes]]">

$button$

<$list filter="[prefix[yes]]">

<>




... so that you could display the button with a macrocall like <>.

>

-- 
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/401a8d57-c4b3-4c2e-bd79-0b09fd092246%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.