On PlantUML, you can mix all diagram type and make sub-diagram.
To activate this feature, the sub-diagram must:
- begin with
{{
- end with
}}.
Here is a basic example of sub-diagram, with adding an Activty diagram on a note on a Class diagram:
[Ref. QA-6947]
By default the background color of a sub-diagram is white.
This can be solved by adding skinparam Backgroundcolor transparent to the sub-diagram.
Besides being used in other elements or notes, they can also be used in messages.
For this, the sub-diagram must be all on one line:
Sub-diagram can only herite of the handwritten skinparam from the hosted diagram, as:
[Ref. QA-9043]