I see you were talking to yourself, Are you fine now?
Personally I prefer using the html table tags especially when I use a list inside the table to generate rows and another for columns. Regards Tones On Tuesday, 10 August 2021 at 07:02:44 UTC+10 [email protected] wrote: > Well this works: > > \define davout-list(levels: "1,3,5") > <table> > <tr><th>Level</th><th>Blah</th></tr> > <$list filter="[[$levels$]split[,]]" variable="level"> > <tr><td><<level>> </td><td>Blah</td></tr> > </$list> > </table> > \end > On Monday, August 9, 2021 at 9:53:34 AM UTC-4 Louis Davout wrote: > >> \define davout-list(levels: "1,3,5") >> | ! Level | ! Blah | >> <$list filter="[[$levels$]split[,]]" variable="level"> >> >> | <<level>> | Blah | >> >> </$list> >> \end >> >> Removes the <p> tags but makes each row into its own table. >> >> On Monday, August 9, 2021 at 9:46:15 AM UTC-4 Louis Davout wrote: >> >>> >>> I'm trying to use the <$list> widget generate table rows. One is this >>> even possible. Two How? Here is simplified version of code I've tried. >>> >>> \define davout-list(levels: "1,3,5") >>> | ! Level | ! Blah | >>> <$list filter="[[$levels$]split[,]]" variable="level"> >>> | <<level>> | Blah | >>> </$list> >>> \end >>> >>> \define davout-list2(levels: "1,3,5") >>> | ! Level | ! Blah | >>> <$list filter="[[$levels$]split[,]]" variable="level"> >>> | <<level>> | Blah | >>> <$wikify name=wikifiedRow text=| <<level>> | Blah |> >>> <<wikifiedRow>> >>> </$wikify> >>> </$list> >>> \end >>> >>> <<davout-list>> >>> >>> <<davout-list2>> >>> >>> The html it generates: >>> <table><tbody><tr class="evenRow"><th align="center"> Level</th><th >>> align="center"> Blah</th></tr></tbody></table><p> >>> | 1 | Blah | >>> >>> | 3 | Blah | >>> >>> | 5 | Blah | >>> </p><table><tbody><tr class="evenRow"><th align="center"> Level</th><th >>> align="center"> Blah</th></tr></tbody></table><p> >>> | 1 | Blah | >>> > | Blah |> >>> | >>> >>> >>> | 3 | Blah | >>> > | Blah |> >>> | >>> >>> >>> | 5 | Blah | >>> > | Blah |> >>> | >>> >>> </p> >>> >>> It's closing the table and generating <p> tags. >>> --------------------------------------------------------- >>> A more general question. It's been stated that macros are text >>> substitution not functions that return a value. And they don't "evaluate". >>> I've seen first hand they don't return a value, but they do seem to at >>> least execute some code. For example they do call other macros: >>> >>> \define a() >>> <<b "here">> >>> \end >>> >>> \define b(where) >>> $where$ >>> \end >>> >>> <<a>> >>> >>> produces: >>> here >>> >>> So what are the rules for what macros will and will not "execute"? >>> >>> Thanks. >>> >> -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/13092a1e-1cf0-4477-9119-12345cdce2d6n%40googlegroups.com.

