2014-06-17 16:56:31 +00:00
|
|
|
title: $:/plugins/tiddlywiki/tw2parser/macrodefs
|
|
|
|
|
|
|
|
\define tiddler(tiddler)
|
|
|
|
<$classictransclude tiddler = "$tiddler$"/>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define slider(chkUniqueCookieName tiddler label tooltip)
|
2014-09-16 14:03:00 +00:00
|
|
|
<span title=$tooltip$><$button popup="$chkUniqueCookieName$" class="tc-btn-invisible tc-slider">$label$</$button>
|
2014-06-17 16:56:31 +00:00
|
|
|
<$reveal type="nomatch" text="" default="" state="$chkUniqueCookieName$" animate="yes">
|
|
|
|
<$classictransclude tiddler = "$tiddler$"/>
|
|
|
|
</$reveal></span>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define __system_tabinstance(state, currentTab, prompts, labels)
|
2014-09-02 10:16:59 +00:00
|
|
|
<span title=<<entryof "$currentTab$" """$prompts$""">> ><$button set=<<qualify "$state$">> setTo="$currentTab$" selectedClass="tc-tab-selected">
|
2014-06-20 07:52:37 +00:00
|
|
|
<<entryof "$currentTab$" """$labels$""" >>
|
2014-06-17 16:56:31 +00:00
|
|
|
</$button></span>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define __system_tabs(tabsList,prompts,labels,state:"$:/state/tab")
|
2014-09-02 10:16:59 +00:00
|
|
|
<div class="tc-tab-buttons">
|
2014-06-17 16:56:31 +00:00
|
|
|
<$list filter="$tabsList$" variable="currentTab">
|
2014-06-20 07:52:37 +00:00
|
|
|
<$macrocall $name="__system_tabinstance" state="$state$" prompts="""$prompts$""" labels="""$labels$""" currentTab=<<currentTab>>/>
|
2014-06-17 16:56:31 +00:00
|
|
|
</$list>
|
|
|
|
</div>
|
2014-09-02 10:16:59 +00:00
|
|
|
<div class="tc-tab-divider"/>
|
|
|
|
<div class="tc-tab-content">
|
2014-06-17 16:56:31 +00:00
|
|
|
<$list filter="$tabsList$" variable="currentTab">
|
|
|
|
<$reveal type="match" state=<<qualify "$state$">> text=<<currentTab>> default="$default$">
|
|
|
|
<$classictransclude tiddler=<<currentTab>> />
|
|
|
|
</$reveal>
|
|
|
|
</$list>
|
|
|
|
</div>
|
|
|
|
\end
|