Hi,
I would like to preview pages modifications in a Java program (http://en.wikipedia.org/wiki/User:NicoV/Wikipedia_Cleaner/Documentation).
Currently, I am using the following : * API parse function to retrieve the HTML code * Cobra for rendering the HTML code in my Java program (http://lobobrowser.org/cobra.jsp)
The only think I am missing is a basic set of CSS styles for the page to be rendered like on Wikipedia by default.
Is there a way to retrieve the list of CSS files that should be used for rendering ? Otherwise, do you know what are the CSS files that I should use ?
Nico
------------------------------------------------------------- Noos, votre bureau virtuel sur Internet : Mail... Web : webmail.noos.fr
nvervelle@numericable.fr schreef:
Is there a way to retrieve the list of CSS files that should be used for rendering ? Otherwise, do you know what are the CSS files that I should use ?
Err, I *think* those would be: (prefix all URLs with http://en.wikipedia.org/ )
/skins-1.5/common/shared.css?104 /skins-1.5/monobook/main.css?104 /skins-1.5/common/commonPrint.css?104 /w/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400 /w/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400 /w/index.php?title=-&action=raw&gen=css&maxage=2678400&smaxage=0&ts=20080119231710
Note that the 104 number will be incremented when the .css files are changed.
Roan Kattouw (Catrope)
nvervelle@numericable.fr wrote:
Hi,
I would like to preview pages modifications in a Java program (http://en.wikipedia.org/wiki/User:NicoV/Wikipedia_Cleaner/Documentation).
Currently, I am using the following :
- API parse function to retrieve the HTML code
- Cobra for rendering the HTML code in my Java program (http://lobobrowser.org/cobra.jsp)
The only think I am missing is a basic set of CSS styles for the page to be rendered like on Wikipedia by default.
Is there a way to retrieve the list of CSS files that should be used for rendering ? Otherwise, do you know what are the CSS files that I should use ?
Nico
XX.wikipedia.org/skins-1.5/common/shared.css XX.wikipedia.org/skins-1.5/common/main.css XX.wikipedia.org/w/index.php?title=MediaWiki:Common.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400 XX.wikipedia.org/w/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=2678400
mediawiki-api@lists.wikimedia.org