Multilingual Wiki Documentation

You are currently using syntax.
In an attempt to improve PlantUML documentation...
Please do not use this website for your own diagrams.
You can click here and use the online server here for your own documentation.

Wiki Toc    Recent changes    View page history    Add new chapter    Reorder page    Raw

Upgrading note (about Links and Hyperlinks)

Hyperlinks have been introduced in iterative mode so there have been some slight syntax changes with different versions. Starting with version 8058, syntax about hyperlink is now clearly defined and stable.

Unfortunately, there are some tiny changes from previous legacy syntax, so you may have to update your existing source diagrams. This is something we do not like, because we try to guarantee ascending compatibility as far as possible. But in some cases, we have to move forward.

The good news is that older legacy diagrams will still be generated by newer versions of PlantUML. The only impact is that some links may be displayed differently, so we think it is an acceptable change.

Format definition

Simple link

Simple links are define using two square brackets.

Example: [[]]

Link with optional label

It is possible to give an optional label that will be printed instead of the link itself. A space is used as separator after the URL itself.

Example: [[ This label is printed]]

Link with optional tooltip

Finally you can also have an optional tooltip using round brackets, just after the URL and before the optional label.

Example: [[{Optional tooltip} This label is printed]]

Links in sequence diagram

The following example lists some links features:

actor Bob [[]]
actor "This is [[ Alice]] actor" as Alice
Bob -> Alice [[]] : hello
note left [[]]
  a note with a link
end note
Alice -> Bob : hello with [[{Tooltip for message} some link]]
note right [[]] : another note
note left of Bob
You can use [[ links in notes]] also.
end note

Links in class diagram

class Car [[]]
class Wheel [[]]
note left [[]]
end note
Car *-- Wheel [[]] : has some

There is a special syntax with 3 square brackets in class definition when you want to define a link on field or method. For example:

class Car {
  - Some field [[[]]]
  Some method() [[[]]]

Links in activity diagram

[[]]:Some activity;
:Some [[ link]];

Please report any bugs to or here.
This website is still in beta testing.