I interpret your desire to make on-the-fly instructions for users.
Contents of MessWithYourFolder:
blah-blah <br/>
Navigate to <$text text={{{ [[C:\]addsuffix{!!title}] }}} /> <br/>
blah2-blah2 <br/>
The <br/> 's are necessary so they don't run together.
The text widget causes the triple brackets to return as text, not a link.
The triple brackets append the title to the directory name. The !!title
contains the name of the title of the tiddler passed at invocation.
Invoke like:
{{Bob's Folder||MessWithYourFolder}}
Note that the template goes AFTER the name of the target tiddler, and that
they are separated by a double pipe || .
On Wednesday, December 23, 2020 at 3:04:15 PM UTC-8 [email protected]
wrote:
> I'd like to define a tiddler. Let's call it MessWithYourFolder. Imagine
> this tiddler contains something like:
>
> blah-blah
> Navigate to C:\{FOLDER_NAME}
> blah2-blah2
>
> I'd like to transclude it from one tiddler and tell it to replace
> {FOLDER_NAME} with "Bob's Folder". I'd like to transclude it from another
> tiddler and tell it to replace {FOLDER_NAME} with "Mary's Folder".
>
> I'm thinking it is something like:
>
> - {{MessWithYourFolder|Bob's Folder}}
> - {{MessWithYourFolder|Mary's Folder}}
>
> When I read about parametric transclusion, it's over my head. What's the
> simplest syntax to define a tiddler to be transcluded with a single
> variable value to be replaced when transcluded, and how do you transclude
> that tiddler.
>
> TIA
>
--
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/3250f0be-1ea5-4b8d-82ac-07721da12e80n%40googlegroups.com.