Hey all,
Currently, I'm using two macros to shortcut some field displays from a set
of data tiddlers. One simply links to the target field of a data tiddler,
where the other displays the target field and renders it as wiki text.
\define vf-link(field)
<$list filter="[is[current]has[$field$]]">
<$reveal type="nomatch" stateTitle=<<currentTiddler>> text="">
<$link to={{!!$field$}}>{{!!$field$}}</$link></$reveal>
</$list>
\end
\define vf-display(field)
<$list filter="[is[current]has[$field$]]"><$reveal type="nomatch" stateTitle
=<<currentTiddler>> text="">
<$wikify name="md" text={{!!$field$}} type="text/x-markdown" output="html"
><<md>></$wikify>
</$reveal>
</$list>
\end
The vf-display macro when rendering automatically inserts a line break
before and after the displayed text. The code in question for my UI
template looks like this:
This character is a <<vf-display "level-cr">> <<vf-link "heritage">> <<vf-link
"ancestry">> <<vf-link "class">>
But it displays like:
This character is a
level-cr
Link-heritage Link-ancestry Link-class
Any advice how I could get it to look like:
This character is a level-cr Link-heritage Link-ancestry Link-class
I would prefer to keep this as modular as possible and refrain from using
another macro for this specific instance. The full wiki is here
<https://drive.google.com/file/d/1KEmExsrXx5HV8qY8W0dx_IA3HvCfvjxI/view?usp=sharing>
for more context.
Thanks,
Reece, the Discord guy
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/6ccd7a44-f53b-435d-abf6-2247a7d40384%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.