Template:piecewise doublet