>
>  
>
>> It's best experienced - and the tiddler says it better than pasting it 
>> here.
>>
>> Please drag the attached tiddler into https://tiddlywiki.com/ and 
>> import. 
>> In the side bar, Click the the Recent tab, and open the tiddler.
>>
>
> NIIIIIIICE! thank you S.S.! 
>
>>
>> Click the links at the top and within the tiddler, and then please read 
>> it right to the very end to understand what is being shown.
>>
>> Thanks.
>>
>>
>>
Instantly made two macros using your method

one transcludes a tiddler and gives it an id starting with #, then the 
title of the tiddler where it's transcluded, then the title of the 
transcluded tiddler

the other one creates a link to that transcluded tiddler within the same 
tiddler

\define transclude-inneranchor(tiddler:"",field:"text",mode:"block")
<span id={{{ 
[[$(storyTiddler)$]addsuffix<__tiddler__>encodeuricomponent[]addprefix[#]] 
}}}>
<$transclude tiddler=<<__tiddler__>> field=<<__field__>> mode=<<__mode__>>/>
</span>
\end
\define transclude-innerlink(tiddler:"")
<a href={{{ 
[[$(storyTiddler)$]addsuffix<__tiddler__>encodeuricomponent[]addprefix[##]] 
}}}>link to inner-transcluded $tiddler$</a>
\end


I guess it won't work that well if the same tiddler is transcluded more 
than once within the same storyTiddler using the transclude-inneranchor, 
but I hardly do that

It will also fail a bit if used outside of story tiddlers

but ... good enough for many things! thanks again,

btc

-- 
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 post to this group, send email to [email protected].
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/90b8d95d-2416-404f-9619-20f063b7d45b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to