Several special pages in MediaWiki (I am thinking of the “pager” class in particular) do this frustrating thing where they combine data and presentation logic, meaning you can’t get access to the underlying data except as an HTML table. This means you either get the table and transform it how you wish, or you do a raw database query to get the same data anyway. Maybe one day I will fix this.
On September 15, 2017 at 8:56:01 AM, יגאל חיטרון (khitron@cs.bgu.ac.il) wrote:
There are some (maybe many) special pages that can't returm raw information (compare Special:Randompage with Special:RandomInCategory for example). Maybe it's better to think how to make all them same, in place of creation a raw version one by one. Igal
2017-09-15 18:51 GMT+03:00 [[kgh]] mediawiki@kghoffmeyer.de:
I see the usecase and I thing issue and bug reports could very much benefit from that. Wouldn't this be something for MediaWiki core to provide via a special page or some action raw to special Version that just emits the raw data in a copy paste way except for the descriptions?
Cheers Karsten
Am 15.09.2017 um 17:44 schrieb Bartosz Dziewoński:
On 2017-09-15 17:11, Evans, Richard K. (GRC-H000) wrote:
Ok.. forgive me for being slow in understanding this. This API interface is new to me. Are you saying I can't get*just* a list of extension names and corresponding versions from the API? If so, is it easy to show me how? (sorry to have to ask)
No, you can only get the entire JSON structure.
If the goal is to "to have a nice simple way to attach that info to a support thread", then you can probably just copypaste the entire thing? Otherwise, you'll have to extract extensions' names from it.
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l