On Friday, March 1, 2019 at 2:20:03 PM UTC-8, Shareen wrote:
>
> Does anyone know if I am calling this correctly?
> ...
>
Hamlet: <$wikify name=randy text=<<RollDice num_dice: '1' dice_size: '2'
> dice_add:'0'>> ><$transclude $name="Available List"
> index=<<randy>>/></$wikify>
>
You've used the wrong parameter name in the $transclude widget!
It's supposed to be "tiddler" ... not "$name"... like this:
Hamlet: <$wikify name=randy text=<<RollDice num_dice: '1' dice_size: '2'
dice_add:'0'>> ><$transclude tiddler="Available List" index=<<randy>>/></
$wikify>
Without the correct parameter name, the transclusion looks for the index in
*the current tiddler* rather than "AvailableList". The reason that
{{AvailableList##Hamlet}} worked is because the {{...}} syntax implictly
sets the currentTiddler to "AvailableList", so that the default use of
currentTiddler within the retrieved index value will still get the desired
result.
That should fix it. Let me know how it goes.
-e
--
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/72468026-44a1-4bf2-9b09-d3cdb8498f44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.