I was expecting…
<$transclude $variable="..." $template="my-template" />
But $template
is not a supported attribute of $transclude
– so how?
Here is a construct I use fairly often: I want to replace line 5 with line 6.
1 <$let tiddler="$:/.rgt/bk/data/macro-doc-ui">
2 <h2><$text text=<<tiddler>>/></h2>
3 <div class="ad-hoc-fields-editor-div">
4 <$fieldmangler $tiddler=<<tiddler>>>
5 <!-- {{$:/.rgt/bk/data/macro-doc-ui||$:/core/ui/EditTemplate/fields}} -->
6 <$transclude $variable=<<tiddler>> $template="$:/core/ui/EditTemplate/fields"/>
7 </$fieldmangler>
8 </div>
9 </$let>
AFAICT, reading the docs...
-
“transclusion” articles talk about wikitext
{{...}}
and{{{...}}}
-
$transclude
explains how to use the new and old mechanisms but doesn’t talk about shortcuts and doesn’t mention templates -
“template” articles talk about “transclusion” but don’t mention
$transclude
Am I missing something obvious?