Adding as statement does not convert %page%

0 votes
asked Apr 7, 2023 in Question / help by anonymous

If you add an as statement like below, %page% will not be converted. Is there any workaround?

@startuml

footer Page %page%

Alice -> Bob

Alice2 as a2

@enduml

1 Answer

0 votes
answered Apr 7, 2023 by The-Lu (64,340 points)

Hi A., and all,

It seems that `%page%` is only for sequence diagrams, then your diagram is not a sequence diagram (it is a use-case diag.,...):

to turn to a sequence diagram, just insert `actor` keyword, as:

@startuml

footer Page %page%

Alice -> Bob

actor Alice2 as a2

@enduml

And see the expected result with `%page%`:

Enjoy,
Regards.

...