Use a parser function like {{#property:p159}} in the wiki text of the article on Wikimedia Foundation. This will return “San Francisco” as that is the headquarter location of the non-profit.