[05:26:55] Hi everyone. I don't trust myself to fix this properly, but the example here has uses the intoken field, which is apparently deprecated: https://www.mediawiki.org/wiki/API:Edit#Token [05:29:26] ptrz: If you need an edit token I think they've been superseded by "csrf" [05:30:03] https://en.wikipedia.org/w/api.php?action=query&meta=tokens should grab a csrf token [05:30:12] the docs probably need updating [05:35:34] yeah, that's all I'm saying [05:35:38] that example needs updating [05:38:03] so, I have my token cookie set (enwikiSession), but when I request a token the response is {"batchcomplete":"","query":{"tokens":{"csrftoken":"+\\"}}} [05:38:17] which (IIUC) is what you're supposed to get if you aren't registered [05:38:21] what am I doing wrong? [05:38:58] the other cookies set are GeoIP and WMF-Last-Action [05:39:10] oh wait, dumb mistake [05:39:13] disregard for now [06:18:26] hm, I'm getting a "WrongToken" when confirming login, but it looks right to me [06:37:52] has anyone come asking about this before? [06:37:58] I can't tell what I'm doing wrong [07:00:22] never mind, figured it out [07:38:01] Hi - I can't submit my support desk question, as it's marked as spam. And the badly formed html directs me to a page that doesn't help. Can someone tell me how I can get around this issue - how I can post and not have it be marked as spam? [07:38:54] And re-submitting my request marks it as a spambot atack :-( [07:40:14] When posting a new topic on https://www.mediawiki.org/wiki/Project:Support_desk [07:42:51] I was able to submit a report with a really short topic and description, I'll go from there. [08:09:12] Hy everyone.... [08:09:27] am new to mediawiki development [08:09:49] can anyone guide me, how to get started with contribution? [12:10:50] Could anyone tell me which parameter is to be used while adding an image to a template? [12:24:37] anmol_wassan which template? [12:50:04] HI! Is somebody skilled in Scribunto? [12:50:16] just click on the show at the talkpage at en: https://en.wikipedia.org/?curid=48908845#MW [16:21:28] good morning [16:22:04] how I could get sound duration? with api [16:22:08] because API is only for image [16:22:11] https://www.mediawiki.org/wiki/API:Imageinfo [16:27:17] No it's not [16:28:47] Try setting dimensions property [16:28:53] // length as in how many seconds long a video is. [16:28:54] $length = $file->getLength(); [16:28:54] if ( $length ) { [16:28:54] // Call it du§ration, because "length" can be ambiguous. [16:28:55] $vals['duration'] = (float)$length; [16:28:56] } [16:42:11] how I could get the sound duration? [17:31:19] The_Photographer: [16:28:47] Try setting dimensions property [17:31:43] Reedy: could you explain it? [17:31:50] Please [17:32:16] prop=dimensions [17:32:46] It's only available if the mediahandler exposes it [17:32:51] Is it in the UI? [17:41:13] Reedy: UI? [17:41:27] If you view the file page, does it show up? [17:41:28] Reedy: its available in commons? [17:41:48] Reedy: in api [17:42:16] In theory [17:42:17] Try it [17:42:18] prop=dimensions [17:42:21] As I've said, 3 times [17:43:15] https://commons.wikimedia.org/w/api.php?action=query&titles=File:Ludwig_van_Beethoven_-_Symphonie_5_c-moll_-_1._Allegro_con_brio.ogg&prop=imageinfo|dimensions&iiprop=url [17:43:38] "*": "Unrecognized value for parameter 'prop': dimensions" [17:44:15] https://commons.wikimedia.org/w/api.php?action=query&titles=File:Ludwig_van_Beethoven_-_Symphonie_5_c-moll_-_1._Allegro_con_brio.ogg&prop=imageinfo&iiprop=url|dimensions [17:44:23] "duration": 436.02222222222, [17:46:14] Reedy: I could sed a list of titles? [17:48:52] simply with | ? [17:49:23] because I want know the dimensions and url for 100 files [17:49:29] I could send it in the url? [17:50:29] You should be able to [17:53:10] Reedy: What is the max url size for query? [17:53:17] Number of pages [17:53:17] ? [17:53:25] yes [18:10:08] Hello [18:11:05] Hi [18:11:55] The_Photographer: 50 if you're not a bot/sysop or have the apihighlimits right [18:12:36] Reedy: if it is a bot? [18:12:58] 500 [18:13:07] it's documented on https://commons.wikimedia.org/w/api.php?action=help&modules=query [18:18:36] Reedy: what is the User-Agent: for a bot? [18:19:17] There's no user-agent for it [18:19:21] You need the rights onwiki [18:21:16] Reedy: if it is runing from wmflabs its already a bot? [18:21:22] No [18:21:36] https://meta.wikimedia.org/wiki/Bot [18:23:33] Reedy: ok, I need do login [18:36:11] I would like to know the possibility to integrate wiki & forum. The idea is structurizely summarize forum information & replies to reduce noise and reference (tagging) relevant forum threads/msgs to track them against wiki, so users would be able to look at the relevant wiki site easily (most asked questions can have pinned topics). I see it an evolution of FAQs, providing positive educative reinforcement to collaborate instead [18:37:41] Some forums used it, but abandoned the idea. I liked GeekHack, they have a very low noise ratio in their forums because most information would end summarized and progressively improved on their wikis. I use forums frequently, but I find them very cumbersome to access information and topics gets extremelly repeated [18:39:03] I want to do it for a public site related to ADHD, then explore the possibility to motivate forum owners to adopt this way :) [18:39:40] Am I (too) insane? Would that be possible and user friendly to use? [18:39:43] hello, i have the ekb328 tv box rk3288 and my tv colors sometimes turn green or negative, what can i do? [18:40:35] jim_: Isnt this about Mediawiki? What's that? Operating System? Custom firmware? [18:41:24] rk3288_r-box_android4.4.2-skd_v1.0...... [18:41:43] jim_: I suspect it's a rockbox chip under Android. You're in the wrong channel, go to #android aor ask at XDA forums too ;) [18:42:08] thank you [18:42:20] Reedy: Thanks [18:43:45] jim_: I suggest you to write an ellaborate forum thread at XDA, with all the details. Then ask in IRC channels, but these kind of questions require a more dense analysis and conversation most of the time. You didn't specify when that happens, what app were you using, if you modified that Android in some way etc [18:43:53] jim_: Devil's in the details ;) [18:44:48] jim_: You're very welcome. Everyone does weird things, I just suggest you the best way to get results :) [19:37:21] I'm not sure what they're even called, but what allows for hiding and un-hiding of text in paragraph? The up and down like icons that are visible for *mobile* pages, and when you click on them, they expand or hide the underlying text for the paragraph. Like you can see on this page for "The Basics", "Installation and configuration" and more: https://m.mediawiki.org/w/index.php?title=Manual:FAQ&mobileaction=toggle_view_mobile [20:12:05] patman: it's some magic specific to the mobile skin, Minerva (part of MobileFrontend) [20:12:42] patman: i believe they call the arrow icons "chevrons", if that's what you're asking [20:16:20] How I could get the text array of "[[:File:test1.ogg]] and [[:File:test2.ogg]] example" result should be just ("test1","test2") [20:17:29] '#[[:File:(.*?).ogg]]#' not work [20:22:15] '/\[\[\:File\:(.+)\.ogg\]\]/' should do it [20:41:18] I shouldn't parse wikicode yourself [20:41:38] maybe using https://www.mediawiki.org/wiki/API:Alllinks [20:42:01] Hi pals. Have mediawiki, have CategorySortHeaders and CategoryTagSorter plugins. [20:42:27] The idea is, to sort the categories with CategoryTagSorter, but not as one list. [20:42:51] So I dreamt to use CategorySortHeaders to divide the categories in three blocks. [20:42:57] Yet it seems not to work... [20:44:26] More details. I have a page with many categories. I wanted to use CategorySortHeaders to add prefixes, so to divide categories into groups on this very page. Say, ^NAME^category1, or ^PLACE^category2, and so on. [20:45:07] The idea was, to show the names in first place, and the places later in the list. So I dreamt to add ^NAME^ prefix before names and ^PLACE^ prefix before places. [20:45:20] And to sort the result using CategoryTagSorter. [20:49:23] * saper looks up CategorySortHeaders [20:49:57] Well, maybe I misunderstood the way CategorySortHeaders works. [20:52:43] Logically my idea leads to list of categories in the bottom of the page, that is sorted not alplabetically, but firstly in groups, and then alphabetically inside those groups. [20:54:07] Not Anna, Arthur, Budapest, Cathy, Moscow, Peter, but -- Anna, Arthur, Cathy, Peter, Budapest, Moscow. [20:54:31] Names in first place, cities in second place. [20:54:36] my guess is that yucan't have both [20:54:40] Yet one list in the bottom of the page. [20:55:00] Oh, you checked the CategorySortHeaders and you see it does not allow this? [20:55:18] Well. I know ANOTHER way to this aim, yet it is a crooked way. [20:55:54] ok [20:55:57] here it is [20:56:09] CategoryTagSorter sorts the list of categorie at the bottom [20:56:13] of the article page [20:56:23] It is, 1) get Arrays extension, 2) form two arrays of categories in process of the page, 3) sort these arrays and put them out in page. You see, it is a hand work. [20:56:29] CategorySortHeaders manages how articles are shown sorted on the Category: page [20:56:52] Well, now I see, so CSH extension does not help. [20:57:06] PMZ_: are you trying to sort articles on the category: page? [20:57:14] I mean group and sort [20:57:26] I want to sort the categories on the page in main space. [20:57:38] In the bottom of the page I have names and cities. [20:57:47] Now all of them are sorted from A to Z. [20:57:57] I want to sort in more complex way. [20:58:11] Firstly names from A to Z, then cities from A to Z. [20:58:36] This means, direct work of CategoryTagSorter does not help. [21:00:10] Hoped to get into CategoryTagSorter work and to help with this extension into more complex sorting. [21:00:39] You see, I speak about sorting by 2 keys, 1st key is type of category, 2nd key is name of category. [21:01:06] Looks like I want to separate Categories into 2 types of categories. [21:01:26] So to say, name categories and city categories. [21:02:15] Not Anna, Arthur, Budapest, Cathy, Moscow, Peter, but -- Anna, Arthur, Cathy, Peter, Budapest, Moscow. [21:02:32] MatmaRex: Thanks, I found the extensions page for mobilefrontend, I'll try it out. [21:02:43] some idea to get all links of sound files (ej: ogg, flac...) from a page? https://en.wikipedia.org/w/api.php?action=query&list=alllinks&alnamespace=6&titles=United%20States&prop=revisions [21:04:07] prop=info [21:04:13] saper: Am I clear now? English is not my mother-tongue :-) [21:05:22] mine neither [21:07:30] Reedy: prop info done, however, not work [21:08:07] "not work" - can you be more specific? [21:08:36] not show the list of files [21:08:49] https://en.wikipedia.org/w/api.php?action=query&list=alllinks&alnamespace=6&titles=United%20States&prop=info [21:08:58] only crazy names [21:09:05] titles is not working, I think so [21:09:37] https://en.wikipedia.org/w/api.php?action=help&modules=query [21:09:42] Try reading the manual :) [21:09:45] https://en.wikipedia.org/w/api.php?action=help&modules=query%2Blinks [21:09:51] Returns all links from the given pages. [21:09:53] Filter it by file NS [21:11:01] ok ready [21:11:06] reedy [21:45:40] Reedy: https://meta.wikimedia.org/w/api.php?action=query&prop=links&titles=Wikiradio%20(tool)/test&plnamespace=6 [22:07:33] Reedy: How I could get the json without ns (namespaces) ? [22:08:38] What do you mean without namespaces? [22:09:16] only titles [22:09:52] Reedy: the json is returning 'ns', I dont want it [22:10:10] Tough [22:10:55] Processing that client side is cheap [22:12:03] Reedy: Another more difficult question, however, the most important of what I'm doing. There is a way to get the sum of duration of a list of sound files or I should do this for each of the sound files and perform the calculation separately? [22:12:35] You'll have to do it client side [22:12:50] Again, that's done trivially client side [22:13:15] Yes, however, a resquest for each file could not be cheap [22:13:35] For MW? Don't care about it [22:13:41] Your other option would be to do it as a db query [22:14:06] Where I could for access? [22:14:35] A simple select in realtime production enviroment [22:15:46] labs has that access [22:17:09] thanks [22:20:09] mysql --defaults-file="${HOME}"/replica.my.cnf -h metawiki.labsdb