On Sunday, September 20, 2015 at 12:13:10 AM UTC+12, Evolena wrote:
>
> The first issue you're encountering here is that the term/definition 
> syntax is "block mode", so you need a linebreak after your entering list 
> (else the whole content of the list is parsed as inline mode, and the 
> term/definition syntax is not recognized):
>
> <$list filter="[tag[Definitions]]">
>
> ; <$view field="title"/>
> : <$transclude field="defn"/>
> </$list>
>
> You can then have another issue: each ";    :" syntax for the definition 
> will be its own definition list, and you will have margins after each 
> term/definition couple.
> If you want to avoid that, you have to switch to HTML, in order to declare 
> the definition list outside the list widget (and this way you don't need 
> the extra linebreak...):
>
> <dl>
> <$list filter="[tag[Definitions]]">
> <dt><$view field="title"/></dt>
> <dd><$transclude field="defn"/></dd>
> </$list>
> </dl>
>

Taking this all one step further again, I'm trying to recycle this code for 
yet another purpose, and this time I'd like to format the <dt> (the term to 
be defined) as a link to the tiddler where that link is defined in the 
*defn* field. I tried changing the <$view> widget to the <$link> LinkWidget 
<http://tiddlywiki.com/#LinkWidget>, but couldn't then work out how to 
constrain it by the outer <$list> widget that is being used here. There is 
no *field* parameter in <$link>, so I wasn't sure how to use it. Any advice?

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/6ca1c951-0d58-4bc1-9b86-e24387c844d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to