Impossible to rename a wiki link in a sequence diagrams

0 votes
asked Sep 21, 2015 in Bug by anonymous
Hi,

In a "state diagram", in plantuml, we can name a wiki links "Please Click Here" if we write:

State1-->State2 : [[ThiS.LinK.WikI.PagE]] Please Click Here

But in a sequence diagram, impossible to rename the wiki link "[[ThiS.LinK.WikI.PagE]]":

@startuml
(*)--> "test" as A0
A0 -->[true] "[[ThiS.LinK.WikI.PagE]]"  
A0 -->[false] "texte false"
@enduml

Is-this a bug ? Or I have not found the good syntax ?

Thanks for any help

1 Answer

0 votes
answered Sep 21, 2015 by plantuml (298,440 points)

Thanks for your feeback.

The situation is confusing because the syntax was not normalized when we have introduced it.
Anyway, the following example is working:

@startuml
' Working example:
Bob -> Alice : Please click [[ThiS.LinK.WikI.PagE]]
' Legacy syntax example (you should not use it)
Bob -> Alice : [[ThiS.LinK.WikI.PagE]] This is also clickable
@enduml


http://www.plantuml.com/plantuml/svg/SoWkIImgAStDuNBAJrBGjLDmpCbCJbMmKWZ8IKqiJbL81dAp5QAZGp8oW_LyClEyzS8piptr0XBJNMDZqVNWKAO052rM0AB4dE9yY8c9IJcfN0wfUIb0cm40

We will probably remove the legacy syntax example, so you should not use it.

Hope it helps!
 

commented Sep 25, 2015 by anonymous
ok, thanks for this quick answer,  but In fact my question was not good : it does not work in ACTIVITY diagramms, and this is the main problem (sorry, I have wrote sequence diagramms in my question):

@startuml
(*)--> "activity 0" as A0
A0 -->[hello] "Activity 2" as A2
A0 -->[crpa] "activity 1"
--> [disabled] A2
@enduml

How do-you make "activity 2" to be a wiki Link for exemple. I have try you answer, it's ok for sequence diagramms, but it does not work for activity diagramms
commented Sep 25, 2015 by plantuml (298,440 points)
You can have:

@startuml
(*)--> "activity 0" as A0
A0 -->[hello] "Activity 2 [[ThiS.LinK.WikI.PagE]]" as A2
A0 -->[crpa] "activity 1"
--> [disabled] A2
@enduml

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuTBGqjJLjLDGIamkoIpBBAbKC51II2nMS3JWSZHG0Cf4PwJcvEJ7AYWvmXGOAKH7XsHa1klvPEPvwuLdPdlg1IIckyR6GZGQmJGc5nKanY8PRAZ41R8fEYMpE34f9pKb5gJM8JKl1UWC0000
or

@startuml
(*)--> "activity 0" as A0
A0 -->[hello] "[[ThiS.LinK.WikI.PagE]]" as A2
A0 -->[crpa] "activity 1"
--> [disabled] A2
@enduml

http://www.plantuml.com/plantuml/png/SoWkIImgAStDuTBGqjJLjLDGIamkoIpBBAbKC51II2nMS3JWSZHG0Cf4PwJcvEJ7AYX5HuTaP0Rh-MJcUUk5PsPxwWKafhl6na9K6y5K9nSL9COYcMQen0KoFZebipWnAISr9HQarY4rBmLeDm00

Is this what you are trying yo do ?
...