Foreigners who lived in Shanghai from the mid-19th century until the mid-20th century called themselves Shanghailanders.