I don't have all of the exact codes, but these are the ones I know. The position dictates the type and the letter dictates the code.
D - Model Name -
E - Body Style - 4 Door Sedan
P - Transmission - 4 Speed Auto, Floor Shift
D - Trim Grade -
K - Engine -
Q - Market - Australia