title: $:/plugins/tiddlywiki/dynaview/macros
tags: $:/tags/Macro
\define transclude-when-visible(tiddler,mode:"block",state,minHeight:"1em",loadingText:"…")
<$reveal state=<<__state__>> type="match" text="visible" tag="div">
> data-dynaview-set-value="visible">
<$transclude tiddler=<<__tiddler__>> mode=<<__mode__>>/>
$reveal>
<$reveal state=<<__state__>> type="nomatch" text="visible" tag="div">
> data-dynaview-set-value="visible">
$loadingText$
$reveal>
\end