Trying to learn to manipulate a template tiddler

78 views
Skip to first unread message

passingby

unread,
Sep 24, 2017, 7:08:41 AM9/24/17
to TiddlyWiki
Hello guys,
I am trying to learn to manipulate TW5 and it seems to be proving a tough job. Maybe my brain is not what it used to be. Mainly I cannot find examples to learn from, and sometimes from the point where I stand right now, an example might have many different elements (mainly the widgets) that need to be understood. Anyways, I thought instead of wasting whole weekend searching and getting tired, why not ask over here. One short and quick answer might go a long way.

So I am trying to achieve what I could achieve TWC back in the day :-) ie creating 2 templates, an EventViewTemplate and an EventEditTemplate. These templates would be used on a tiddler which would be tagged 'event'. 
For now I just want to know If I put this is TestViewTemplate (a practice tiddler to try out things):
------------------------------------------------------------
<$list filter="[is[current]tag[test]]">

@@background-color:yellow;
Hello, my title is {{!!title}}
@@

''this should be bold''

__this should be underlined__

|this|is|a table|
|some|data|in the table|

</$list>
-------------------------------------------------------
and then create another tiddler tagged 'test' then I notice that bold and underlining works as intended BUT the table does not render as a table. Why is this?

Mark S.

unread,
Sep 24, 2017, 9:34:37 AM9/24/17
to TiddlyWiki
The problem with the cut/paste way of presenting your problem is that you may have changed something subtlety. Your code works fine when I try it. Also, I can't tell of course if your tiddler is a standard tiddler. It might help to export your template tiddler as a tid or JSON and then add it as a file to your post.

I'm guessing that you had spaces or non-visible characters at the end of your table structure that prevented it from formatting correctly, which got trimmed away when you pasted it into the forum.

You're brain seems to be doing fine!

Good luck!
Mark

passingby

unread,
Sep 24, 2017, 10:26:48 AM9/24/17
to TiddlyWiki
Ah! you are right Mark. Yes, it was an issue of space or a newline. In my tiddler text the table did not have an empty line before it. The text i pasted over here got a newline when I tidied it up for readability. Adding the same to my tiddler got the intended result.

Thank you Mark!
Reply all
Reply to author
Forward
0 new messages