Wrote slideThis macro today. It transcludes a tiddler as a slider. The 
tiddler is required to have a field “caption”.

Would be great to modify the macro so it’s using the title if there’s no 
caption field. If you know how, please help.

Enjoy!

\define tw-wikilinks() no

\define slider(caption,state,text)
<$reveal type="nomatch" state="$:/state/slider/$state$" text="show">

;$caption$ <$button class="btn-invisible" set="$:/state/slider/$state$" 
setTo="show">{{$:/core/images/chevron-right}}</$button>
</$reveal>
<$reveal type="match" state="$:/state/slider/$state$" text="show">

;$caption$ <$button class="btn-invisible" set="$:/state/slider/$state$" 
setTo="hide">{{$:/core/images/chevron-left}}</$button>

$text$
</$reveal>
\end

\define slideThis(tiddler)
<$macrocall $name=slider caption="<a 
href='#$tiddler$'>{{$tiddler$!!caption}}</a>" state="$tiddler$" 
text="{{$tiddler$}}"/>
\end

​

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to