In Commonwealth Realm monarchies, the full title is Leader of Her Majesty's Loyal Opposition.
Leader of the Opposition in the UK
Those who became PM after the end of their session as Leader of the Opposition are indicated in italic.
See also Her Majesty's official opposition (Canada).