Melt the dark chocolate either in short 20 second bursts in the microwave, or in a bowl over a pan of hot water on the hob (make sure that the base of the bowl doesn't touch the water in the pan if you're using this method). Once melted, set the chocolate aside to cool slightly, otherwise it will melt the margerine when added to the icing.
Add the margarine and vanilla extract to a large bowl and beat with an electric mixer for a few minutes until smooth and pale (you can also do this by hand, but the finished result might not be as light and creamy).
Add the icing sugar to the margarine gradually, beating slowly with the mixer to begin with, and then increasing the spead once the icing sugar is mixed in better. Beat the icing on a high speed until it's really light and creamy (this should take a few more minutes.
Pour the cooled melted chocolate into the buttercream and combine thoroughly. Chill the icing in the fridge whilst you get ready to decorate.
Once the cakes have cooled completely, take the buttercream out and use it to fill a piping bag with a large star nozzle. In a slow, spiral motion, begin the pipe the buttercream on top of your cupcakes. For a rose shape, start your swirl from the middle of the cupcale and swirl outwards towards the edges. For a classic swirl shape, start your swirl from the edges of the cupcake and swirl inwards towards the centre (once you reach the centre, push down very gently and then pull the piping bag up towards you to create a pointy top).
Finished cupcake will keep for up to 3 days. Store in a cool, airtight container.