I am trying to use the Wikipedia API to get HTML content from Wikipedia. I can’t find the correct way to embed this. Since styles are not expanded, I woudld imagine I would need to specify the stylesheets used in the head of the HTML that embeds it.
How do I know what the correct CSS to include are?
The answer is to add headitems in the api request, like so:
http://en.wikipedia.org/w/api.php?action=parse&page=Doritos&prop=text|headitems
That gives you another xml node, the content of which you can plop in the HEAD element of your HTML.