[03:07:21] Reedy! [05:11:25] Can someone tell me the simplest way to create a page using JavaScript? [06:39:29] i tried to import my old wiki into the latest version, i overwrote the mysql database, merged the old and new images directory, the text shows up, the non thumbnailed images show up, but anyhting thumbnailed says file missing. now what? [06:40:06] (oh yeh i ran update.php too) [06:55:42] hm i just did #$wgUseImageMagick = false; [06:55:43] fixed [07:20:31] so i have $wgLogo = "{$wgUploadPath}/Logo.jpg"; [07:20:55] and my apache log says its looging for Logo.jpg on the root directory of my webserver [07:20:56] :-S [07:23:06] $wgLogo = "{$wgScriptPath}/images/Logo.jpg"; [07:23:08] that works [07:23:21] so $wgUploadPath is bugged! [08:19:03] Avi, that variable might get set later [08:19:34] that is, by default it's null and gets initialized only in Setup.php if it's still null [08:33:13] :-S [08:33:36] what kind of a slop is that if they are not all avilable by the time it gets to localsettings.php [11:49:37] Making a horizontal line (rule?) is simple: "----". I want a similar horizontal line but with other characteristics, e.g. dotted, or dashed, or with a different color then normal text. I cannot find how to. Any tips? [12:01:09] "----" oh... [12:01:55] Custom CSS ? I don't think MediaWiki's wikitext tries to emulate every single option that CSS offers :P [12:04:36] Perhaps with some empty table with some dash or dotted characteristics? [12:06:37] you could do
, I guess [12:08:30] OK. So no mediawiki markup "trick" for this. I'll search html alternatives then. Thank you. [12:19:28] why is it looking for /resources/assets/licenses/cc-by-sa.png on the root of my server and not /wiki/resources/assets/licenses/cc-by-sa.png [12:21:51] $wgRightsIcon = "{$wgResourceBasePath}/resources/assets/licenses/cc-by-sa.png"; [12:22:27] so let me guess, $wgResourceBasePath is not set by the time it gets to localsettings.php right.... and thats their code not mine! (that path) [12:29:29] There is no simple way to downgrade MediaWiki from master to something more stable, right? [12:29:52] with saving if not plugins data but at least pages content [15:32:08] How do you tell with javascript if someone's using VE? [15:59:29] hi Rosencrantz [15:59:53] Rosencrantz: what do you mean by "is using"? whether they have it enabled at all? whether they currently have the editor open? something else? [16:01:42] Currently have the editor open. I'm working with some site analytics. Non-VE edits I can get from mw.conf.get('wgAction'), but VE edits show up as view. [16:06:59] hmm [16:07:41] Rosencrantz: (sorry, got distracted) server-side analytics? or what? you would probably want to get an "event" when VE is opened, rather than check whether it is open? [16:07:57] but anyway, let me see how to do it [16:09:15] Rosencrantz: to check whether VE is currently open: `ve && ve.init && ve.init.target && ve.init.target.active` [16:09:18] well the analytics are being collected on the client side javascript (I've got them in Common.js right now), and then sent off [16:10:35] Rosencrantz: to get notified when the editor is first opened on a page, you can write a simple VE plugin. https://www.mediawiki.org/wiki/VisualEditor_gadgets#User_script [16:11:14] Rosencrantz: the code inside `mw.libs.ve.addPlugin( function() { … } )` will run when the editor is opened (but only once per page view) [16:11:30] you can have whatever analytics magic there :) [16:11:59] Right… but wouldn't I get duplicate data if I have it loaded there *and* in Common.js [16:12:11] to catch the rest of the views and edits? [16:12:51] not sure what you mean? [16:14:14] ¿como editar un blog? [16:14:42] Hmm [16:14:58] ?????? [16:15:55] ¿como esitar un blog? [16:17:02] ¿ultima actualización? [16:18:07] MatmaRex: It's an external analytics package that I'm loading some js from. I'm loading their js inside common.js. So if it's loading when common.js loads, and after VE loads, wouldn't that get duplicate data? (or am I misunderstanding when common.js loads? ) [16:18:39] No [16:19:09] you're misunderstanding [16:19:13] Rosencrantz: oh, so the package just logs a hit for the current URL? in that case i have no idea how to make it work [16:20:14] what are you going to do? [16:21:39] DavidPeHer, are you here to ask a question? if so, please ask but don't just flood the channel with meaningless messages [16:24:58] Ok, well. I can futz with that once I actually get it collecting data I suppose. [16:25:05] Different (But related) question. [16:25:51] When is Common.js actually loaded? It seems to be before the mediaWiki javascript module itself is loaded [16:26:39] Rosencrantz, that's impossible [16:27:13] ResourceLoader uses mediawiki, jquery and startup modules [16:27:25] everything else comes after that [16:27:34] Thaaaaat's what I thought.. [16:27:48] maybe I fat fingered something, because I'm getting an undefined is not a function.. [16:28:08] Rosencrantz: simple way to verify is to stick if(!window.mw) alert('impossible'); at the top of your common.js [16:28:29] Rosencrantz: you might be depending on something which is not loaded by default. what function is undefined? [16:30:13] it's either mw.user.name() or mw.config.action('wgAction') [16:30:17] err [16:30:19] config.get [16:30:51] hmm [16:32:00] Rosencrantz: mw.user.name was renamed to getName in some recent MediaWiki version, so it might be just this [16:33:06] Rosencrantz: but it is also in a separate module, which might not be loaded (yet) when you're calling the function – wrap any code that needs this in `mw.loader.using(['mediawiki.user'], function(){ your code goes here })`. the function will be executed asynchronously after the module is loaded. [16:34:25] Rosencrantz: there's some documentation about using ResourceLoader to load stuff at https://www.mediawiki.org/wiki/ResourceLoader/Developing_with_ResourceLoader#Client-side_.28dynamically.29 [16:34:34] ahh yeah [16:34:55] Beautiful [16:38:48] mw.config is loaded though. so I just ended up using mw.config.get('wgUserName') [16:39:00] yes, that also works [19:17:13] MatmaRex : About https://phabricator.wikimedia.org/T95964 : The revert hasn't been deployed yet, has it? [19:30:22] guillom: hmm, nope [19:31:01] MatmaRex: Ok, thanks. I wanted to confirm in order to put it in the right section in tech news. [19:33:09] guillom: the revert is probably not worth announcing [19:33:27] guillom: i updated the task, so anyone concerned coming there should see it [19:34:01] guillom: and while importScript/importSctylesheet are not *deprecated* deprecated, they are still kind of deprecated, so we don't want to loudly announce that you should use them :) [19:37:09] MatmaRex: Fair enough; He7der added it, so I'll tell him that :) [20:19:12] Hey, does SMW work with FlaggedRevs? [22:39:04] No idea. [22:42:58] I imagine smw would interact with smw in a similar way to how it interacts with categories [22:45:32] bawolff: s/smw/fr/ somewhere I guess? [22:45:52] umm, yes :) [22:46:08] I heard you like semantics with your semantics [22:54:12] * Fiona awkwardly taps guillom on the shoulder.