On Friday, April 15, 2016 at 9:34:20 AM UTC-7, Martian wrote:
>
> I am trying to get in target tiddler not just a content on transcluded 
> {{}}, but wrapped with <div id={{!!title}}>{{}}</div>
>

Ironically, the syntax you wrote above to describe your desired goal is 
exactly correct:
<div id={{!!title}}>
{{TranscludedTiddler}}
</div>

* The TWCore extends parsing of HTML syntax and expands any TextReferences 
or Macros/Variables used as attribute values.  Thus, all the following are 
valid in TW:

<div id="foo">    = standard HTML double quotes (literal value)
<div id='foo'>    = standard HTML single quotes (literal value)
<div id=[[foo]]>  = TWCore alternative quotes (literal value... *NOT* a 
link!)
<div id={{foo}}>  = TWCore TextReference (value from tiddler/field)
<div id=<<foo>>>  = TWCore Macro/Variable (value from macro/variable) 

Thus, for your purposes, you could write a custom macro, like this:
\define mytransclude(source)
<div id="$source$">
<$transclude tiddler="$source$"/>
</div>
\end

<<mytransclude "SomeTiddler">>

enjoy,
-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/6b02d6e0-6a43-4205-a48e-513f0a51bdfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to