Format definition
Simple link
Simple links are define using two square brackets (or three square brackets for field or method on class diagram). Example:[[http://plantuml.com]][[]](empty link)
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:[[http://plantuml.com 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:[[http://plantuml.com{Optional tooltip} This label is printed]]
Only tooltip
You can also have only a tooltip using round brackets. Example:[[{A tooltip}]]
Only tooltip and label
You can also have only a tooltip using round brackets, and a label. Example:[[{A tooltip} This label is printed]]
URL authentication
With URL authentication it is possible to provide an authentication method, credentials, and a proxy config to URL endpoints.
Links contained curly bracket
A link can contain some curly brackets.
|
🎉 Copied!
|
|
[Ref. QA-13489]
Links in sequence diagram
The following example lists some links features:
|
🎉 Copied!
|
|
Links in class diagram
|
🎉 Copied!
|
|
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:
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
Links in activity diagram
On activity label
|
🎉 Copied!
|
|
On partition
|
🎉 Copied!
|
|
[Ref. QA-542]
Link in State diagram
You can add link on State diagram:
- local link on a word
- or link on the entire state shape
|
🎉 Copied!
|
|
Links in Network diagram (nwdiag)
|
🎉 Copied!
|
|
Links in JSON/YAML diagram
JSON
|
🎉 Copied!
|
|
YAML
|
🎉 Copied!
|
|
Links in notes
It is also possible to specify a link at the beginning of a note (the link applies to the full note), or inside a note (for a portion of the note).
|
🎉 Copied!
|
|
Links with explicit URL directive
You can use the url of|for XXX is [[yyy]] syntax:
On sequence diagram
|
🎉 Copied!
|
|
On class diagram
|
🎉 Copied!
|
|
On usecase diagram
|
🎉 Copied!
|
|
On component or deployment diagram
|
🎉 Copied!
|
|
[Ref. Incubation: URL in diagrams]
Links in arrow (or Hyperlinks in link or connection)
Class diagram
You can use the same syntax as above in the arrow name. It makes an underlined link:
|
🎉 Copied!
|
|
Or you can use this syntax. It doesn't underline the link, though it's still clickable:
|
🎉 Copied!
|
|
Component or Deployment diagram
FIXME
🚩
See Wanted features QA-6397
FIXME
|
🎉 Copied!
|
|
[Ref. QA-6397]
State diagram
FIXME
🚩
Same Issue
FIXME
|
🎉 Copied!
|
|
Specific SkinParameter for Link
hyperlinkColor
You can change thecolor value of the links with the hyperlinkColor setting.
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
[Ref. QA-2322]
hyperlinkUnderline
You can usehyperlinkUnderline to specify the presence and (in PNG only) thickness of hyperlink underlines.
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
[Ref. QA-2866, QA-15114, GH-1241, GH-1411]
topurl
You can usetopurl setting, in order to define the prefix for all the links on a PlantUML diagram, as:
|
🎉 Copied!
|
|
[Ref. QA-9016, QA-13179 ]
Other SkinParameter for Link
You can see also on:
Using (global) style
Without style (by default)
|
🎉 Copied!
|
|
With style
You can use style to change rendering of elements.
|
🎉 Copied!
|
|
[Ref. QA-8071]