Hi,
1. Is this the preferred way to ask questions? Is there a web-based forum I can use to ask questions/search for answers?
2. My questions: I am using the api's action=parse operation and am getting HTML that corresponds to said article.
a. Is there a way to avoid redirect in pages (automatically get all-resolved URLs)
b. Which CSS should I include in my HTML so that the formatting of the HTML will work properly? Not all styles are inlined. I could not find any info about this (really hard to search for Wikipedia-related programming elements - you keep hitting, well, Wikipedia. :))
Thanks, s
On Tue, Jan 24, 2012 at 1:46 AM, Shahar Prish Shahar@prish.onmicrosoft.com wrote:
1. Is this the preferred way to ask questions? Is there a web-based forum I can use to ask questions/search for answers?
Yes.
2. My questions: I am using the api’s action=parse operation and am getting HTML that corresponds to said article.
a. Is there a way to avoid redirect in pages (automatically get all-resolved URLs)
No.
b. Which CSS should I include in my HTML so that the formatting of the HTML will work properly? Not all styles are inlined. I could not find any info about this (really hard to search for Wikipedia-related programming elements – you keep hitting, well, Wikipedia. J)
Use &prop=text|headitems , like so:
https://en.wikipedia.org/w/api.php?action=parse&page=San_Francisco&p...
Roan
On Tue, Jan 24, 2012 at 1:54 AM, Roan Kattouw roan.kattouw@gmail.comwrote:
On Tue, Jan 24, 2012 at 1:46 AM, Shahar Prish Shahar@prish.onmicrosoft.com wrote:
b. Which CSS should I include in my HTML so that the formatting of
the
HTML will work properly? Not all styles are inlined. I could not find any info about this (really hard to search for Wikipedia-related programming elements – you keep hitting, well, Wikipedia. J)
Use &prop=text|headitems , like so:
https://en.wikipedia.org/w/api.php?action=parse&page=San_Francisco&p...
Roan
Looks like stylesheet aren't part of 'headitems'. Core skin and site stylesheets are linked in of the 'headhtml' property value. Although that's not very usable as a drop-in piece of html.
Module loader call is in neither..
Krinkle
mediawiki-api@lists.wikimedia.org