\define fff-display-block(field:"")
<$list filter='[is[current]has[$field$]]'>
<$transclude field="$field$" mode="block"/>
</$list>
\end
"""
text
<<fff-display-block "test">>
text
"""
TextOnetext
Rather than transclude would this work?
{{!!$field$}}<br>
I don't think you need block mode if you add the break.
Regards
Tony
--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/14ce1a47-1d65-4837-9014-f52e0fd3784c%40googlegroups.com.
title: $:/mystylesheet
tags: $:/tags/Stylesheet
type: text/css
text:
.thenameoftheclassthatyoufound {padding-top:0; padding-bottom:0}
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
http://pharmayap.tiddlyspot.com/ here's the demo I posted, I think. Let me know if that works.
\define fff-display(field:"")
<$list filter='[is[current]has[$field$]]'>
<$transclude field="$field$" mode="block"/>
<
/$list>
\end
@@.myclass
"""
Text
<<fff-display "test">>Text
"""
@@
<style>
.myclass p { margin-block-end:0; }
</style>
Text
<<fff-display "test">>Text
Text
<<fff-display "test">>
Text
\define fff-display(field:"")
<$list filter='[is[current]has[$field$]]'>{{!!$field$}}<br>
</$list>
\end
Text<br>
<<fff-display "test">>
Text
\define fff-display(field:"")
<$list filter='[is[current]has[$field$]]'>
{{!!$field$}}
</$list>
\end
"""
Text
<<fff-display "test">>
Text
"""
.row ul {
margin-top: 0 ;
margin-bottom: 0;
}
yields ...
\define fff-display-transclude(field:"")
<$list filter='[is[current]has[$field$]]'>
*''{{!!$field$}}''<br>
</$list>
\end
text<<fff-display-transclude "test">>text
<ul>
<li>tester</li>
</ul>
text
<ul>
<li><<fff-display-transclude "test">></li>
<li><<fff-display-transclude "test">></li>
</ul>
text
<style>
ul {
display: block;
list-style-type: disc;
margin-top: 0em;
margin-bottom: 0 em;
margin-left: 0;
margin-right: 0;
padding-left: 40px;
}
</style>
text
<ul>
<li><<fff-display-transclude "test">></li>
<li><<fff-display-transclude "test">></li>
</ul>
text
*<<fff-display-transclude "test">>
*<<fff-display-transclude "test">>
text
<ul class="classname">
<li>''<<fff-display-transclude "test">>''</li>
</ul>
<ul style="margin-top: 0em; or whatever">
<li>''<<fff-display-transclude "test">>''</li>
</ul>
Have you tried:.row ul { margin-top: 0 ; margin-bottom: 0; }