[07:33:48] anyone here hacking (extending) mediawiki? [08:03:30] jk_: I think so :) [08:09:11] i want to extend the upload procedure.... i guess i can hook in onUploadFormInitDescriptor to extend the uploadform. but the main problem is, that i need the uploaded file to gather some informationen, display it and let the user choose some options. i have no clue how to do an extra step in the uplaod dialog and especially push data to the dialog when the file was uploaded ( in the UploadVerification hook i geht the temp file).... can [08:09:11] someoen give me a push in the right direction?:) [08:09:52] sorry, for the typos:) [09:03:54] Is there a way using the API to list all the pages in a list page? You can do category, but "List of Mountains in X" is not a category. [09:45:07] hi, i want to extend the upload procedure.... i guess i can hook in onUploadFormInitDescriptor to extend the uploadform. but the main problem is, that i need the uploaded file to gather some informationen, display some checkboxes and let the user choose some options. i have no clue how to add an extra step in the uplaod dialog and especially push data to the dialog after the file was uploaded ( in the UploadVerification hook i get the [09:45:08] temp file).... can someoen give me a push in the right direction?:) [11:40:21] hi, i want to extend the upload procedure.... i guess i can hook in onUploadFormInitDescriptor to extend the uploadform. but the main problem is, that i need the uploaded file to gather some informationen, display some checkboxes and let the user choose some options. i have no clue how to add an extra step in the uplaod dialog and especially push data to the dialog after the file was uploaded ( in the UploadVerification hook i get the [11:40:21] temp file).... can someoen give me a push in the right direction?:) [12:41:12] Birgit, are you hacking mediawiki? :) [12:41:28] or someone else? [13:40:19] hi, i want to extend the upload procedure.... i guess i can hook in onUploadFormInitDescriptor to extend the uploadform. but the main problem is, that i need the uploaded file to gather some informationen, display some checkboxes and let the user choose some options. i have no clue how to add an extra step in the uplaod dialog and especially push data to the dialog after the file was uploaded ( in the UploadVerification hook i get the [13:40:19] temp file).... can someoen give me a push in the right direction?:) [14:45:35] hi [14:45:52] So it is sufficient just persisting the database? [14:46:02] The www and related things can be taken from the release downloads? [14:46:11] Plus the list of plugin to be installed? [14:51:10] What? [14:52:08] iChatter: The release tarballs give you MediaWiki, which is a PHP web application. You will need Apache, PHP, mysql, the Apache PHP module, the PHP mysql library, and...probably some other things. [14:52:12] !install | iChatter [14:52:12] iChatter: Installing MediaWiki takes between 10 and 30 minutes, and involves uploading/copying files and running the installer script to configure the software. Full instructions can be found in the INSTALL file supplied in the distribution archive. An installation manual can also be found at . See also: !download [15:01:06] marktraceur: but one could reconstruct a mediawiki by the right tarball, running the installer script the same as before - just persisting the mysql database? [15:01:22] the point of this whether I only need to backup the mysql database or also the www folder [15:01:40] Ah. [15:01:44] !upgrade | iChatter [15:01:44] iChatter: http://www.mediawiki.org/wiki/Manual:Upgrading [15:01:47] Sigh. [15:01:54] !backup | iChatter [15:01:54] iChatter: See http://www.mediawiki.org/wiki/Manual:Backing_up_a_wiki for information about backing up your wiki. For restoring your wiki, see http://www.mediawiki.org/wiki/Manual:Moving_a_wiki#Import_the_database_backup for more. If you don't have database access, try !grabber. [15:02:20] marktraceur: right, I only want to store the settings, state and content - everything else can be regenerated by downloading it. [15:02:46] aha, images and such are stored in www and not in database [15:03:01] ok - so I have to backup specific folders from a mediawiki www folder [16:54:04] Hi [16:54:27] I had a question on retrieving data from Wikidata . [16:54:32] anyone can help ? [16:54:43] Guest74556: just ask [16:54:51] if we can't, we'll direct to you to someone who can [16:55:25] okey ori [16:55:43] I need to retrieve data from wikidata . [16:55:49] I currently use WDQ [16:56:03] I don't want to download dumps [16:56:13] the URL api is okey for me . [16:56:25] I know how to retrieve items [16:56:29] but I need values as well , [16:56:45] for example if I retrieve a list of people it gives me just their ID [16:56:58] what should I do if I need their names or other values ? [16:57:21] please describe you problem structured and with the right terms or an concrete example. [16:58:05] expand templates? [17:06:27] guest, Adding a "props" parameter to the URL will return the specified statements (items, properties, and their values) for the resulting items. [17:06:56] https://wdq.wmflabs.org/api_documentation.html [17:07:02] see section note [17:07:13] RTFM :) [17:07:34] hi, i want to extend the upload procedure.... i guess i can hook in onUploadFormInitDescriptor to extend the uploadform. but the main problem is, that i need the uploaded file to gather some informationen, display some checkboxes and let the user choose some options. i have no clue how to add an extra step in the uplaod dialog and especially push data to the dialog after the file was uploaded ( in the UploadVerification hook i get the temp file [17:07:34] ).... can someoen give me a push in the right direction?:) [17:21:55] does anyone know when bawolff will be here again? [17:37:46] does anyone know when bawolff will be here again? [17:45:05] jk_, bawolff himself might, but otherwise... :) [17:46:43] jk_: you can probably email him [17:46:47] :< [17:52:33] does anyone know when bawolff will be here again? [17:53:15] no, try emailing him if you have something urgent? [17:53:44] urgent for me, yes:) [17:53:52] are you hacking mediawiki? [17:55:01] hi, i want to extend the upload procedure.... i guess i can hook in onUploadFormInitDescriptor to extend the uploadform. but the main problem is, that i need the uploaded file to gather some informationen, display some checkboxes and let the user choose some options. i have no clue how to add an extra step in the uplaod dialog and especially push data to the dialog after the file was uploaded ( in the UploadVerification hook i get the temp file) [17:55:01] .... can someoen give me a push in the right direction?:) [18:04:09] is my question too complicated? or wrong asked? am i in the wrong channel? [18:12:51] jk_: this is the right channel for the question, but... apparently no one knows the answer. [18:13:21] jk_: i can't help myself, but you might want at the MultiUpload extension to see how to do such things, maybe? [18:13:46] no guarantees that it'll help, but probably better than nothing :) [18:18:37] MatmaRex, thx for your suggestion [18:19:20] Yaron, also thanks for your ping :) [19:02:01] fyi, I made a report generator for MediaWikis. https://freephile.org/wikireport/ [19:02:36] It queries a sites API and produces a decent summary. [19:03:43] is someone interested in a word document generator from semantic media wiki templates & word templates? [19:03:57] (code is on github) comments welcome to greg@freephile.com [19:12:08] ok, I'm rather confused about namespaces now [19:12:20] Cathadan: In what way? [19:12:24] https://www.mediawiki.org/wiki/Manual:Title.php#Interwiki_prefixes_and_namespaces [19:12:35] "they may only contain digits, letters, the space character and the underscore character" [19:12:52] but on foreign language wikis, they definitely have namespaces with more than plain alphanumerics [19:13:01] e.g. https://ja.wikipedia.org/wiki/特別:最近の更新 [19:14:38] Cathadan: it never says English-language-letters :) [19:15:13] somewhat unrelated, the final paragraph of that namespaces section is also really confusing, mostly due to wording [19:15:50] MatmaRex: true, but I don't think I've ever heard anyone refer to kanji as a "letter" [19:18:46] Perhaps it's better to say "cannot contain X" since that's actually what happens. [19:21:25] for that last paragraph, "If a title begins with a colon as its first character, no prefixes are scanned for, and the colon is removed before the title is processed. Because of this rule, it is possible to have articles with colons in their names." [19:21:56] then neither of the following two examples actually have a colon as a first character [19:22:35] it also says "Commandos" is not a valid interwiki prefix or namespace even though it follows the bulleted points above [20:15:08] hi, i want to extend the upload procedure.... i guess i can hook in onUploadFormInitDescriptor to extend the uploadform. but the main problem is, that i need the uploaded file to gather some informationen, display some checkboxes and let the user choose some options. i have no clue how to add an extra step in the uplaod dialog and especially push data to the dialog after the file was uploaded ( in the UploadVerification hook i get the temp file) [20:15:08] .... can someoen give me a push in the right direction?:) [20:29:06] jk_: What sort of options do you need to offer? [20:30:01] a multiselect list [20:32:03] the only idea i have is to use websockets [20:32:10] Uhh [20:32:19] jk_: Multiselect list for what kind of data? [20:32:34] just a list of stings [20:32:41] *what strings* [20:32:47] categories:) [20:32:49] h [20:32:52] OK that wasn't so hard [20:33:11] jk_: UploadWizard has a category selector as well as licensing and multiple file uploads. [20:33:14] !e UploadWizard [20:33:14] https://www.mediawiki.org/wiki/Extension:UploadWizard [20:33:18] but others than the normal catefories [20:33:24] i know [20:33:47] What do you mean other than the normal categories? [20:36:20] jk_: I've been writing upload gadgets recently, you might want to look into that option [20:37:09] jk_: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Upload is the API you use on the frontend [20:37:25] You can look at http://en.wikipedia.beta.wmflabs.org/wiki/User:MarkTraceur/editPageUploadTool.js and its dependencies for how I did it [20:37:53] the categories are tags from a webservice [20:38:54] And they aren't MediaWiki categories? [20:39:19] yes [20:42:05] thanks for your hints [20:42:59] i would need something like the categorie selector in the uploadwizard but AFTER the file was uploaded. [20:43:23] Oh. Um. [20:43:27] jk_: Wait, why after? [20:44:10] the file is processed and the categories a determined from its content [20:44:42] there categories should be displayed and the user would select some of them [20:44:53] a=are [20:45:59] its no option to upload the file twice :) [21:18:08] jk_: could you use JS to detect file contents client-side using newer file access APIs in modern browsers? [21:22:25] Cathadan, no, thats not an option.... [21:23:22] you get to keep your backend server faster by keeping more of the file processing on the client [21:42:10] jk_: Stash the file and have the backend do the analysis on the stashed file. [21:42:20] Should Work Fine™ [23:06:17] hey, I was wondering what square brackets mean in templates for something like: [[{{{particle|}}}]] [23:06:30] somehow I cannot really find documentation on that... [23:16:16] dostoyevsky: square brackets are wikilinks [23:17:01] jackmcbarn: ah, so it will make a link to the contents of a variable called particle, right? [23:17:07] right [23:20:31] Ok, last question: {{{head|{{PAGENAME}}}}} -- this uses three curly brackets, so I thought that's a variable reference... but I do not know what it actually means [23:20:53] the stuff after the | inside triple curly brackets means use it instead if the thing to the left is undefined [23:21:10] ah, thank you! :) [23:21:11] so that specifically means put the contents of "head" there, unless head is unset, in which case it will put {{PAGENAME}} there