Shah Jahan, the emperor who commissioned the Taj Mahal, gave Old Delhi a mosque on a city scale. Three great gateways open onto a courtyard with room for 25,000 worshippers.