[TW5] WikiText Formatting in a List Template

89 views
Skip to first unread message

Marc J. Cawood

unread,
Jan 8, 2016, 5:26:58 AM1/8/16
to TiddlyWiki
Giving TW5 another go after a decade of TW Classic and just trying to get a simple list going. In this case I'd like the recent tiddlers as an unformatted list as in:
* TiddlerOne
* TiddlerTwo
* Etc...

When I use this:

<$list filter="[!is[system]has[modified]!sort[modified]limit[50]]">
<<currentTiddler>>
</$list>

I get the links in a row. When I use this:

<$list filter="[!is[system]has[modified]!sort[modified]limit[50]]">
* <<currentTiddler>>
</$list>

I get the same but with a * character preceding each link. So I add a space and some progess is made:

<$list filter="[!is[system]has[modified]!sort[modified]limit[50]]">

* <<currentTiddler>>
</$list>

This is slightly better but has unwanted (vertical) space between links.

What am I missing?

Tobias Beer

unread,
Jan 8, 2016, 6:07:05 AM1/8/16
to tiddl...@googlegroups.com
Hi Mark,

I'd like the recent tiddlers as an unformatted list...

You need to use the simplest of all widgets, the TextWidget, to just get the unwikified text:

<$list filter="[!is[system]has[modified]!sort[modified]limit[50]]">
<$text text={{!!title}}/><br/>
</$list>

I added a linebreak, <br/>, assuming you'd want each item on a new-line.

Best wishes,

Tobias.

Mat

unread,
Jan 8, 2016, 4:27:23 PM1/8/16
to TiddlyWiki
Even just <br> (no slash) is good.

<:-)

Matabele

unread,
Jan 8, 2016, 6:50:48 PM1/8/16
to TiddlyWiki
Hi Marc

Sometimes its best to use html markup to get the layout you want:

<ul>

<$list filter="[!is[system]has[modified]!sort[modified]limit[50]]">
<li><<currentTiddler>></li>
</$list>
</ul>

-- or as a table

<table>

<$list filter="[!is[system]has[modified]!sort[modified]limit[50]]">
<tr><td><<currentTiddler>></td></tr>
</$list>
</table>

regards
Reply all
Reply to author
Forward
0 new messages