I fear this may be a case of tldr; combined with me lacking understanding
of a pretty basic tiddlywiki concept. I really do appreciate your patience.
I'm trying to replace the output to this call of a plantuml widget
<$plantuml
source="
Class A
Class B
"
/>
by first creating three tiddlers, A:
Class A
B:
Class B
and C:
{{A}}{{B}}
and I then call the widget by using:
<$plantuml
source=
{{C}}
/>
but I get the string "{{A}}{{B}}" rather than what I hoped for "Class A
Class B".
As I said, I'm sensing this is a rookie error but if someone can point me
in the right direction I would greatly appreciate it.
Once again, thanks for your time and help.
Cheers - Chris
On Sunday, July 29, 2018 at 11:18:15 PM UTC-7, Chris Lynch wrote:
>
> I've been using the plantuml plugins for both TWc and TW5 recently and
> love it. Picture tiddlers are now replacing boring old text in my
> tiddlywiki ;-]
>
> Still learning plantuml, but I saw it has a include feature, which helps
> break large plantuml code blocks into smaller ones by calling included
> files. I'm assuming include won't work on TW5.
>
> However, it got me thinking that maybe I could transclude some plantuml
> tiddlers to obtain the same sort of result as the include function.
>
> I took a simple plantuml tiddler with:
>
> [[plantuml class="pretty" output="img" [
> @startuml
> class Class
> @enduml
> ]]]
>
> and I created a tiddler Class with just:
>
> class Class
>
> and then tried
>
> [[plantuml class="pretty" output="img" [
> @startuml
> {{Class}}
> @enduml
> ]]]
>
> but got:
>
>
> <https://lh3.googleusercontent.com/-23hM7RsmLvs/W16m2YRBxsI/AAAAAAAABg0/OG8xskYHergFtUBRBZcPEucEI3pntvqtgCLcBGAs/s1600/New%2BBitmap%2BImage.png>
>
>
> which wasn't what I wanted and the error told me I was literally getting
> {{Class}}, not its trancluded value.
>
>
> After reading tiddlywiki.com for awhile (and with head spinning a bit, I
> must admit) I stumbled upon trying:
>
>
> <$plantuml
> source={{Class}}
> />
>
>
> which worked and gave me encouragement. Then I tried to get fancier so I
> created a couple more tiddlers, PlantUmlSetup:
>
>
> skinparam defaultTextAlignment center
> skinparam class {
> BackgroundColor Azure
> ArrowColor Blue
> BorderColor Blue
> }
> skinparam stereotypeCBackgroundColor LightBlue
>
>
> and AllCode tiddler:
>
>
> {{PlantUmlSetup}}
> {{Class}}
>
>
> and then tried:
>
>
> <$plantuml
> source={{AllCode}}
> />
>
>
> which literally gave me:
>
>
> {{PlantUmlSetup}}
> {{Class}}
>
>
> Deja vu all over again. I'm hopeful a more experienced coder can get me
> going in the correct direction once again.
>
>
> Thanks for your time and any help!
>
> Chris
>
--
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/76d95d82-fd41-4c26-b0eb-82da9a2ecc59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.