Template tiddler

200 views
Skip to first unread message

juan erasmo gomez

unread,
Mar 18, 2016, 11:14:57 AM3/18/16
to TiddlyWiki
Hi

I'm a new user and I have a question about using templates to speed up my work flow with TW5.
I regularly create reading synopsis for academic literature in which I write some key pieces of information about each reference. All of the synopsis tiddlers follow the same patter:

''<full reference>''

!!!ABSTRACT
<abstract text>

! Reading date

! Why did I read this?

! What is the intention of the authors

! How credible is the paper?

What I want is to have a new tab in the side bar called Templates (I already managed to do this), and in that tab have a button that will create a new tiddler with the previous template and tagged with a specific tag.
Is this possible with TW5?
I've read a bit about Transclusion, but I just don't get it or and don't see how to achieve what I'm after using it.
Any help is welcome

Thanks,

Mat

unread,
Mar 18, 2016, 12:10:47 PM3/18/16
to TiddlyWiki
This should show the title of the template and a + button which creates a new tiddler based on the template.

\define newTid(template)
<$button message="tm-new-tiddler" param="$template$"
style
="padding: 0 3px 0 3px; background: none; border: 1px solid gray;" >
$
template$ {{$:/core/images/new-button}}
</$button>
\end

tag this with $:/tags/Macro

Have an original template tiddler called Abstract with the content, tags etc that you desire.

Call the macro like so wherever you want the newtid button to appear, like in your sidebar:

<<newTid "Abstract">>

There are probably more polished solutions but this should work.

<:-)

juan erasmo gomez

unread,
Mar 21, 2016, 5:04:06 AM3/21/16
to TiddlyWiki
Thanks Mat, this was exactly what I was looking for.

Alex Hough

unread,
Mar 21, 2016, 6:58:12 AM3/21/16
to TiddlyWiki
Juan,

This is useful for me too, thanks!

I am interested in TW use in academic research, i think there could be a lot of potential users for TW in this context. It seems to me that TW is a tool which engages its users in ways other software doesn't.

Have you used other tools before?

best wishes


Alex

--
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 tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/7016df63-7ef4-47e6-942f-f13624cc42a7%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages