If it simplifies what the post above says, each chord is made with the notes available in the key in question. So in C major, the notes in the scale for a D, E, or A triad would include a minor 3rd, and for a C, F, or G, the third in each chord would be a major 3rd.
Diminished chord follows...