Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PlantUML - Long description with nest brackets

Tags:

plantuml

I'm trying to draw a long description square with nested components.

Something like

node mynode [
<<device>>
--
long description here
] {
    artifact "a nested element"
}

The processor give me error until I remove the long description bracket (or viceversa, I decide to remove the nested element). Therefore, if both elements are presents, some problems occurs.

like image 639
Fabrizio Stellato Avatar asked Dec 06 '25 20:12

Fabrizio Stellato


2 Answers

How about this:

@startuml
node "<<device>>\n----\nlong description here" as mynode {

artifact "a nested element"
}
@enduml

enter image description here

like image 70
Fuhrmanator Avatar answered Dec 10 '25 13:12

Fuhrmanator


If simple text long description is enough, then you can just put description in quotation marks and use alias:

database "Some long description" as oracle1 {
  storage data
}
actor user 
user --> oracle1

Rendered diagram

If more complex description is required then you can use nested diagrams. But in this case you can't link elements of nested diagrams with elements of the outer diagram.

rectangle rect1 [
Long long description
---
Some more
===
{{
  rectangle nested1
  rectangle nested2
  nested1 --> nested2
}}
]
rectangle rect2

rect1 ---> rect2

enter image description here

like image 30
Timur Bobrus Avatar answered Dec 10 '25 14:12

Timur Bobrus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!