Wish/If only + past simple → present wish. + past perfect → past regret. + would → wish for change in behaviour.
I wish I was/were taller.
When we wish about a present situation that isn't true, we use the past simple (was/were), not the present tense. Here, you're not tall now, so we say 'I wish I was/were taller,' even though it refers to the present.
If only she had worked harder last term.
The past perfect (had + past participle) follows 'if only' when we regret something that already happened in the past. She didn't work hard last term, so we say 'if only she had worked harder,' not 'has worked' (which is present perfect and wrong here).
I wish it would stop raining!
When wishing for a change in a situation or weather condition, we use 'would' after 'wish,' not 'will' or 'had.' This expresses frustration about something you want to change right now: 'I wish it would stop raining.'
He wishes he had made a different choice.
We use the past perfect (had made) after 'wishes' to express regret about a decision made in the past. He made a choice before, and now regrets it, so 'had made' is correct, not 'makes' (present) or 'made' (simple past without 'had').
I wish I could speak Japanese.
The modal 'could' follows 'wish' when expressing a desire for an ability or skill you don't have. Here, you cannot speak Japanese, so 'could' fits the meaning; 'can' is the present form (wrong for a wish), and 'would' is for changes in situations, not abilities.
If only they were here now!
With 'if only' expressing a present wish, we use the past simple (were), even though the situation is happening now. They aren't here right now, so we say 'if only they were here now,' treating it like an unreal present situation.
She wishes he wouldn't make so much noise.
When annoyed at someone's behaviour and wanting them to stop, we use 'wouldn't' after 'wishes' to express the desired change. She wants him to make less noise, so 'wouldn't make' is correct; 'doesn't' is present tense (wrong for a wish), and 'didn't' doesn't match the pattern.
I wish I had more time right now.
The past simple (had) follows 'wish' when you want something in the present that you don't have now. You don't have time right now, so we use past simple 'had,' not present 'have' or past perfect 'would have' (which isn't used with direct wishes).
If only I had listened listened to her advice!
The past perfect (had listened) follows 'if only' to express regret about something that didn't happen in the past. You didn't listen to her before, so 'had listened' is correct; 'listened' alone is simple past (wrong without 'had'), and 'would listen' is wrong because it looks to the future.
He wishes he had become a doctor instead.
When regretting a choice made in the past, we use the past perfect (had become) after 'wishes.' He isn't a doctor now because of a past decision, so 'had become' expresses this regret; 'becomes' is present (wrong here), and 'became' alone doesn't show the completed action clearly.