Related matter;

I recall on my own learning journey that much of the Tiddlywiki.com 
documentation had ONLY example with literals

eg;

<<macro tiddlername subtiddler>>

The above is true but limited!

More often that not the user wishes to provide the value "tiddlername" 
programmatically, such as a result of concatenation.

Of course we learn that to do so using the macrocall Widget but this 
suggests to me every macro documented should have is variouse formes of 
"macrocall" documented as well.

eg `<<tag tagname>>` <$macrocall $name=tag tag={{!!mytag}}/>

With a note on how to find the names of parameters because you cant provide 
parameters without a name in macrocalls.

*My point this more useful form of every macro is rarely documented.*

Regards
Tony


On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:
>
> I know and am very thankful of the many items of advice I have received in 
> the past. But I am still frustrated - there must be some core element I am 
> not understanding.
>
> The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. I 
> know this all depends on how the item is being used but a simple cheat 
> sheet with many examples would be really useful. I don't find the 
> Tiddlywiki documentation easy to follow, bits are all over the place and 
> none of the examples address my problems I find.
>
> For example, why does this not work?
>
> <$button>
> <$action-setfield
>      $tiddler="$:/TLS/exhibition_id"
>      $value={{!!exhibition_id}}
> />
> <!--append the exhibition_id to the exhibition id field in each artwork-->
> <$list filter="[tag[Mark]]">
>      <$action-setfield 
>           $field="exhibition_id" 
>           $value=<<TLSconcatenate {{!!exhibition_id}} 
> {{$:/TLS/exhibition_id}}>>
>      /> 
> </$list>
>
> Link Artworks to Exhibition
> </$button>
>
>
> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
> stored in the exhibition_id field of each artwork selected and not the 
> transcluded values.
>
> TLSconcatenate is a simple macro to concatenate two strings
>
> \define TLSconcatenate(head tail) $head$$tail$
>
> bobj
>
>

-- 
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/4011f45d-044b-4dad-85d2-81adf06759e7o%40googlegroups.com.

Reply via email to