• wished for the past: subject + wish + subject + past subjunctive
  • wished for the present: subject + wish + subject + past perfect

http://www.bbc.co.uk/learningenglish/english/course/upper-intermediate/unit-16/session-4