Template:Shared output functions