The format of the citations on Wikipedia, by and large, follows one of two standard citation models, with the exciting names Citation Style 1 (https://en.wikipedia.org/wiki/Help:Citation_Style_1) and Citation Style 2 (https://en.wikipedia.org/wiki/Help:Citation_Style_2). These are easy to parse, when they are using the standard templates. Lesser used ...
If you know how to code with Python, perhaps this script might be helpful to you.
As for the links (but not for article titles and dates), one can use the MediaWiki API's prop=externallinks function, as in:
As Tgr wrote, the references should be ...
Cities only have point geometry, so how do you define the "boundary"? Taking
https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries#Places_within_1_km_of_the_Arc_de_Triomphe_(Q64436) as an example, here are Wikidata entries within 1 km of London:
SELECT ?place ?placeLabel ?page ?location ?dist WHERE