Currently there are millions of articles which can take information from Wikidata for coordinates, shapes, geoshapes of related places and Commons .map files. There are also tons of geographic items outside of the Earth, which may use location maps to show the coordinates.
I will try to make a system which allows to discrimate which is the situation and then show the correct map, so we can automate even more the templates.
There are some experiences regarding this:
But we should have a system to make it exportable without deep knowledge.