[00:27:19] guaravgrover95: I gave you a response last night [00:27:54] guaravgrover95: Having to do with your .js file you were trying to add, you can look at just the .js file from the link you posted, and put it in a skin, extension, or common.js [01:24:53] hello, I have a question about the pagelinks table (https://www.mediawiki.org/wiki/Manual:Pagelinks_table). If the pl_from value represent a redirect page, then this ID should be unique in the table, right? [01:25:10] *represents [01:27:46] what ID? [01:29:09] Vulpix: e.g. ID 10 (the first) [01:30:26] I'm trying to process wikipedia dumps but for some reason my program ends up finding multiple redirects starting with the same ID. [01:30:57] that table has no ID [01:31:16] pl_from [01:34:14] you may have a redirect and more wikitext under it. Even if the page is a redirect and content is not displayed, I'm pretty sure links and other metadata is parsed and stored anyway [01:36:44] Vulpix: bloody hell, you're right. I was already thinking my program is mixing up data because random articles mention a Camel (the animal), but now I realize that's actually the case: https://en.wikipedia.org/w/index.php?title=AmoeboidTaxa&redirect=no [01:37:35] damn, that sure complicates things. thanks a lot for the info! [01:38:03] yw [09:47:06] hey [09:47:24] i want to retrieve a webpage using mediawiki API [09:47:34] which module / parameter should be used ? [09:49:41] arcade_: You want html or wikitext? [09:50:08] arcade_: And by "webpage", you mean an article on wikipedia? [09:51:05] html [09:51:13] yeah [09:52:13] Niharika: which module should be used [09:52:22] what i basically want is an QML application that uses [09:52:29] mediawiki API to retrieve a webpage [09:52:31] that's all for now [09:52:49] i am confused between opensearch and query module [09:54:56] arcade_: https://www.mediawiki.org/wiki/API:Tutorial#Magic_recipes This has something. [09:54:58] Let me check. [09:55:32] ok [09:55:38] i will check the link in meantime :) [09:56:02] arcade_: try action=parse [09:56:12] arcade_: Also, some people like parsoid [09:56:48] https://en.wikipedia.org/api/rest_v1/?doc [09:57:08] bawolff: can i use parsoid in API calls ? [09:57:29] i want my application to only use API calls and get results [09:57:30] I'm not sure I understand the question [09:57:44] what i mean is can i call parsoid using API ? [09:57:50] like action=parse [09:57:58] is there something like that for parsoid ? [09:57:59] parsoid is an alternate api for getting page html, that formats the html differently then the normal api [09:58:06] oh [09:58:07] by parsoid I mean https://en.wikipedia.org/api/rest_v1/?doc [09:58:23] I guess technically I mean the "REST api". parsoid is technically the backend [09:58:34] ah !! let me read the page :) [09:59:09] arcade_: /w/api.php?action=query&format=php&prop=revisions&list=&titles=San_Francisco&rvprop=ids%7Ctimestamp%7Ccontent&rvlimit=1 [09:59:24] thanks Niharika [09:59:29] arcade_: By the way, feel free to play around with the API Sandbox. Links on the page. [09:59:42] ok [09:59:45] Niharika: That should get you the wikitext, I think you need &rvparse for the html [09:59:55] yes , i want html [10:00:06] bawolff: Ah, right! [10:01:20] is there any way to get html [10:01:27] ? [10:01:45] arcade_: What bawolff said. [10:01:50] parsoid ? [10:02:12] action=parse [10:03:05] arcade_: Well either or [10:03:14] Both give html, but they give different html [10:03:30] different in what ways ? [10:03:45] will it be same as what user see in browser [10:03:52] i mean if browser give : 123 [10:04:00] will action=parse give 123 ? [10:04:50] arcade_: Both action=parse and parsoid will look the same. parsoid html structure is more html5-ish if that makes sense, and some people think it is prettier. action=parse is what you get on a normal web view (not counting the chrome ui) [10:05:31] and the prop=revisions thing Niharika mentioned above also gives the same type of html as action=parse [10:05:50] ok !! [10:05:58] bawolff: just a bit more help [10:06:10] what i want with my application is to first get a html [10:06:18] and i will display it with qwebview [10:06:26] qwebview is qt module [10:06:29] to render html [10:06:33] or qwebkit [10:06:36] i just want html [10:06:54] i guess i will find out by trying all 3 ? [10:06:55] :D [10:07:01] Either should work [10:07:13] ok then i will first go with action=parse :) [10:07:23] action=parse might be closer to what people normally see on the internet [10:07:23] thanks babel_ and Niharika [10:07:31] thanks bawolff [10:07:42] cool :D [10:08:12] That said, I don't think action=parse will include the css stylesheets, so you might have to include that yourself [10:09:47] damn [10:09:54] :( [10:10:29] will prop=revision provide it ? [10:10:43] i will read the docs . maybe i will find something [10:10:43] :D [13:02:47] morning [13:25:00] ayy [13:27:34] Alright, I think the mediawiki-vagrant image is probably just defunct at this point. Doesn't even mirror the mediawiki directory, just maps specific parts of it, and there's no way to specify what version of Mediawiki to use, and manually doing so doesn't work because database incompatabilities and no access to maintenance/update.php because only a few select folders are mirrored [13:29:15] Not to mention the performance issues, so I'l go get the blackjack and report back on that. [13:36:34] chrome [13:42:40] CZauX: Are you talking about the mediawiki-vagrant image in general or some modified version you're using? [13:56:07] In general, mines not modified. Problem is that its built-in to download the latest branch, so I got 1.28 yesterday which is broken for a lot of stuff. Today I got 1.27 after they pulled 1.28 back, but I want 1.26, but no config option so I'l have to modify the actual script for it [16:57:05] hello [16:57:50] I got very old database of mediawiki, but no frontend, it is impossible to determine version rather than searching for version of mediawiki inside database [16:58:12] any ideas where I could check for the mediawiki version inside database ? [17:01:25] why do you want to know? [17:01:41] because frontend is gone [17:02:00] dontTrackme: you could try to compare the database schema [17:02:01] there is no other way to know version rather than searching database [17:02:29] compare against newewst version ? [17:03:31] dontTrackme: look at the database schema patches here: https://github.com/wikimedia/mediawiki/blob/master/includes/installer/MysqlUpdater.php#L35 and try to figure out if the columns being added/removed in each version exist in your wiki [17:03:57] this should allow you to pinpoint the version [17:04:38] thanks MatmaRex [17:04:39] dontTrackme: we also have this in the manual: https://www.mediawiki.org/wiki/Manual:Database_layout#Version_history but this only lists the tables, and tables aren't added/removed that often [18:51:19] Hey! I got a question that is not related to semantic wiki but I don't really know where to ask besides here. I want to edit the header/body content but I have no idea where that piece of HTML code is located. Does someone know? Just got from the semantic wiki IRC, glad I found this channel. [18:51:48] Kinda copypaster my question [18:52:12] pasted* [19:11:57] hey everyone [19:12:07] can someone confirm this API call ? [19:12:09] https://en.wikipedia.org/w/api.php?action=parse&page=Dragon_Ball_Z&format=json [19:12:20] does this call give wikitext or html [19:12:35] it's in json format i know [19:12:45] but the text field it looks so confusing [19:14:45] arcade_: Why do you want json? [19:15:16] i still want HTML [19:15:23] but i guess it wont give me pure html [19:15:38] arcade_: https://en.wikipedia.org/w/api.php?action=parse&page=Dragon_Ball_Z [19:16:11] &jsonformat=2 sometimes makes the json look less confusing [19:16:29] jsonfm ? [19:16:30] right [19:17:03] okay i think parse will work for me :) [19:17:10] i have yet to test the parsoid API [19:17:20] 1 thing i almost forgot to ask [19:17:30] does parsoid expose it's server ? [19:17:35] i don't want to run it locally [19:18:05] parsoid is an API right ? , can i call it normally like i call mediawiki API [19:18:23] yeah [19:18:31] Well there's the parsoid api that you can use [19:18:47] technically you can also set up parsoid for yourself, but you probably don't want to do that [19:19:33] yeah [19:19:42] i want my application to work on mobiles too :) [19:21:06] bawolff: is there parsoid sandbox too ? [19:21:16] I don't think so [19:21:17] just like mediawiki api [19:21:21] ok [19:21:34] maybe the docs page kind of acts like one [19:21:40] great :)P [19:21:41] :)