Mediawiki custom bbcode?

Started by SilverKnight, October 21, 2014, 10:32:54 am

Previous topic - Next topic

SilverKnight

I am just wondering if using this, one could develop a Mediawiki custom bbcode to grab data from a custom mediawiki?

Chen Zhen

October 21, 2014, 11:29:09 pm #1 Last Edit: October 21, 2014, 11:31:57 pm by Napalm
This will depend on the source site of the wiki data whereas said site must provide an api in ie. json_array format.
This type of setup will allow one to develop the appropriate javasvript and html to gather and display the data.
an example wiki api is here:
http://en.wikipedia.org/w/api.php?format=json&action=query&titles=Main%20Page&prop=revisions&rvprop=content
This mod can then gather and display such data.

If no api is supplied then you can just scrape a wiki page for the necessary data but this can result in very poor performance and is not recommended.