Wikipedia and you likely have no contract. If you don't have to click "I agree" to access the data, its likely there is no contract. Therefore this is a pure IP law question. The ONLY IP law issue that I see is copyright. The DATA is not subject to copyright. Only the expression of that data. So copying the html and selling that IS potential copyright infringement. Copying the data in some other format and using that is not.
Finally, even if you do copy the full html (i.e. full expression), this MAY be licensed by their terms of use (as you suggested they have licensed some content). That is a more particularized legal question that I can't answer here.