[04:03:07] Hi [04:09:46] hi [05:01:46] i'm having trouble getting the extract information out of a page with the following url [05:01:51] https://en.wikipedia.org/w/api.php?action=query&generator=search&gsrsearch=virtualreality&utf8&gsrlimit=10&gsrwhat=text&prop=extracts&exintro [05:02:14] the query returns two objects [05:02:31] the one with index 1 doesnt have anything to extract, why is that [05:03:54] originally i was using this set of parameters but its not giving me enough info about the wiki page to extract https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=virtualreality&srwhat=text [05:13:20] nvm excontinue=1 did the trick [05:59:38] if a query returns pages with indexes in them, does the order mean how close of a match it is? [05:59:55] like i did a query that returned two pages and one has the property index 1 [05:59:58] the other index 2 [08:26:19] I'm not sure if this is the right place to ask, but #wiktionary is dead [08:26:27] How do I get the definition of a word from wiktionary? [09:26:38] hello everyone.. I have a problem during execution of update.php [09:26:48] MWException from line 3996 of /home/max/rebetiko/www/mediawiki-1.25.2/includes/db/Database.php: Could not open "patch-indexes.sql". [09:26:53] any help?? thanks [09:27:24] I have ran chmod -R a+r . , everything is readable [09:30:30] ok I entered manually the path in the problematic line. now I have this error: A database query error has occurred. Query: ALTER TABLE IF EXISTS `links` DROP INDEX l_from, ADD INDEX l_from (l_from) Function: DatabaseBase::sourceFile( patch-indexes.sql ) Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF EXISTS `links` [10:03:39] hi [12:47:03] Greetings m8's [12:47:35] Anyone well versed with Media wiki's geodata files? [12:48:07] I don't know what they are, can you explain what the issue is? [13:17:45] Greetings, im needing a bit of guidance with geoData extension [13:18:12] Im trying to use it as an extension in Laravel and im running into road blocks [13:20:34] Im trying to hopefully querry all nearby's and customize catagories on a return to my index.php route [16:09:21] hi all ! I was investigating what the API could do, and i was wondering if there was any way to do a query request on files with a filetype information (for instance if i want to get only svg files in the result). thanks ! [16:13:09] Mc-, action=query&list=allimages&aimime=image/svg+xml ? [16:27:07] Krenair: thanks! that was what i was looking for, but it seems it only exists with allimages (and filearchive), not with search (and is disabled on wikicommons ["miser mode"] -> does that mean i'll be unable to filter on mimetype any way i try ? ) -- what i'd like would be something along "action=query&list=search&srsearch=whatever&srnamespace=6&aimime=svg+xml" [16:28:29] yeah, that doesn't work in miser mode [16:28:35] which wikimedia wikis use [16:29:05] if you're searching on commons there might be some fancy syntax you can use to just get *.svg results [16:30:36] i think https://commons.wikimedia.org/w/api.php?action=query&list=search&srsearch=whatever+.svg&srnamespace=6 may be enough indeed [16:40:09] or intitle:".svg" :) [16:42:16] intitle:".svg" would be what I'ddo [16:42:18] I'd do* [16:42:52] Krenair: thanks for your help ! [16:43:11] np [17:05:41] Hello. Is there a simpler way to send a pr to mediawiki repo than installing this bulky Vagrant? [17:07:44] pr? pull request? [17:09:41] yes [17:10:18] did someone imply you need vagrant to develop mediawiki? [17:10:36] ಠ_ಠ [17:12:51] Krenair: that was the notion I was getting from browsing mediawiki.org :) [17:13:09] everything works until you try to talk to gerrit :/ [17:17:11] saper, hmm [17:17:22] https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker#Get_started makes it clear enough you can use vagrant or set it up yourself [17:17:34] clear enough for me, anyway [17:18:28] gleki: yeah, you can just clone the git repository (https://www.mediawiki.org/wiki/Download_from_Git), make a commit and push it to gerrit for review [20:05:29] I don't know if this is the right place to ask, but how do I get the definition of a word from wiktionary? [20:05:37] the wiktionary channel is dead [20:06:15] Programatically? [20:06:41] yes [20:08:19] Get the page contents through the API then I guess [20:33:41] so i'm having difficulties looking up pages with names that are not spaced - instead of two words its all one word [20:33:54] as an example: starcitizen instead of star citizen [20:34:22] i've tried looking up with gsrwhat=nearmatch and gsrwhat=text [20:34:38] i seem to get more accurate results when it actually finds results to begin with [20:34:55] but in some cases like starcitizen it doesn't find anything [20:39:24] this works sorta https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=starcitizen [20:39:42] gives a suggestion for star citizen but that's another lookup with a generator so i can use extract