code-body: yes created: 20150117184156000 modified: 20240315144208842 tags: $:/tags/Macro title: $:/editions/tw5.com/wikitext-macros type: text/vnd.tiddlywiki \whitespace trim \procedure activatePluginTab() <$action-setfield $tiddler="$:/state/tab-1749438307" text="$:/core/ui/ControlPanel/Plugins"/> <$action-navigate $to="$:/ControlPanel"/> \end \procedure activateTiddlerWindow() <$action-sendmessage $message="tm-open-window" $param=<> windowTitle="Side by Side View" width="800" height="600" /> \end \procedure controlPanel-plugin-link() <$button actions=<> class="tc-btn-invisible tc-tiddlylink"> {{$:/core/images/options-button}} ~ControlPanel \end \procedure open-tiddler-in-window() \whitespace notrim <$button actions=<> class="tc-btn-invisible tc-tiddlylink"> open ''this'' tiddler in a new window \end \procedure activateEditionWindow(url) <$action-sendmessage $message="tm-open-external-window" $param=<> windowName="_edition" windowFeatures="width=800 height=600" /> \end \procedure open-external-window(url) \whitespace notrim <$button actions=<> class="tc-btn-invisible tc-tiddlylink"> open the ''example edition'' in a new window \end \procedure wikitext-example(src)
<$macrocall $name="copy-to-clipboard-above-right" src=<>/> <$codeblock code=<>/>

That renders as:

<$transclude $variable="src" $mode="block"/>

... and the underlying HTML is:

<$wikify name="html" text=<> output="html"> <$codeblock code=<>/>
\end \procedure wikitext-example-without-html(src)
<$macrocall $name="copy-to-clipboard-above-right" src=<>/> <$codeblock code=<>/>

That renders as:

<$transclude $variable="src" $mode="block"/>
\end \procedure wikitext-example-table-header() wiki textrenders as \procedure wikitext-example-table-row(id, code) <> <$codeblock code=<>/> <> \end \procedure tw-code(tiddler) <$codeblock language={{$tiddler$!!type}} code={{$tiddler$}}/> \end \procedure tw-code-link(tiddler) [[$tiddler$]]: <> \end \procedure flex-card(class,bordercolor:"",backgroundcolor:"",textcolor:"",imageField:"image",captionField:"caption",subtitle:"",descriptionField:"description",linkField:"link") <$link class={{{ [addprefix[tc-card ]] }}} to={{{ [getelse] }}}>
!is[blank]addprefix[5px solid ]] }}} style.background={{!!background}} style.backgroundColor=<> style.color=<> style.fill=<>> <$list filter="[has[ribbon-text]]" variable="ignore">
get[ribbon-color]else[red]] }}}>
<$text text={{!!ribbon-text}}/>
<$list filter="[has]" variable="ignore">
<$image source={{{ [get] }}}/>
<$transclude field=<>><$view field="title"/>
<$list filter="[!is[blank]]" variable="ignore">
<$text text=<>/>
<$transclude tiddler={{!!icon}}/>
<$transclude field=<> mode="block"/>
<$list filter="[all[current]has[button-text]]" variable="ignore">
<$text text={{!!button-text}}/> {{$:/core/images/chevron-right}}
\end