1 2 3|4 5 6|7 8 9|10
Tony
<$vars lst="X 1 2 3 4 5 6 7 8 9 10" >
<$list filter="X 3 6 9">
<$list filter="[enlist<lst>] +[allafter<currentTiddler>limit[3]]">
<<currentTiddler>>
</$list>|</$list>
</$vars>
<style>
.myelement:nth-of-type(3):after {content:"|";}
.myelement:nth-of-type(6):after {content:"|";}
.myelement:nth-of-type(9):after {content:"|";}
</style>
<$list filter="1 2 3 4 5 6 7 8 9 10">
@@.myelement
<$view field="title"/>
@@
</$list>
Mat is like a CSS wizard. I wouldn't have thought of doing it this way. He may have something more clever in mind, but based on his suggestion this seems to work:
<style>
.myelement:nth-of-type(3):after {content:"|";}
.myelement:nth-of-type(6):after {content:"|";}
.myelement:nth-of-type(9):after {content:"|";}
</style>
<style>
.myelement:nth-of-type(3n):after {content:"|";}
</style>
Using CSS is good idea. Can I with CSS convert my list to table with 3 columns and many rows?
<style>
.myelement:nth-of-type(3n):after {
content: "|\A";
white-space: pre;
}
</style>