Given a filter like [tag[introduction]]
, how can I modify the formatting of the displayed results, for example like adding white-spaces between each one, or setting up a bullet list out of them?
Here for more info about TiddlyWiki filters.
Given a filter like [tag[introduction]]
, how can I modify the formatting of the displayed results, for example like adding white-spaces between each one, or setting up a bullet list out of them?
Here for more info about TiddlyWiki filters.
You're much more likely to get a quick answer on the google groups.
A filter by itself does not render anything, widgets do... and subsequently macros.
So, simply put, your desired item-format inside the list widget that renders it:
Tip: Try any of this creating a test tiddler directly on http://tiddlywiki.com.
This renders a link to each iterated item on the list showing its title. Notice the
at the end to provide for simple spacing.When the inner text of a list widget starts with an empty line, TiddlyWiki understands your code as wanting to have block-level paragraph elements, rather than an inline list.
However, I sometimes prefer using a nice »
»
and a trailing newline via<br>
...Alternatively you can use a template tiddler defining the item template, i.e.
With a standard template ...
This is perhaps the cleanest approach as it allows you to reuse that template elsewhere.
Alternatively, use the list-links macro to output simple link lists, e.g.:
Note: Notice the syntax differences between a macro and a widget call, i.e. double angle brakets and colons for (optionally named) parameters, rather than attrib="value".
You can easily wrap this in your custom css class, e.g.
To properly render tables or definition lists, use html tags outside and inside...
Here's an a bit more elaborate table syntax using a macro to generate a link...
For more, see...
http://tb5.tiddlyspot.com/#How%20to%20style%20lists