For in countries/cities, I always thought it was either "à" (usually for cities, except for a small number of cases e.g. au Canada, au Japon), and "en" for countries.
E.g. J'habite à Melbourne.
J'habite en Australie.
However the above example says j'habite DANS le Yorkshire... how can you live INSIDE a place?