Thanks a lot, I'll go through it carefully!

CG

On Sunday, August 8, 2021 at 10:56:10 PM UTC+3 Soren Bjornstad wrote:

> The links I gave you were to my TiddlyWiki textbook, not the TW 
> documentation. It might not be "self-contained" since it's intended to be 
> in the context of the whole course, but I think you'll find it more useful 
> than the TW documentation at your skill level.
>
> On Sunday, August 8, 2021 at 1:27:08 PM UTC-5 CarloGgi wrote:
>
>> Yes Soren, you are right: I have little understanding of the inner gears 
>> of text substitution and wikification in TW, nor did I find a thorough, 
>> comprehensive and self-contained guide to the matter so far: all the TW 
>> documentation I went through is a mess of scantly-explained (if ever), 
>> loosely-consistent, scattered bits of information, and this is a pity 
>> because the software has tremendous potentiality. Maybe you can point me to 
>> some good documentation anyway, of which I would be grateful.
>>
>> Thanks and regards,
>> CG
>>
>>
>> On Sunday, August 8, 2021 at 8:22:13 PM UTC+3 Soren Bjornstad wrote:
>>
>>> I second CJ in saying that the {{{ [<currentTiddler>addsuffix[whatever]] 
>>> }}} route is usually a better way to concatenate text, especially when you 
>>> don't know much TiddlyWiki.
>>>
>>> You're getting bitten by not understanding text substitution 
>>> <https://groktiddlywiki.com/read/#Text%20Substitution> and wikification 
>>> <https://groktiddlywiki.com/read/#Wikification>, which are both quite 
>>> complex and require you to understand how TiddlyWiki actually goes about 
>>> processing macros and rendering tiddlers. In contrast, your intuition will 
>>> usually work fine with filters.
>>>
>>> On Sunday, August 8, 2021 at 11:08:29 AM UTC-5 CarloGgi wrote:
>>>
>>>>
>>>> Hallo,
>>>> quite new to TW and I love it, though it is dramatically 
>>>> underdocumented and the whole docs are an almost unusable mess.
>>>>
>>>> To my biggest astonishment, when I try to dynamically build the name of 
>>>> a tiddler from inisde a macro, that macro output cannot be used from 
>>>> within 
>>>> a transclude widget.
>>>>
>>>> \define getMeTiddlerName(a_suffix) <<currentTiddler>>$a_suffix$ 
>>>>
>>>> <$list filter="whateveFilterHere">
>>>>     <$transclude tiddler=<<getMeTiddlerName "_EN">> /> <br/>
>>>> </$list>
>>>>
>>>> In the example above, I obtain the tiddler's name by adding suffix 'EN' 
>>>> to current tiddler, which the macro DOES, but then its output 
>>>> <<getMeTiddlerName "EN">> doesn't make transclude widget behave as 
>>>> expected.
>>>>
>>>> I also tried many combinations of single/double quotes, as for instance 
>>>> in:
>>>>
>>>>     <$transclude tiddler="<<getMeTiddlerName '_EN'>>" /> <br/>
>>>>
>>>> but no result at all: the transclude widget DOESN'T transclude the 
>>>> dynamically-built tiddler SOMETIDDLERNAME_EN
>>>>
>>>> Not even the simpler version with hard-coded suffix works:
>>>>
>>>> \define getMeTiddlerName() <<currentTiddler>>_EN 
>>>>
>>>> <$list filter="whateveFilterHere">
>>>>     <$transclude tiddler=<<getMeTiddlerName>> /> <br/>
>>>> </$list>
>>>>
>>>> Nor does it using double quotes for 'tiddler' parameter inside 
>>>> transclude widget:
>>>>
>>>> \define getMeTiddlerName() <<currentTiddler>>_EN 
>>>>
>>>> <$list filter="whateveFilterHere">
>>>>     <$transclude tiddler="<<getMeTiddlerName>>" /> <br/>
>>>> </$list>
>>>>
>>>> Thanks for helping, soooo frustrated!
>>>>
>>>> CG
>>>>
>>>

-- 
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/ab320849-dced-4031-b18e-25d505f314dcn%40googlegroups.com.

Reply via email to