Prior to 1891, Inverkeithing parish had a detached portion entirely surrounded by Dunfermline parish. The village of North Queensferry, on the other hand, was part of Dunfermline parish.
On 15th May 1891, the following subjects were transferred from the parish of Inverkeithing to the parish of Dunfermline: Brucehaven, Milesmark, Whitemyre Foundry, Blackburn, Logie, Urquhart, North Urquhart, Lady's Park and some properties in Dunfermline Burgh.
On the same date, the following subjects were transferred from Dunfermline parish to Inverkeithing parish: Carlingnose, Ferryhills, North Cliff, Fernbank House, Ferrybarns, Rockville, St Margaret's, and the whole village of North Queensferry.
Also on the same date, a part of Dunfermline parish north of the south march of Moreland (comprising Moreland House & Moreland Hill lands) was transferred from the parish of Dunfermline to the parish of Cleish in the county of Kinross. This formalised an arrangement by which the area had been treated as being part of the county of Kinross for some time.
A Vision of Britain provides historical descriptions, population & housing statistics, historic boundaries and maps.