Perfect! Thank you both!
I see the 'title' variable or $_$, depending on whether I use a transclude
or a macro. What would 2 variables look like? How about 3?
In reality, this is going to be a long, long set of instructions for
setting up 2 routers. 95% or more of the setup is identical, but there are
several values which are unique to one router or the other.
On Wednesday, December 23, 2020 at 7:11:49 PM UTC-5 Brian Radspinner wrote:
> Rather than simple transclusion, you can use a macro with a parameter.
>
> Make a new tiddler and tag it with *$:/tags/Macro*. Include the following:
>
> \define folderStuff($_$)
> blah-blah<br/>
> Navigate to C:\$_$<br/>
> blah2-blah2
> \end
>
> Save this macro tiddler.
>
> In another tiddler where you want the directions to appear, type:
>
> <<folderStuff "Mary's Folder">>
> <<folderStuff "Bob's Folder">>
> etc...
> On Wednesday, December 23, 2020 at 5:06:41 PM UTC-7 Mark S. wrote:
>
>> 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/fbb7da6a-d34e-43f8-8763-51193d9bb619n%40googlegroups.com.