Reece Working with your demo I came up with this
\define fff-display(field:"") <$list filter='[is[current]has[$field$]]'>{{!!$field$}}<br> </$list> \end Text<br> <<fff-display "test">> Text Or alternatively this \define fff-display(field:"") <$list filter='[is[current]has[$field$]]'> {{!!$field$}} </$list> \end """ Text <<fff-display "test">> Text """ Regards Tony On Saturday, March 7, 2020 at 12:05:40 PM UTC+11, Reece Shaw wrote: > > Hey Jeremy! > > http://pharmayap.tiddlyspot.com/ here's the demo I posted, I think. Let > me know if that works. > > To Tony's question; that still leaves too much padding for my liking. > > On Friday, March 6, 2020 at 9:09:38 AM UTC-5, Jeremy Ruston wrote: >> >> Hi Reece >> >> I think that the transclusion is likely to be generating a <P> tag around >> the content “One”, and if so it could be the margin of that P tag that >> you’re seeing. Could you post a demo to tiddlyspot? >> >> Best wishes >> >> Jeremy >> >> On 6 Mar 2020, at 05:21, Reece Shaw <carad...@gmail.com> wrote: >> >> Hello all, >> >> I figure this is a more appropriate question for the group than the >> discord. I am working on some basic conditional formatting for >> form-fillable tiddlers that display fields in a series of rows. To achieve >> this, I'm using simple macro to call the text from the desired field: >> >> \define fff-display-block(field:"") >> <$list filter='[is[current]has[$field$]]'> >> <$transclude field="$field$" mode="block"/> >> </$list> >> \end >> >> this is to pull from within the current filter and display the text >> formatted so that things like block quotes get picked up. The block quote >> tranclusion renders a small amount of padding on the top and bottom of the >> rendered text so that if you have a field "test" with the value of "one" it >> will render strangely >> >> >> """ >> text >> <<fff-display-block "test">> >> text >> """ >> >> Renders like: >> >> *Text* >> >> *One* >> >> >> *text* >> >> >> I've tested this in a fresh wiki and received the same result. I would >> prefer there to be no padding but also retain the ability for my block >> quotes to show up. Since I can't use the "inline" mode, what can I do to >> remove the padding? I have tried looking at the transclude widget code but >> I am quite JS naive so I'm not really sure what I could do there. >> >> Thanks, >> >> -Reece >> >> -- >> 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 tiddl...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/14ce1a47-1d65-4837-9014-f52e0fd3784c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tiddlywiki/14ce1a47-1d65-4837-9014-f52e0fd3784c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/28cccb5f-7273-47d0-b5f4-91c1aa0562f4%40googlegroups.com.