Mediawiki syntax parser for android

I need help getting the contents of a mediawiki page and displaying it in an Android app. I found that mediawiki has an api that can export markup text, but I need to somehow analyze it.

Other solutions are also welcome, but I just don't want to include the entire page (with the menu and that's it) as a web view.

+3
source share
2 answers

You can get HTML only for the content section (i.e. not including the menu and that's it) by specifying the action=renderpage as usual when retrieving it. You can get the same result using the API action=parse. In any case, you could provide your own HTML, style sheets, etc. For the correct display to the user.

+1
source

If you control a wiki, it’s best for you to use a mobile format that uses Wikipedia. Otherwise, it will depend on how the markup text that it returns looks like. If markup is what you see in the wiki editor, you may have problems. Wikipedia, for example, makes extensive use of templates (or whatever they call them). I am not sure that you can do much if you do not have the actual temple code.

http://www.mediawiki.org/wiki/Markup_spec, .

0

All Articles