Understanding placeholders and creating them

112 views
Skip to first unread message

Shash

unread,
Jun 13, 2015, 2:36:58 AM6/13/15
to tiddl...@googlegroups.com
Hi,

I am finding it difficult to understand the concept of place holders even after reading the docs in Tiddlywiki.com . I am trying to create a template having three placeholders in tags. Can you please help me in understanding this.

Thanks in advance!
Shash

Shash

unread,
Jun 13, 2015, 4:53:42 AM6/13/15
to tiddl...@googlegroups.com
Never mind. Figured it out myself.

:)
Shash

PMario

unread,
Jun 13, 2015, 8:06:15 PM6/13/15
to tiddl...@googlegroups.com
On Saturday, June 13, 2015 at 10:53:42 AM UTC+2, Shash wrote:
Never mind. Figured it out myself.

:)
Shash

Good! ... Could you share your findings. It may be useful for others too ;)
-mario

Alex Hough

unread,
Jun 14, 2015, 4:14:51 AM6/14/15
to TiddlyWiki
yes... sharing finding is is very useful.

I looked at this thread to see if Mario had given the answer

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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c80be716-d268-48e0-bcf6-aae77464c9e9%40googlegroups.com.

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

Shash

unread,
Jun 16, 2015, 8:00:25 AM6/16/15
to tiddl...@googlegroups.com
Oops sorry, Picking it up today.

Firstly you might need placeholders (especially tags) when you are creating a skeleton. It can be done by adding the below in the tags field. 
$(tag1)$

Here tag1 will be the place holder.

Now to use it is very simple. WE need another tiddler (other than the skeleton) to have the following. 

<$set name="tag1" value="To-Do">

You might be using it with a button to create a new tiddler with the skeleton. So you can have something like below. (make sure you have the newtiddler plugin available)

<$newtiddler title="Add content here" skeleton="$:/_event_Skeleton" class=<<tv-config-toolbar-class>>></$newtiddler>

Let me know if this could suffice or you need me to add more information for this.

Regards
Shash
Reply all
Reply to author
Forward
0 new messages