Every city ordinance regulating the operation or equipment of motor vehicles or regulating traffic shall apply to the private ways, streets, lanes, and alleys of mobile home parks, trailer parks, and campgrounds containing five or more lots for occupancy by mobile homes, travel trailers, or tents.