yUML Macro
Last modified by Mireille Blay-Fornarino on 2023/04/25 09:19
Draws UML diagrams using yUML.
Examples
Class Diagram
{{yuml}}
[Customer]+1->*[Order]
[Order]++1-items >*[LineItem]
[Order]-0..1>[PaymentMethod]
{{/yuml}}
[Customer]+1->*[Order]
[Order]++1-items >*[LineItem]
[Order]-0..1>[PaymentMethod]
{{/yuml}}
Generates:
Activity Diagram
{{yuml type="activity"}}
(start)-><d1>logged in->(Show Dashboard)->|a|->(end)
<d1>not logged in->(Show Login)->|a|
{{/yuml}}
(start)-><d1>logged in->(Show Dashboard)->|a|->(end)
<d1>not logged in->(Show Login)->|a|
{{/yuml}}
Generates:
Use Case Diagram
{{yuml type="usecase"}}
[User]-(Login)
[User]-(Logout)
(Login)<(Reminder)
(Login)>(Captcha)
{{/yuml}}
[User]-(Login)
[User]-(Logout)
(Login)<(Reminder)
(Login)>(Captcha)
{{/yuml}}
Generates:
Parameters
- type
- The type of diagram to draw. Valid values are "class", "activity", "usecase". Default is "class".
- style
- The style of diagram to draw. Valid values are "nofunky", "plain", "scruffy". Default is "plain"
- scale
- The scale of diagram in percents of the default size. Implicit default value is 100.
- dir
- The layout orientation of diagram to draw. Valid values are "LR" (Left to right), "RL" (Right to left), "TB" (Top down).