Sorry,

<$plantuml source={{Combined}}/>

above, fails

Regards
Tony

On Wednesday, August 1, 2018 at 10:24:42 AM UTC+10, TonyM wrote:
>
> Chris,
>
> I am not sure I am answering your question here, but building up an 
> understanding.
>
> I just tried the following with success, however the field version needs a 
> way to indicate new lines to work properly
>
> \define plantuml(source)
> [[plantuml[
> $source$
> ]]]
> \end
> \define my-diagram()
> :In Macro: -left-> (LEFT) 
> :In Macro: -right-> (RIGHT) 
> :In Macro: -up-> (UP)
> :In Macro: -down-> (DOWN)
> \end
> <$macrocall $name=plantuml source=<<my-diagram>>/>
> <$macrocall $name=plantuml source={{!!field-diag}}/>
> <$macrocall $name=plantuml source={{Diagram Tiddler}}/><$plantuml source
> =<<my-diagram>>/>
> <$plantuml source={{!!field-diag}}/>
> <$plantuml source={{Diagram Tiddler}}/>
>
> <$plantuml
> width="300px"
> tooltip="The Real Hunger Games™?"
> source="
> title Vegan Nutrition
> repeat
> while (Hungry?) is (Yes)
>   :Eat Healthy;
>   note right
>     No Animal Products
>     Certainly No Dairy
>   end note
> endwhile (No)
> repeatwhile (Go To Sleep)
> "/>
>
> <$plantuml
> width="256px"
> output="img"
> tooltip="The Real Hunger Games™?"
> source="
> title Vegan Nutrition
> repeat
> while (Hungry?) is (Yes)
>   :Eat Healthy;
>   note right
>     No Animal Products
>     Certainly No Dairy
>   end note
> endwhile (No)
> repeatwhile (Go To Sleep)
> "/>
>
> The last two are great, as if you r-click save image as you can save the 
> image as svg or png and import back into the wiki without needing to be 
> online.
>
> For your posted problem I split the diagram into two tiddlers with two 
> lines each
>
> An the following partially work, with the first line in the first tiddler 
> not treated correctly
>
> <$plantuml source={{Diagram Tiddler 1}}/>
> <$plantuml source={{Diagram Tiddler 2}}/>
>
> <$wikify name=one-diag text="{{Diagram Tiddler 1}}{{Diagram Tiddler 2}}">
> <$plantuml source=<<one-diag>>/>
>
> <$plantuml source={{Combined}}/>
>
> <$wikify name=one-diag text="{{Combined}}">
> <$plantuml source=<<one-diag>>/>
>
> Combined Tiddler
> {{Diagram Tiddler 1}}{{Diagram Tiddler 2}}
>
> Diagram Tiddler 1
> In tid: -left-> (LEFT)In tid: -right-> (RIGHT)
>
> Diagram Tiddler 2
> In tid: -up-> (UP)In tid: -down-> (DOWN)
>
> Now I would love to play with generating images from tioddlywiki info, or 
> linking to tiddlers.
>
> Regards
> Tony
>
>
> On Wednesday, August 1, 2018 at 3:58:03 AM UTC+10, Chris Lynch wrote:
>>
>> Hi Tony,
>>
>> That is great advice and I also think you might have turn on the light 
>> bulb.
>>
>> I had figured out how to generate <<variableormacroresult>> used in your 
>> hint, but I didn't appreciate I could call the plantuml macro with the 
>> basic macro call syntax. Makes sense now, but I didn't *really* understand 
>> that principle or grasp its flexibility.
>>
>> I'll give it another go tonight. I'm replying now mostly to provide the 
>> plantuml plugin links. I'm becoming a fan of plantuml, which is surprising 
>> to me since I am a professional visual programmer 
>> <https://en.wikipedia.org/wiki/Visual_programming_language>. [
>> https://en.wikipedia.org/wiki/Visual_programming_language]
>>
>> Tobias Beer's TW5 plugin 
>> <https://tobibeer.github.io/tw5-plugins/#plantuml> [
>> https://tobibeer.github.io/tw5-plugins/#plantuml] and anibalch's TWc 
>> plugin <https://github.com/anibalch/tiddlywiki-plantuml>. [
>> https://github.com/anibalch/tiddlywiki-plantuml]
>>
>> Cheers and Thanks!
>>
>> On Tuesday, July 31, 2018 at 1:30:55 AM UTC-7, TonyM wrote:
>>>
>>> Chris,
>>>
>>> I will have a look at this later in detail but I recommend you simplify 
>>> the problem when you cant find the answer.
>>>
>>> Try your various alternatives first out side of your  <$plantuml widget.
>>> Perhaps use set or wikify to prepare the value you want to place insided 
>>> the widget but see the result first
>>> When calling the widget try using the macrocall widget as it is more 
>>> robust at giving it variables
>>>
>>> <$macrocall $name=plantuml text=<<variableormacroresult>> />
>>>
>>> Please remind me where to find plantuml
>>>
>>> Regards
>>> Tony
>>>
>>>
>>>
>>> On Tuesday, July 31, 2018 at 4:33:37 PM UTC+10, Chris Lynch wrote:
>>>>
>>>> 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
>>>>
>>>

-- 
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/5b8e3993-8486-4296-8af0-a627efcf5554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to