[01:14:46] Evening all. [01:19:32] greetings [01:22:34] How's it going tonight? [01:23:23] I had a general question: on a default, non-semantec install of MW, how hard is it to get the widgets stuff installed? [01:23:35] not too hard [01:24:10] I mean - as with everything - it depends on how comfortable you are installing extensions - if you are familiar with wikicoding, etc. [01:24:20] but - in general - it is not overly complicated [01:25:00] which version are you running? [01:25:04] * ElmerG nods. I'm pretty comfortable with installing extensions and pretty good with wikicode. I'm mostly trying to find a good way to integrate/create webforms that will email FROM the wiki to a specific email address, rather than a form that opens the sender's mailer and then tries to send from there. [01:25:08] if it’s MW1.18 - the framework is already there [01:25:32] ah - sorry - was thinking gadgets for a sec [01:25:39] yes - there’s an extension for that which WMF uses [01:26:41] it creates forms like this one: https://meta.wikimedia.org/wiki/Special:Contact/requestlicense [01:27:30] ElmerG: https://www.mediawiki.org/wiki/Extension:ContactPage [01:28:10] I think I looked at that and it wasn't exactly what I needed. One sec, lemme look again. [01:29:35] it should do the trick from what you described [01:29:37] Or maybe it will, looking at the form varnent posted. So I can put my own defined forms in it. Interesting. And my MW is 1.24.3 I think. [01:30:20] yeah - it should work - the coding has to be done in LocalSettings [01:30:20] but the forms should be able to send to a specified email without mail app [01:30:28] I'm trying to put in an autoform that people can fill out that will have like, eight different data entry portions and send them over. So it looks like that might be what I'm looking for. [01:32:40] I think that will work - yes [01:33:07] you may have to dig around and into the documentation to do everything you want - but I think it’s doable from what you’ve described [05:30:25] anyone know an easy way to get all images used on a page and its templates for export then import? [06:05:30] qgil: is there a Phab Project for CT? [06:16:02] varnent, CT? [06:16:19] Community Tech? [06:17:05] qgil: yeah - sorry [06:17:18] varnent, not that I'm aware of, kaldari is basically landing and the team is doing their very first steps. [06:17:38] cool beans [06:17:47] is kaldari lead? [06:19:03] varnent, mmm at least he is a driving force. As said, after the announcement of this team things are just booting up. [06:19:19] qgil: gotcha [09:29:24] !admin [09:29:24] To recreate the admin user, run "php maintenance/createAndPromote.php" on the command line. [10:26:26] *shrugs* running mediawiki from git since 1.25 is being a pain... now update.php gives errors like "oojs/oojs-ui: 0.7.0 installed, 0.11.2 required." but in vendor I have oojs-ui 0.11.2 WTF? [10:29:48] Vulpix: Run `composer update` and it will fix itself. [10:30:05] sadly, it did't [10:30:17] Vulpix: Hmm. Do you have a remapped /vendor? [10:30:49] I don't see where it sees I have 0.7.0 installed :S [10:32:20] well, I have a weird setup. I have mediawiki cloned on a directory, and then the published directory for apache contains symlinks to all folders and files of the repo, except composer.lock and composer.phar [10:33:25] I'll try to symlink them, but composer.lock has 0.11.2 on it... [10:34:30] well, no, symlinking them didn't fixed it [10:36:54] oh, wait. the composer.lock of the repo contains 0.7.0 [10:38:26] damnit, I guess once the symlinks are resolved, MediaWiki defaults to the real directory to see the composer.lock instead of the published one [10:44:13] ok, solved. copied composer.lock to the folder where I have the repo, and symlinked it [10:57:04] hi [10:57:35] do we have a special page to list allpages, which includes a template? [11:00:18] Juandev: no [11:00:27] thx [11:00:36] Vulpix: maybe via apisandbox? [11:00:42] what would be the usefulness of that? [11:01:20] Vulpix: technical issue, we have metadata template at cs.wv so we would like to know all pages where it is in use [11:02:15] ah, you have Special:WhatLinksHere. I though you mean a list of pages using any template [11:07:12] hi [11:10:49] Vulpix: well, that is probably engough [11:10:59] we can copypaste to excell tab and filter there [11:12:19] if you really want the second option, you may want to query the database directly [11:12:51] from Special:WhatLinksHere you can already filter links and transclusions [13:10:13] Hi, do yoy speak russia? [13:10:36] Всем привет, есть кто-нибудь рускоговорящий? [13:13:17] ребят, есть проблема. помогите пожалуйста http://mediawiki.ru/forum/threads/%D0%9A%D0%B0%D0%BA-%D0%BF%D0%BE%D0%B4%D0%BA%D0%BB%D1%8E%D1%87%D0%B8%D1%82%D1%8C-%D0%B2%D0%B8%D0%B7%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9-%D1%80%D0%B5%D0%B4%D0%B0%D0%BA%D1%82%D0%BE%D1%80-%D1%82%D0%B5%D0%BA%D1%81%D1%82%D0%B0-%D0%B2-%D1%81%D0%BE%D0%B1%D1%81%D1%82%D0%B2%D0%B5%D0%BD%D0%BD%D1%8B%D0%B5-%D1%84%D0%BE%D1%80%D0% [15:03:16] My interwiki links have suddenly stopped working. [15:03:30] Example, [[w:France]] produces the red link w:France (page does not exist) [15:04:05] can you look in [[Special:Version]] and check that the interwiki extension is still there [15:04:32] I'll try it [15:05:07] Yes, it's there. [15:05:48] I can go to Special:Interwiki also [15:06:24] There are lots of built-in prefixes [15:10:20] is there one for w? [15:13:37] Well, no actually. All the prefixes are long form. I tried wikipedia: and it worked. I think you nailed it. Yet I could sware I used short form w: before :\ [15:13:57] I guess not... [15:14:30] Thanks! [16:06:02] Ideas on how to meaningfully test https://gerrit.wikimedia.org/r/#/c/193838/ ? [16:32:40] Nemo_bis: in terms of performance? I'd try running it on the replicas in tool labs to get a handle for the runtime, and maybe do that for a few different wiki sizes to get an idea for the scaling [16:34:11] valhallasw: is the watchlist table replicated now? [16:35:23] Oh. Right, that's an issue. [16:35:44] I guess ask someone from ops to do that, then :/ [16:36:08] Or see if it breaks wikipedia after it's +2'ed ;-) [16:37:48] Performance should not be a big issue given Nik.erabbit's test, but it's harder to tell whether the numbers make sense. :) [16:39:42] Hard to think which other wikis to test on... maybe RationalWiki http://wikistats.wmflabs.org/display.php?t=mw&s=admins_desc [16:40:50] Nemo_bis: if you really want to test that, I'd suggest a test database with a few entries. There's only three main categories for wl_notificationtimestamp [16:40:57] but I'm not sure how well MW supports stuff like that [16:42:09] I'm not sure why the limit is based on RCMaxAge, though...? [16:42:58] valhallasw: dunno, to be configurable [16:43:50] And because "old" changes would not be accessible to users whether they're active or not [16:44:04] Probably there is a smarter way to configure but not sure which [16:44:15] just an extra variable, I'd say [16:44:28] why would old changes not be accessible? they got an e-mail with a diff link, I presume [16:45:29] but anyway, back on the subject of testing; other than a test DB I don't think there's an easy way [16:45:47] Not necessarily, as emails are skipped for bot and minor edits [16:46:20] But yes, probably needs another variable [16:46:41] I'm also not sure what happens if the user has notifications turned off [16:47:25] do those stay NULL? that might cause a significant bias [16:47:37] valhallasw: that doesn't change anything AFAICS, it's bold in Special:watchlist and then the timestamp gets reset when the page is visited [16:48:09] in that case I can't think of any things the query misses :-) [16:48:37] Unless I misremember, notifications don't affect the timestamp; only the opposite [16:48:44] valhallasw: thanks for sanity checking :) [16:49:05] that sounds sane (but it's different from what https://www.mediawiki.org/wiki/Manual:Watchlist_table#wl_notificationtimestamp says) [16:51:21] Hm. Might be that the page wasn't yet updated to reflect 1.5 :P https://www.mediawiki.org/wiki/Manual:$wgShowUpdatedMarker [16:54:01] * Nemo_bis looking at User::clearNotification() [17:00:56] !blank [17:00:56] A blank page or HTTP 500 error usually indicates a fatal PHP error. For information on debugging (including viewing errors), see . [17:19:20] how would I insert some whitespace lines with mediawiki? [17:20:41]
[17:38:21] doug1: if you have an empty line between two lines in the wikitext, that will show up as an empty line in the resulting page. [17:55:00] valhallasw: ok, NOW I believe it's correct. https://www.mediawiki.org/wiki/Manual:Watchlist_table#wl_notificationtimestamp [17:55:30] Thanks for pointing it out, it was good to verify my intuition with the actual code. :) [17:58:06] Nemo_bis: actual code != what's running on wikimedia [17:58:13] xD [17:58:21] Nemo_bis: there's a loose 'When' [17:58:32] but looks good to me [18:00:43] Reedy: still more actual than code living only in my mind :P [18:00:58] copyedit done [18:01:53] Reedy: also, would you like to run an explain like that for, say, en.wiki's WP:ANI? :) https://phabricator.wikimedia.org/T51506#1078467 [18:04:38] yeah [18:05:38] Nemo_bis: What timestamp? [18:08:27] Reedy: 6 months ago or so [18:09:20] 20141112000000 should be fine, I doubt it matters that much [18:10:03] wp is slooooow [18:13:34] There's a cool MediaWiki style guide, here - http://tools.wmflabs.org/styleguide/desktop/ - but it doesn't seem to get used very often in the UI, other than in the login page. [18:13:47] It's not in use on Special:Preferences, for instance. [18:14:01] What's the deal? [18:14:26] No one has updated the preferences page likely [18:15:15] Reedy: do you know of anywhere else in the MediaWiki UI that these styles are used, besides the login page? [18:16:00] Nope, sorry [18:16:10] Yaron: I think mw.ui is being replaced by OOUI [18:16:13] Alright. It's just not clear to me how "official" this style guide actually is. [18:16:24] legoktm: what's that? [18:18:41] Yaron: https://www.mediawiki.org/wiki/OOjs_UI [18:19:50] Yaron: also https://lists.wikimedia.org/pipermail/design/2015-February/thread.html [18:21:08] legoktm: thanks! Those are both quite helpful. [18:21:26] Especially that email discussion. [18:22:28] np [18:22:46] Still, I'll be more confident about this whole thing when I see any of it implemented in core MediaWiki (other than in Special:UserLogin). [18:22:50] Nemo_bis: done [18:24:18] Yaron: OOUI is used in a few places in core like the mediawiki.feedback module, but mainly extensions for now (VisualEditor and UploadWizard). $wgUseMediaWikiUIEverywhere = true should enable it on special pages [18:24:58] legoktm: UW doesn't use it yet. [18:25:06] :( [18:25:22] * legoktm greps [18:26:08] ZeroBanner, Flow, Wikibase, CentralAuth, GoogleLogin, TemplateData, MultimediaViewer, VisualEditor, MobileFrontend [18:32:23] legoktm: oh, wow, I just tried out "$wgUseMediaWikiUIEverywhere = true;" - pretty neat! [18:33:49] Reedy: thanks [18:33:59] Now go figure why only 1 watcher [18:34:59] I did use the right ns and title? :P [18:35:00] * Reedy wonders what the dbkey is [18:36:42] Reedy: underscore, not space [18:36:50] trolol [18:38:33] Nemo_bis: updated [18:39:01] how did someone watch a page title with a space? :P [18:39:46] * Reedy checks if someone actually did [18:40:19] mysql:wikiadmin@db1052 [enwiki]> select * from watchlist where wl_namespace = 4 and wl_title = 'Administrators\' noticeboard/Incidents'; [18:40:19] Empty set (0.00 sec) [18:40:21] Nope [18:45:55] Reassuring [18:46:05] I thought we had found a bug :) [18:57:12] is there a way to (half-heartedly) prevent anonymous users from reading history? [18:57:24] (or rather, the usernames) [19:23:18] Yaron: That's not quite working for me [19:23:42] Yaron: It doesn't seem to work when the empty lines are after a heading with == foo == [19:26:38] MC8: add the following to your LocalSettings.php: [19:26:47] $wgHooks['BeforePageDisplay'] = function ( OutputPage &$out, Skin &$skin ) { [19:26:47] if ( Action::getActionName( $out->getContext() ) === 'history' ) { [19:26:48] $out->prepareErrorPage( $out->msg( 'permissionserrors' ) ); [19:26:48] $out->addWikiText( $out->formatPermissionsErrorMessage( array( array( 'badaccess-group0' ) ), 'history' ) ); [19:26:49] } [19:26:51] }; [19:27:11] there are probably better ways to do this, but since no one else is answering ... :) [19:28:09] MC8: erm, sorry -- that prevents anyone from seeing history, just a sec [19:28:53] MC8: there you go: https://dpaste.de/kTzL [19:38:25] oh wow, I wasn't expecting to actually be able to :D [19:38:27] thanks :) [21:22:21] hi. I have a problem with MathJax. I have some pages with code and I like these equations to appear in a block on their own line. So I used to leave 1 space before I typed the tag and code on my wiki pages. But since I updated to 1.24 and MathJax it no longer works. [21:22:43] Does anyone know if I can make it appear like before on a preformatted block, because it doesn't work. [21:43:05] dystant: do you mean one space in front to make the code of the math tag appear? Try putting it in a
 
tag pair, or use the / pair on your wiki. If you mean one blank line in front to have the equation appear, does
work? [22:34:07] !nyan [22:34:07] ~=[,,_,,]:3 [22:46:54] spagewmf: I meant the space we put on mediawiki to create a pre block. The problem is that it used to work, it would outline nicely the equation and have a dimmer background, but this no longer works. It pops [math]....[/math] instead of rendering the equation. ..