planned comparisons - contrast coefficients - trends

I’m going to conduct planned comparisons with contrast analysis in ANOVA.
In particular I am interested in trend analysis. The problem is that I have n=11 groups and I suppose that my trend is quadratic.
What are the contrast coefficients for 11 groups?
Is there any universal equation which helps to calculate these coefficients?

Thanks a lot!