[01:39:18] if someone is just trying to query the API, there should be no impact from a block, should there? [01:39:31] <- has someone in stewards queue talking about being blocked [02:13:14] Depends on the type of block. [02:13:15] sDrewth: ^ [02:13:22] Sometimes people abuse or misuse the API. [02:13:45] And sometimes users interpret an IP rate limit or disablement to be equivalent to a MediaWiki administrative user block. [02:14:11] Generally, querying the API shouldn't result in a block. [02:14:39] But the two really aren't related. You can use the API to vandalize. :-) Or you can misuse the API to the point that a sysadmin notices. [02:26:34] sDrewth, there shouldn't be. You don't need to be logged in at all to query. [02:35:22] thx, they were my understandings, just sometimes there are dark arcane corners [02:36:31] and trying to find the exact impact of rate limit is hard as the documentation is inexact [02:51:43] sDrewth: Usually getting the user to report the exact error message is the only way to quickly suss out what the issue is. [02:51:46] In my experience. [02:52:05] The exact error message is usually indicative of whether it's a rate limit, a soft block, a hard block, etc. [02:52:25] The error message can come from the Web server or from the MediaWiki API, of course. [02:52:29] Depending on who issued the block. [02:53:33] Carmela: sure, as a WMF steward, I am well versed in that aspect, I was exploring the API relationship just in case there was some "sekret hackers business" there [02:53:58] Okay. :-) [02:57:19] when someone is running server api queries, and they say that they are blocked, I have to be careful to not say NO BOT EDITS IDIOT and phrase in terms of that the api should allow queries and be unaffecgted by the block, then say have you considered whether you may be better querying Wikidata [02:59:54] Depending on the wiki, blocking can also disable login. [03:00:03] That's a configuration variable. [03:15:27] To ask about licensing an image, do I go here or #wikimedia? If here, then what should I choose if I want to upload an image based off another image? Also, how do I turn off the "new?" (haven't been here for a while) wacky slidy popup thing when I view images? [03:17:16] Hi Banaticus. [03:17:24] You want #wikimedia or #wikimedia-commons, probably. [03:17:24] Hi Carmela [03:17:40] You can disable MediaViewer by visiting Special:Preferences. [03:17:43] On the wiki. [03:17:45] There's a checkbox somewhere. [03:17:56] If an image is based on another image, it's usually called a derivative image. [03:18:05] There are usually licenses specifically for this. [03:18:15] But don't be too worried about the license, someone will likely fix it if you mess up. [03:18:19] Just make a good-faith effort. [03:18:22] And link to any sources. [03:19:57] I found https://commons.wikimedia.org/wiki/Special:Preferences#mw-prefsection-rendering and unchecked Enable Media Viewer then saved it, then went and refreshed an image, but I still get that wacky sliding licensing popup over images. I just want an image, and I want licensing, on a single page. I don't want some crazy mishmash sliding popup combination of the two. [03:22:14] Ah, figured it out, I had to manually change the link from https://commons.wikimedia.org/wiki/Category:Rubik%27s_cube#mediaviewer/File:Cubo_rubik_1.jpg to https://commons.wikimedia.org/wiki/File:Cubo_rubik_1.jpg [03:46:21] Nice. [06:53:29] hello, community [06:53:41] can you please tell me, how can I implement https://gerrit.wikimedia.org/r/#/c/131494/ ? [06:55:33] right now my productive deployment is on 1.24wmf8 branch [07:00:04] umm [07:00:51] khannzy: that commit should be included in 1.24wmf8 [07:03:08] legoktm: yeah, I even found it in file tree... strange then, why I still get that $.browser issue - it makes my WikiEditor extension broken [07:03:35] did you read the commit message? it only runs in debug mode [07:04:37] not in my case [07:04:50] oh actually [07:04:51] I got this even with debug=false [07:04:52] set $wgIncludejQueryMigrate = true; [07:05:00] omg... [07:05:02] see https://github.com/wikimedia/mediawiki-core/commit/8e41082af8aa04d48267af6cccafb34fd98d0d6d#diff-3a59b3e07dcb76a68d30a5859409df36 [07:05:05] okay, i'll try [07:10:18] legoktm: thanks! It works. [07:10:26] :) [09:28:20] how do I make dynamic system messages without touching the i18n json files? I want to mimic the abusefilter where Special:Abusefilter would allow you to input a description for each newly created AF and print it to MediaWiki:Abusefilter--desc [09:29:20] Create them manually onwiki [09:32:37] Reedy: Well, could I possibly have the inputbox act like it was part of the MediaWiki: page? [09:35:53] What do you mean? [09:38:18] when I ask them to enter a description into an html textbox using a special page, it'll create an associated system message in mw namespace [09:40:03] Yeah [12:47:24] is there any way to get notified of subpage creation? [13:07:00] wmat: yes if you're wiki sysadmin [13:13:48] Nemo_bis: I am, but I want Users to be able to be notified when subpages are created [13:15:26] wmat: not possible afaik; same with categories [13:16:22] Nemo_bis: thx for the info [13:53:40] wonder whether i can hide my contributions i made ;) [13:54:18] i mean hide contributions from showing on the special pages/contributions/Saqib until a specified time [13:57:09] very clear request as usual [14:14:59] I wonder if this wiki is stuck with 1.16 because they forgot to update the policy wiki.urbandead.com/index.php?oldid=2046400 [14:15:26] * http://wiki.urbandead.com/index.php?oldid=2046400 [14:34:14] Today I'll be checking in with the authors of some RfCs - Standardized thumbnails sizes, CentralNotice Caching Overhaul - Frontend Proxy, Scoping site CSS, Inline diffs, Localisation format, Opt-in site registration during installation - to close stuff/move it along/set up discussions. heads-up hexmode James_F|Away [15:45:30] So... I installed OpenIf, Facebook Connect, TwitterLogin and now non logged in users see 4 (!) "login" links. Are there premade tools to put them all under one link? [15:45:36] *OpenId [16:00:05] qgil: hey, got a moment? will pm [16:03:31] csteipp: is it a reasonable goal for you to get all of the action items in https://www.mediawiki.org/wiki/Architecture_meetings/Security_guidelines_discussion_2014-06-13#Action_items.2C_by_person finished by the end of Friday, especially if we work together on the last of them in our sprint on Friday? [16:04:33] sumanah: Yeah, I think so. I'd like to do one more thing in addition to that (draw out a threat model and link it into that section), but that can come later. [16:04:41] csteipp: got it. OK [16:04:43] thanks [16:12:23] sumanah, it seems that I was disconnected... I'm available [16:13:21] Hi qgil - will pm [16:14:44] Anyone know how to change the marker used for a location when using the {{display_map}} function provided by the Maps extension? [16:15:02] JeroenDeDauw: ? [16:21:54] retentiveboy: With the "icon" parameter [16:22:00] Though I suspect this is currently broken [16:23:24] JeroenDeDauw: trying to use it like {{display_map: #,#~TITLE~TEXT~ICON}} but don't know what ICON should be. Full URL? relative and if so to what? [16:25:19] MaxSem: Deskana|Away - is Mobile interested in having the Mobile product manager start PMing the Inline Diffs RfC, now that Dan is working with Mobile? [16:25:25] (if you know) [16:31:18] well sumanah, Dan's a PM for mobile apps:) [16:31:41] true [16:46:55] Trying to wend my way through the file opening code and it's pretty confusing. When MW loads an image, where is the spot where it checks if the file is on disk? [16:47:05] Tracking down a Unicode-in-image-filename problem [16:48:07] qgil, Hello! Someone diverted me to you sometime ago. :) [16:48:15] I am making an extension which can be used to store materials. I need some guidance. [16:49:17] s/materials/material-properties/ [16:51:53] I have made an extension which is capable of storing material properties http://202.164.53.122/~albertcoder/mediawiki-1.22.6/index.php/Special:Material but the database design I used for making this was quite simple. [16:55:08] albertcoder: how do you define a material property and why can't you use SemanticMediaWiki? [16:57:19] Nemo_bis, Actually I am totally new to mediawiki, I am having trouble to understand the structure and functions used. I didn't get you on how to define a material property. [16:57:56] Actually the requirement of my extension is to be able to store the properties of materials. [16:58:42] Like boiling point, tensile strength, specific heat and so on. [16:58:52] hi albertcoder [16:58:55] albertcoder: I'm not sure what you want to do with those statements, but that's what SemanticMediaWiki is for [16:59:16] hello, qgil ! [16:59:50] albertcoder, how can I help? [17:00:49] qgil, I wish to make an extension for storing material-properties and after working hard for a couple of days I have been able to make this http://202.164.53.122/~albertcoder/mediawiki-1.22.6/index.php/Special:Material [17:02:01] I am totally beginner so far experience with mediawiki is concerned and I am having trouble in understanding it. [17:03:12] I also want to implement certain features using this extension like searching the properties according to material type, property type etc. [17:03:51] And also keep a track of which user added a particular property and material. [17:04:25] qgil, Hope you have gotten an idea of what I wish to do. :) [17:06:52] Nemo_bis, thanks a lot for suggesting, I will look into SemanticMediaWiki if it can help me in making my extension. [17:11:59] albertcoder you should be able to use SMW to do that without needing a custom extension [17:13:23] you'll just need a page for each material with the properties, and a query to grab them all [17:15:16] ete, Please could you guide me a bit more? I am totally new to mediawiki. And how can I understand the full usage of SMW? Do I need to install it or with the help of a sample extension or what? [17:15:42] hi albertcoder - if you're very new to MediaWiki, welcome :-) [17:15:54] it's an extension, get it here: http://semantic-mediawiki.org/ [17:16:17] thanks sumanah :) [17:16:19] albertcoder: it might be worth your time to skim https://www.mediawiki.org/wiki/Manual:What_is_MediaWiki%3F and https://www.mediawiki.org/wiki/Manual:MediaWiki_architecture [17:16:21] it lets you define properties for pages and query them in lots of fun ways [17:16:53] like, you make the page Gold [17:17:25] and on that page you can (with a template) have something like [[Melting point::200]] [17:18:07] then on another page you can write a query which produces a list of all pages with the melting point property, ordered by melting point [17:18:09] is there any way to search by filetype in the file: namespace? like, "show me all .pdfs" or whatever? [17:19:24] you can generate a table that way too, with whatever properties you want [17:19:32] Should I mark bugs whose patch I submitted as FIXED? Or someone else needs to do that [17:20:02] e.g. for all pages in category materials, show melting point, boiling point, and some other stuff [17:20:20] albertcoder ^ [17:20:37] ete, suppose we have 50 properties and 10000 materials, so will searching / sorting and import /export of properties in CSV, JSON etc. also be possible? [17:20:50] kunalg: typically you don't do that until the patch is actually applied [17:21:38] you may need to set max query size to higher than the default, but yes to the first at least. maybe it has other export options too, I've not needed them before [17:21:38] luisv: I meant the patch got merged, and Bugzilla didn't really mark it as FIXED [17:21:47] kunalg: Yes, then mark it as FIXED [17:22:03] RoanKattouw: Ok, thanks [17:22:12] (provided it actually fixes the bug, not just part of it) [17:22:12] BZ marking it as PATCH_TO_REVIEW is automatic, but FIXED is not [17:22:35] exporting them all at once would be a pretty big query [17:23:02] RoanKattouw: Thanks [17:23:54] not all at once are required but may be just the values of properties of a single material. ete [17:24:25] albertcoder turns out there is csv and json result format, so exporting to those should be simple [17:24:28] http://semantic-mediawiki.org/wiki/Json [17:24:33] http://semantic-mediawiki.org/wiki/Csv [17:25:04] 50 properties for one material should be okay [17:25:41] ete, wow it looks like I have been rejuvenated after struggling for a couple of days. :) [17:26:00] if you want to export all 10000 with all properties at once it'd take a while for the page to load and you may need to up some defaults of max query size [17:26:12] glad to hear it :) [17:26:16] SMW is pretty awesome. [17:26:59] But still I am finding it tough to be acquainted with mediawiki , what initial exercise would you suggest. I do my homework well. :) [17:27:28] urm [17:27:35] get used to templates [17:27:47] write a few really basic templates [17:28:06] they are kinda key to MW [17:28:19] read the documentation on parserfunctions [17:28:36] you need them to do clever things with templates [17:29:14] find a wiki with relatively simple templates (not wikipedia, wikipedia's are really complex generally) [17:29:30] and see if you can work out what they do [17:30:03] ete, Pardon my limited knowledge! Is this a kind of extension like the ones I have installed? The requirement of my project is to make an extension that can be installed on a server. [17:30:06] basic formatting is pretty straightforward [17:30:23] Yes, SMW is an extension [17:30:34] you can install it in pretty much the same way [17:32:00] alright! thanks a lot ete really from the bottom of my heart. :) I was quite in low spirits because of the deadlines. :) [17:32:21] albertcoder, sorry, I was away in a meeting. I agree with other colleagues that Semantic MediaWiki out of the box might serve you better than an extension you would need to code yourself. [17:32:32] your main work will be making a couple of templates, writing common queries, and dumping the data into the wiki using https://wikiapiary.com/wiki/Extension:Data_Transfer [17:32:49] and glad to be of assistance :) [17:33:42] if you're super tight for time / get stuck on something give me a poke [17:34:05] either here or https://wikiapiary.com/wiki/User_talk:Ete [17:34:38] (definitely use data transfer to make the pages) [17:36:10] ete, really thanks a lot. I must confess that I am really I beginner. So should I start with templates? or installation of SMW? [17:36:43] I has been a lot of information to digest. :) [17:36:56] s/I/It/ [17:37:27] albertcoder install SMW [17:37:45] qgil, thanks a lot! [17:37:46] then you can use SMW stuff in your templates [17:38:25] out of curiosity, what's this project for? [17:38:50] It is for GSoC. [17:39:31] cool [17:39:42] where is it going to get used? [17:39:46] I have no experience with mediawiki so sometimes I feel stuck / helpless. :p [17:40:16] mhm [17:40:19] It will be used for analysis of structures in BRL-CAD software. [17:42:05] This extension will also be required to talk to BRL-CAD software and give it the required data for structural analysis. [17:42:30] hm, right [17:43:20] more than csv/json stuff? [17:43:25] the export? [17:43:32] or will that be enough? [17:43:36] STEP [17:44:05] but for that too I will have to dig deep. [17:45:04] okay. well, good luck! [17:45:44] ete, thanks a lot ^100 ;) [17:46:26] if you want some examples of SMW empowered queries, wikiapiary is a decent place to look. [17:46:46] some are scary, but some are not too bad. [17:47:11] I will definitely have a look at them. [18:04:05] Hi. How to make thumbnails display inline? What to add to .css page? [18:04:46] gleki: http://www.w3schools.com/CSSref/pr_class_float.asp should help [18:05:51] thx [18:07:45] hm. is it possible to do that on a single page? when i wrap a group of tumbnail images with
they don't approve my oauth consumer which asks for all permissions :( [18:35:29] even if it's expected to be "private use only" [19:37:21] is Carly a developer (Carliitaeliza)? [19:37:41] <^d> Who? [19:45:28] well that answers the question perfectly... [20:29:09] muahahahahhah [20:52:03] Is there a way to setup the $cond parameter to DatabaseBase::select() to use OR instead of AND? [20:52:23] $dbr->makeList( $conds, LIST_OR ) probably. [20:52:50] I don't remember the exact syntax off the top of my head [20:54:04] I'm really looking to end up with something like "WHERE FIELDA LIKE '%Foo%' OR FIELDB='ASDF'" [20:59:09] So how taboo is it to use $dbr->query() instead of $dbr->select()? [21:02:10] very :P [21:06:00] booo [21:06:01] retentiveboy: there's a method for constructing LIKE queries too [21:06:15] it probably handles different database types for you too [21:06:16] MatmaRex: yeah, I'm using that [21:06:44] buildLike() with anyString() and such [21:07:07] Just don't see any way to get the OR with two separate comparisons [21:08:36] Docs for DatabaseBase::select() specifically say the elements in the $cond parameter are combined with AND. [21:09:11] Looks like the approach is to build $cond as a string, right? [22:27:33] Hi! I'm looking for a JavaScript gadget that implements an "Archive" function: Put a button "Archive" next to the section title on a talk page, on click move the section to ${Talk_Page}/Archive (or similar) and delete it from the talk page. Does someone have a link for that (mature and tested)? [22:49:55] Hi all. I have installed the UploadWizard extension on MediaWiki 1.23.0. I installed the version for 1.23.0. When I try to upload something, I get a JavaScript error in the browser log "mw.log.warn is not a function" and infinite upload spinning. The upload doesn't appear to go through. Any guesses? [22:51:02] Hm. [22:51:48] sjuxax: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.log it clearly *is* a function...weird [22:52:15] In Firefox 30. In Chromium 35 I get "Uncaught TypeError: undefined is not a function", and same problem. [22:53:02] It seems like a javascript file may not be loading or something. This worked on 1.22.6, but I upgraded and upgraded UploadWizard accordingly as discussed. [22:53:36] Hm. [22:55:07] Maybe this is a missing dependency issue? [22:55:14] I'm not sure mw.log.warn is always loaded [22:55:34] Hmm it seems to be though [22:56:34] Re archiving gadget, looks like https://en.wikipedia.org/wiki/User:Equazcion/OneClickArchiver.js does what I was looking for. [23:00:22] mw.log doesn't seem to have a "warn" function when I try to use the object on the commandlien [23:02:48] Object.toSource(mw.log) "function Object() { [native code] }" [23:02:52] not sure that's helpful. [23:04:39] sjuxax: Try to access mw.log.warn directly [23:04:46] mw.log is a function but it can still have properties [23:05:11] mw.log.warn undefined [23:06:56] here are the options firefox gives me with autocomplete https://imgur.com/UFBZgsc [23:42:27] weird [23:42:36] Maybe it wasn't there yet in MW1.23