That's just how macros work in TiddlyWiki. Any pragmas (things beginning 
with a \), including \define, have to come before all non-pragma content in 
a tiddler.

On Sunday, July 4, 2021 at 7:41:42 AM UTC-5 [email protected] wrote:

> I want to make a list of pictures with an address.
> https://i.imgur.com/zRhtrSo.jpg
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *\define 
> image-picker2(actions,filter:"[all[tiddlers+shadows]tag[$:/tags/Image]]",subfilter:"")<div
>  
> class="tc-image-chooser"><$vars state-system=<<qualify 
> "$:/state/image-picker/system">>><$reveal type="match" text="hide" 
> default="hide" tag="div"><$macrocall $name="image-picker-list" 
> filter="""$filter$""" actions="""$actions$"""/></$reveal><$reveal 
> state=<<state-system>> type="nomatch" text="hide" default="hide" 
> tag="div"><$macrocall $name="image-picker-list" filter="""$filter$""" 
> actions="""$actions$"""/></$reveal></$vars></div>\end<$button 
> message="tm-open-external-window" param={{!!url}}>Источник</$button><br>* 
> {{!!url}}* https://tiddlywiki.com/#image-picker%20Macro 
> <https://tiddlywiki.com/#image-picker%20Macro><hr><$edit-text 
> tiddler='$:/_MyImage' tag='input' placeholder='(unset)' 
> default=''/><$transclude tiddler={{$:/_MyImage}}/>---<$macrocall 
> $name='image-picker2' actions="<$action-setfield $tiddler='$:/_MyImage' 
> $value=<<imageTitle>>/>"/>*
>
> But if you add something to the beginning, then everything breaks down!
> https://i.imgur.com/6zb4df6.jpg
>
> And even the old code doesn't work anymore. Why? What am I doing wrong?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a1940dc8-9daf-4720-b00f-417c816a0582n%40googlegroups.com.

Reply via email to