[01:21:09] hi, when a template is updated, do all pages that use that template have to be resaved too? [01:21:18] i'm not seeing the template update on the new pages unless i do so [01:33:50] thomas_r: no. you can either wait and let the job queue take care of it for you, or to make it update right away, purge them [01:34:11] to purge a page, see if there's a ? in the url. if there is, put &action=purge on the end. if not, then put ?action=purge on the end [07:02:31] !list [07:02:31] mediawiki-l and wikitech-l are the primary mailing lists for MediaWiki-related issues. See http://lists.wikimedia.org/ for details. [09:06:05] how can i add "{{category redirect|{{subst:PAGENAME:$1}}}}" to a mediawiki: wihout substing it? [09:34:30] {{category redirect|{{subst{{{#if:{{ns:14}}|:|wrongns}}}PAGENAME:Category:Test2222}}}} [09:34:37] hmm... dos not work :/ [11:13:44] hello, [11:13:58] i want to have note in my wiki such that [11:14:06] beside my notes i can have a picture [11:14:09] how could i do that [11:14:11] ? [11:14:28] i mean i want to describe a device case by case [11:14:39] such that i can have its pic beside my note [11:50:20] https://en.wikiversity.org/wiki/35345345435 is a nice 404 page. Is it set on-wiki somewhere? [12:08:08] Svetlana: already replied elsewhere. addendum: you can append ?uselang=qqx to the URL to see which interface messages are used [12:17:10] Yes, thanks. [13:20:16] The {{gender}} magic word appears to be broken, at least on Wikimedia sites. Is this a known issue? [13:20:39] franny: broken how? [13:20:49] {{gender: ,, }} [13:21:31] Krinkle, it only returns "unknown." At least if I use my own username, it does, even though I have it set in Preferences. [13:22:03] Returns the "unknown" value you specify, I mean. [13:24:14] franny: WFM [13:26:14] MatmaRex, https://www.mediawiki.org/w/index.php?title=Summary%3ASandbox&diff=1129624&oldid=1129082 [13:27:39] franny: you only provided one parameter? [13:28:05] Yes, MatmaRex. One parameter = "text for unspecified". [13:28:35] nnnnope. one parameter = text for everything [13:28:50] two parameters = second one for female, first one for everything else [13:28:57] three parameters = m, f, unspecified [13:29:33] sorry, i mean, "She edits wiki pages" and "He edits wiki pages" :> [13:29:37] https://www.mediawiki.org/w/index.php?title=Summary:Sandbox&diff=1129625&oldid=1129624 [13:29:40] franny: [13:29:43] https://www.mediawiki.org/wiki/Help:Magic_words#Localization [13:29:57] MatmaRex ^ [13:30:48] it says it correctly afaics [13:31:01] the documentation seems to be wrong, then [13:31:03] or at least misleading [13:31:09] how? [13:31:39] we use {{GENDER:|is}} etc. all the time in localisation messages, to always display 'is' in English (since it's not gender-dependent), but indicate the possibility in other languages [13:32:05] {{GENDER: with only one parameter is essentially a no-op [13:32:18] The way I read this, it seems to mean "one parameter = text to provide if their gender is unspecified." [13:32:33] Yes [13:32:45] that definitely isn't how it works [13:32:54] and if m/f is not specified in the wikitext, if the gender is m or f, it falls back to the first value because there is no override [13:33:07] But that's not how it works; it used that "unspecified" text for me even though my gender is specified. [13:33:34] {{GENDER:| }} or {{GENDER:| | | }} [13:33:51] That's how the documentation describes it, but not how it's working, Krinkle. [13:33:55] it doesn't magically translate or apply grammar on arbitrary text so there's nothing it could do [13:34:27] {{#switch: X |male=foo |female=bar| #default=quux }} [13:34:33] if X=male, it outputs foo [13:34:44] if you omit male=foo, it will output quux. [13:35:06] {{GENDER:|foo}} is always outputting "foo", irregardless of the user's setting. [13:35:12] Yes [13:35:16] because there is only a default [13:35:25] {{#switch: X | #default=quux }} [13:35:54] right, perhaps a better way to describe this would be [13:35:59] the syntax is always {{GENDER:| | | }} [13:36:07] but if you omit or , it falls back to [13:36:34] which conveniently means that {{GENDER:|}} is always "" [13:36:49] There isn't much it could do if you provide one value. So it's just a documentation issue, right? [13:37:12] franny: I'm curious though, if we could do this feature over again, what did you expect {{gender:| foo}} to do if gender is specified? [13:38:22] Krinkle, I guess it makes sense after all. [13:38:49] What I was expecting doesn't actually make sense. :p [13:38:57] Mind sharing anyway? [13:39:05] Nothing's too crazy :) [13:39:46] {{gender:username|text for unspecified}} [13:39:58] I guess I was expecting it to output the localized version of "male" or "female." [13:39:58] so yeah, that seems like incorrect docs then.. [13:40:28] The doc should probably indicate it's a no-op. [13:40:56] franny: Ah, similar to {{grammar}} where it would recognise your "unspecified" value and auto-translate it? [13:41:17] Yeah. [13:41:35] But this makes sense. [13:41:56] The template is talking grammatical gender, not "a person's gender" gender. [13:41:59] yeah, it's too variable to recognise the word and know the variant from a single word. [13:42:15] i'm fixing docs [13:42:46] I'm sure there's langauges where the same neuter word transforms differently depending on context. [13:45:45] Krinkle: in Polish, the plural form of some words like "client" differs depending on whether you're talking about a person or a computer-client, and "client" has two variants for male and female! :D [13:46:48] klient=client, klientka=female client (person), klienci=male clients, klientki=female clients, klienty="computer clients" (as in FTP client, etc.) [16:03:13] when i mark a page for translation, i get an internal server error 500, and when i check my logs, i get a "File does not exist: /home/translatecnvc/public_html/403.shtml" [16:03:21] Any ideas or tips? [16:46:56] how can I check from a large list of users who is admin and how is not? [16:50:29] magioladitis, https://www.mediawiki.org/w/api.php?action=query&list=users&usprop=groups&ususers=Krenair|magioladitis [16:50:37] hey magioladitis. You could do it with the API. [16:50:49] Ahh. Krenair is way ahead of me :) [16:51:40] Krenair: halfak: thanks! [16:51:51] I think I'm having trouble with the order in which my extensions and scripts are loading - is there any way to see the order mediawiki is loading? [16:51:54] I want to check this list and rmeove admins https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/CheckPage#Approved_users [16:52:37] That's a lot of users [16:52:45] But it's doable [16:53:48] You'll need to know how to use query continuation [16:53:58] https://www.mediawiki.org/wiki/API:Query#Continuing_queries [16:54:20] magioladitis, also, I assume you'll be scripting this rather than building, running and reading the queries manually :) [16:55:00] Krenair: hm... now you told me... :) [16:55:28] Ah you have a bot account on that wiki, ok [16:56:48] can I use http://quarry.wmflabs.org/query for instance? [16:57:09] yup. Was going to suggest the same thing. [16:57:21] You could pull it from the DB, yeah/. [16:58:01] * halfak is writing a query [16:58:18] halfak: perfect. I was about to ask for help [16:58:19] :) [16:58:54] select count(*) from user_groups, user where user_id = ug_user and ug_group = 'sysop'; [16:58:57] -> 1393 [16:59:07] There's actually less sysops than the number of users on your list [16:59:24] sysops should not be in the list [16:59:37] since sysops are allowed to use AWB anyway [17:00:05] any sysop should be removed from the list [17:04:57] * halfak runs some sed to get the giant list of names into the query [17:06:00] * halfak 's text editor bursts into flames. [17:06:05] halfak, https://gist.github.com/Krenair/36406007182f0962bceb [17:06:25] Nice! [17:07:07] var users = []; $( '#mw-content-text > ul:nth-child(36) li' ).each( function () { console.log( $( this ).text() ); } ); console.log( '("' + users.join('", "') + '")' ); [17:07:21] urgh, that's not quite the right version [17:07:30] the weird name is non latin characters were a nice addition to the fun [17:07:34] var users = []; $( '#mw-content-text > ul:nth-child(36) li' ).each( function () { users.push( $( this ).text() ); } ); console.log( '("' + users.join('", "') + '")' ); [17:07:44] (I had to piece this together from my console history) [17:07:49] the weird names with the non latin characters were a nice addition to the fun [17:08:38] Are you sure there are admins on this list magioladitis? [17:08:55] Krenair: no. they should not be any [17:09:27] maybe some editors became sysops after the gor approval for AWB [17:09:33] Because I just checked the number of users in that list ("select count(*) from user_groups, user where user_id = ug_user and ug_group = 'sysop' and user_name in ();") and got 0 :/ [17:09:50] then OK :) [17:10:19] but let's see what halfak gets [17:10:23] the list needs to be cleaned from inactive editors (0 edits for the last 3 years) and sysops [17:11:31] @notify anomie [17:11:31] I'll let you know when I see anomie around here [17:12:18] Empty for me too [17:12:25] magioladitis, Krenair ^ [17:12:31] halfak: Krenair: Thanks! [17:12:39] sorry for the trouble then :) [17:13:07] No worries. [17:13:09] :) [17:13:59] any ideas of how I could spot inactive editors too? [17:14:17] Got a good definition for "inactive" [17:14:26] e.g. no edits in the last 6 months? [17:14:29] 0 edits in last 3 years [17:14:33] or 2 [17:14:33] Sure [17:14:39] I can help. Same list? [17:14:41] yes [17:14:45] 2 years [17:15:05] AWB has changed a lot and usually all these editos have old settings files [17:16:25] * halfak queues up the query [17:29:12] Got it. [17:29:18] 132 users. [17:29:31] http://pastebin.com/89BqE6RU [17:29:37] magioladitis, ^ [17:30:39] halfak: Thanks! [20:26:46] How have I not noticed https://www.mediawiki.org/wiki/Project:MediaWiki_is_not_Wikipedia before? [20:26:54] I need to point people to that more often. [20:29:00] There should be another about MediaWiki is not WikiMedia :P [20:29:27] !wikipmediawiki | Vulpix [20:29:27] Vulpix: Confused about the differences between MediaWiki, Wikimedia, Wikipedia and wiki? See https://www.mediawiki.org/wiki/Wikipmediawiki [20:29:54] thanks, MatmaRex ;) [20:30:33] I'm going to link both [20:33:40] Vulpix, yeah [20:34:14] Vulpix, to be honest this page could be altered a bit to fit that [20:35:59] yeah, probably [20:38:42] "do not make the mistake of thinking that MediaWiki, or the MediaWiki developers, exist only to 'serve' your project, or to serve the WMF as a whole." [20:38:47] grumble, security, grumble. [20:39:51] *cough* superprotect *cough* [20:40:02] nah, that's not relevant [20:40:17] WMF put that in it's own config [20:41:41] ah, yeah, that's not what I wanted. I meant gerrit change 153345 [20:42:56] Why is the style in Arabic Wikipedia is stranger? look here: https://ar.wikipedia.org/wiki/%D8%A7%D9%84%D8%B5%D9%81%D8%AD%D8%A9_%D8%A7%D9%84%D8%B1%D8%A6%D9%8A%D8%B3%D9%8A%D8%A9 [20:43:46] Vulpix, yes that was an actual MediaWiki issue [20:44:10] The tabs are displaced down. [20:45:46] Krenair: a non critical bug merged in 1.5h with several complaints before being merged? sure, it has nothing to do with WMF :) [20:46:33] msamm_000: could you be more specific about what do you mean by "strange"? [20:47:48] Vulpix: OK, I mean that the tabs in the top of the page are displaced a little down. [20:48:37] Vulpix, Tyler and Siebrand weren't sure. But that's about it [20:49:34] I see a little blue shadow below edit and main page tabs, but apart from that, it looks fine for me. Maybe it's a matter of being logged in-out [22:02:52] The "Edit summary" has a special/limited parser, iiuc. Is there an official name for that? I can't find any documentation under "limited parser", and am not sure what else to search for. [22:03:39] it's Linker::formatComment [22:03:48] I'm not sure if it's documented anywhere [22:04:13] Ty :) [22:04:30] > It escapes any HTML in the summary, but adds some CSS to format auto-generated comments (from section editing) and formats [[wikilinks]]. [22:55:00] https://www.mediawiki.org/wiki/OOjs_UI is such poor documentation. Is button and dialog the only supported widgets? [22:56:05] Ah, found https://doc.wikimedia.org/oojs-ui/master/#!/api . [22:57:57] Lacks examples. I.e. https://doc.wikimedia.org/oojs-ui/master/#!/api/OO.ui.MenuWidget :| [22:59:55] Svetlana, see the demos folder [23:00:18] Krenair: I don't see it in the tree at the left. [23:00:45] https://github.com/wikimedia/oojs-ui/tree/master/demos [23:00:57] I didn't clone this software; I'm trying to utilise it in the existing mediawiki install. [23:01:00] Ah. [23:09:15] legoktm: It escapes HTML, but allows some wikitext. [23:09:38] yes, I just copied what the function documentation was. [23:10:27] Can't trust that! [23:18:58] With OOjs UI, I'd like to create a menu. Not a select box, which InlineMenuWidget is. How? [23:24:11] Svetlana, did you clone the repository? [23:34:18] No. I've opened visualeditor and 'OO' is defined there, so I copied over a couple examples from https://github.com/wikimedia/oojs-ui/blob/master/demos/widgets.js and they worked. [23:34:31] * Svetlana is using Firefox's web console to add new DOM elements to the page. [23:36:36] I even copied /everything/ listed at https://github.com/wikimedia/oojs-ui/blob/master/demos/widgets.js and looked through it. PopupButtonWidget looks closest to what I need, but I'd rather have it look more menu-like, not a popup. [23:37:06] Krenair: --^ [23:37:50] Svetlana, does VisualEditor use a widget like the one you want? [23:40:25] !lockdown [23:40:25] Lockdown is an extension for preventing read or write access by namespace and limiting access to special pages, see < http://mediawiki.org/wiki/Extension:Lockdown >. For per-page access protection, see !ppp. For general information on preventing access to your wiki, see !access. [23:40:35] !ppp [23:40:35] The PrivatePageProtection extension allows access to individual pages to be restricted to specific user groups, see < http://www.mediawiki.org/wiki/Extension:PrivatePageProtection >. For restricting access to entire name spaces, special pages and actions, see !lockdown. For general information on preventing access to your wiki, see !access. [23:40:38] !access [23:40:38] For information on customizing user access, see . For common examples of restricting access using both rights and extensions, see . [23:40:46] Krenair: No, visualeditor doesn't use a widget like what I want. [23:50:31] https://doc.wikimedia.org/oojs-ui/master/#!/api/OO.ui.MenuToolGroup hmm. [23:50:55] example? :-S