Template:join comma

Usage

{{join comma|one|two}} returns one, two if both parameters are present, otherwise just one or two