This is my take on a fine example created by @jerieljan. To see their explanation, check out How I Do PlantUML.
Take a look at the comments of the Example.puml file. Based on those comments and the explanation from the aformentioned Gist, you should be able to put a small example together.