Hi,
I was wondering if anyone knows of a nice clever way to get a simple non-html, text-only listing of the core MW version info and the extensions installed and their versions (no parser hooks, libraries, etc..) just the installed elements and versions of them.
The goal is to have a nice simple way to attach that info to a support thread without having to craft it by hand and update it each time manually.
Thanks! -Rich
API via siteinfo should give you what you need
On Fri, Sep 15, 2017 at 9:33 AM Evans, Richard K. (GRC-H000) < richard.k.evans@nasa.gov> wrote:
Hi,
I was wondering if anyone knows of a nice clever way to get a simple non-html, text-only listing of the core MW version info and the extensions installed and their versions (no parser hooks, libraries, etc..) just the installed elements and versions of them.
The goal is to have a nice simple way to attach that info to a support thread without having to craft it by hand and update it each time manually.
Thanks! -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
W00t! Thanks (y)
-----Original Message----- From: MediaWiki-l [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of John Sent: Friday, September 15, 2017 9:53 AM To: MediaWiki announcements and site admin list Subject: Re: [MediaWiki-l] extension to get Mediawiki version in copy/paste text form for support
API via siteinfo should give you what you need
On Fri, Sep 15, 2017 at 9:33 AM Evans, Richard K. (GRC-H000) < richard.k.evans@nasa.gov> wrote:
Hi,
I was wondering if anyone knows of a nice clever way to get a simple non-html, text-only listing of the core MW version info and the extensions installed and their versions (no parser hooks, libraries, etc..) just the installed elements and versions of them.
The goal is to have a nice simple way to attach that info to a support thread without having to craft it by hand and update it each time manually.
Thanks! -Rich _______________________________________________ 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
Hmm... https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop... responds with: ... "*": "Unrecognized value for parameter "siprop": name." ...
Which contradicts the documentation at: https://www.mediawiki.org/wiki/API:Siteinfo#Extensions
thoughts? -Rich
"Name" is not siprop subparameter. Igal
2017-09-15 17:48 GMT+03:00 Evans, Richard K. (GRC-H000) < richard.k.evans@nasa.gov>:
Hmm... https://en.wikipedia.org/w/api.php?action=query&meta= siteinfo&siprop=extensions|name responds with: ... "*": "Unrecognized value for parameter "siprop": name." ...
Which contradicts the documentation at: https://www.mediawiki.org/wiki/API:Siteinfo#Extensions
thoughts? -Rich _______________________________________________ MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
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) Ty -Rich
-----Original Message----- From: MediaWiki-l [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of ???? ?????? Sent: Friday, September 15, 2017 11:07 AM To: MediaWiki announcements and site admin list Subject: Re: [MediaWiki-l] extension to get Mediawiki version in copy/paste text form for support
"Name" is not siprop subparameter. Igal
2017-09-15 17:48 GMT+03:00 Evans, Richard K. (GRC-H000) < richard.k.evans@nasa.gov>:
Hmm... https://en.wikipedia.org/w/api.php?action=query&meta= siteinfo&siprop=extensions|name responds with: ... "*": "Unrecognized value for parameter "siprop": name." ...
Which contradicts the documentation at: https://www.mediawiki.org/wiki/API:Siteinfo#Extensions
thoughts? -Rich _______________________________________________ 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
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.
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.
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
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
mediawiki-l@lists.wikimedia.org