Hi folks, 
I did just upload V 0.5.3 that contains 3 more very powerful parameters. It 
lets us do the following: 

\customize degree=☐ _element="$macrocall" $name="check" _1=tid 

\define check(src, tid) 
<$checkbox tiddler=<<qualify "$:/state/cb/$tid$">> tag=done class="db"> 
<<__src__>></$checkbox> 
\end

°☐:a This is a test
°☐:b This is a test 
°☐:c This is a test 

With the "old" mechanism only 1 state tiddler would have been created. With 
this mechanism it is possible to add 2 new parameters to the macro. eg:

°☐:a .. a is the text, that will be written to the tid parameter of the 
"check" macro. 


It's possible to have 2 new parameters. If there are more, it gets way to 
complicated. IMO it will be much more readable to use the existing 
mechanism. 

\customize degree=☐ _element="$macrocall" $name="check" _1=tid _2=test

\define check(src, tid, test) 
<$checkbox tiddler=<<qualify "$:/state/cb/$tid$">> tag=done class="db"> 
<<__src__>> - $test$</$checkbox> 
\end

°☐:a:noSpacesAllowed This is a test

Since this

°☐:a:noSpacesAllowed This is a test

may be too much clutter it is possible to define a new _maps parameter eg: 

\customize degree=☐ _element="$macrocall" $name="check" _1=tid _2=test 
_maps=":a:noSpacesAllowed"   

°☐ This is a test

More info can be found in the examples. .. The _maps parameter can do some 
cool stuff. 
See: Examples in GG 
<https://wikilabs.github.io/editions/custom-markup/#test-checkbox-widget-maps-transclusion:test-checkbox-widget-maps-transclusion%20test-checkbox-widget-maps-variable%20%5B%5BCustom%20Markup%20Definition%5D%5D>

Have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/c0f711e0-f524-41f3-9edf-bf7fc5c1734co%40googlegroups.com.

Reply via email to