[00:32:39] Hi, I'm having trouble finding info on the function I need. I'm trying to substitute the contents of a template into another template call, but make it do that at view time instead of page-saving time. Any hints on where to start? [00:33:16] Basically, I have a template containing a list of google calendars, in a form which can be passed to {{#widget:Google Calendar}}. [00:33:38] I want to include the same list in several different views of the calendar, on several different pages, but only have to update the list in a single place. [00:35:03] I can do a {{#widget:Google Calendar | foo=bar {{subst:master calendar}} }} ... and it works, but needs to be manually re-substituted each time the page is saved or the master list gets updated. [00:35:40] Without the "subst:" bit, the widget doesn't render. [00:36:22] So, I'm not sure what I need to do to accomplish this. [00:40:00] ToyKeeper: doing it without the subst: is the right way to do it [00:40:04] what exactly happens when you do that? [00:40:14] also, is your wiki public? if so, what's the url? [00:40:38] It's public, but in very early stages. http://nocopride.org/wiki/index.php/Community_Calendar [00:41:18] With a regular non-subst template call, which is what I tried first, the page allocates space for the widget but draws nothing inside. [00:43:06] The page source reveals that an iframe is there, so I'm not sure what exactly is failing. [00:43:55] oh, i see the problem [00:44:05] Looks like the desired parameters aren't getting passed to the widget, since they don't end up in the iframe URL. [00:44:57] there's an easy way and a hard way you can fix this. the easy way needs you to install https://www.mediawiki.org/wiki/Extension:Scribunto . can you do that? [00:46:11] I can probably install it; may need to update to a newer mediawiki since I've got 1:1.19.14+dfsg-1 from Ubuntu 14.04, and it wants 1.20+. [00:46:18] What's the other way? [00:46:46] a really big template mess that i'd have to write [00:46:54] do you know wikimarkup well? [00:47:47] I'm relatively new to mediawiki-specific markup; have used lots of other wikis, but I'm still a noob about templates. [00:49:00] you'd probably be better off with scribunto then, since if the other way ever broke, you probably wouldn't be able to fix it yourself [00:50:29] I'll see what I can do on that topic. :) [00:51:18] Out of curiosity though, how would you briefly describe the approach used in the "big template mess" solution? [00:52:08] i'm not even sure exactly what i'd do [00:52:15] i really recommend the other way [00:53:38] Okay. It looks like there was a reason I couldn't find the "please bypass interpretation here and just include this other file inline" function I was looking for. [00:54:03] Hard to find what isn't there. [00:54:31] right. there's no such thing in mediawiki, but scribunto lets you do that [00:55:39] I'm more accustomed to python, lisp, shell, and C... which are dramatically different than MW's language. It has been an interesting learning process so far. [00:56:18] Scribunto lets you use Lua, which is a lot like those languages (compared to MediaWiki's template language at least) [00:57:37] Yup. I've got the info on my todo list now, at least. I think all I needed was a point in the right direction. [00:59:45] It'll probably be a bit later, after I get a ssl-capable host and get openID working. My testbed virtual host setup uses a reverse proxy to serve a bunch of stuff from one IP, and isn't very amenable to https. [01:01:46] I suppose there is support now for https on name-based virtual hosts, but it'd be a major overhaul to get my sandbox to actually do it. [01:03:04] I need to figure out how to shorten my wikis url.... [01:03:46] From /mediawiki-1.24.1/ or something like that to /wiki/ [01:04:18] Repton: https://www.mediawiki.org/wiki/Manual:Short_URL [01:05:39] I would assume you can use apache internal rewrites to remove the "index.php/" or "index.php?title=" part. The directory should be a simple matter of an apache alias... like "Alias /wiki /var/lib/mediawiki-1.24.1" [01:07:53] BTW, thanks for the reference link. This is also on my todo list. [01:10:33] Its confusing it's telling me to go to .htacess and localsettings [01:10:46] LocalSettings.php* [01:10:52] what's confusing about that? [01:11:20] Nvm [01:13:59] jackmcbarn: BTW, do you know offhand of any way to make MW display results of boolean operations on categories? Like, "this page lists articles which are members of both 'youth' and 'social' categories"? [01:14:14] ToyKeeper: SMW can do that [01:14:28] (another extension) [01:14:36] Heh, okay. I was kinda hoping not to add something that big, but I can deal with that if I need to. :) [01:16:16] So I rename my mediawiki directory as the first step.. [01:17:32] I'll get back to SMW after some other things have stabilized a bit. [01:22:17] Ugh I failed at it [14:54:15] Why are anonymous users not guarded against CSRF by MediaWiki? [14:54:41] Did anyone investigate whether this is a source of spam? [15:08:38] rillke: see https://phabricator.wikimedia.org/T14945 ; the bug it's merged into is restricted as security issue [15:09:55] ( https://phabricator.wikimedia.org/T40417 ) [15:36:44] gday [15:36:53] is there a maint script that rebuilds "File usage" data ? [15:37:09] valhallasw`cloud, can you add me to the CC list of https://phabricator.wikimedia.org/T40417 ? [15:37:22] rillke: no, I'm not in the security group. Sorry :( [15:37:39] andre__, can you? [15:37:56] valhallasw`cloud, thanks, anyway :) [16:01:11] * varnent sets up popcorn stand and considers adding a massage table [16:13:14] rillke: i could, presumably, if you need it [16:13:50] How I could configure authentication proxy here https://www.mediawiki.org/wiki/Manual:Pywikibot/Development#Bot_.26_Proxy [16:18:40] How I could config proxy authentication in Pywikibot? [16:19:36] MatmaRex, I am curious about the state of development of this so, yes, please if you can, I'd be grateful [16:20:56] without authentication is proxy = {'host': 'localhost:8080', 'auth': None} [16:21:52] rillke: can you view it now? [16:27:04] # set ('ID', 'PASSWORD') to proxy['auth']. [16:33:32] Hi - how do I get a Phabricator project for my extension? [16:33:53] I mean, where do I make the request? [16:34:43] Thanks, MatmaRex, yeah! I can see now :) [16:35:28] https://www.mediawiki.org/wiki/Phabricator/Creating_and_renaming_projects#New_projects [16:35:35] Yaron ^^ [16:35:55] Thanks! [16:36:11] With screencast :P [16:46:32] andre__: Hi! Would you have time today to chat about Phabricator & how to use it to kill the monthly engineering report? [16:47:27] guillom, today is bad :-/ [16:47:52] * andre__ still catching up after travel and fosdem weekend + start writing monthly report + prep meeting tomorrow, sorry :-/ [16:47:52] andre__: tomorrow? [16:47:58] guillom, tomorrow is better, yeah [16:47:58] ok [16:48:45] andre__: tldr: I'm thinking of using sprint-like projects to collect reports. Does it seem insane to you? [16:49:32] guillom, not necessarily, but depends on the implementation :P [16:49:37] Fair enough :D [16:49:40] thanks [16:55:19] * rillke just edited a MediaWiki page and got logged out [16:55:28] all my changes are lost [16:56:44] hey [16:56:55] hold on, not lost; "You can view and copy the source of your edits to this page: " [16:57:00] what is the canonical way to enable certain extensions only for a subset of languages? [16:57:35] I guess the extension itself should support that otherwise it will be a mess [16:58:07] rillke: what about doing a manual the check in mediawiki.php? [16:58:56] if ($lang == 'en') include 'blablaextension.php' [16:59:03] any caveats in this approach? [16:59:28] * rillke even did not now that something like a mediawiki.php exists [17:01:01] sorry, i meant LocalSettings [17:01:08] I guess most extensions are loaded with require_once ... [17:03:04] I need support... I installed MediaWiki on vocaloid.de/wiki/ and webpagespeedtest tells me that the Time to first byte is really high... [17:03:11] how can I fix this? [17:04:58] Nekura, did you try https://www.mediawiki.org/wiki/Manual:Performance_tuning ? [17:05:20] not yet I will test this [17:18:37] kynlem, whether there are caveats will depend on the extension; and I guess it could be unexpected for users that if they switch their preferred language, different features are available, ... anyway I think user preferences aren't yet loaded in localSettings.php [17:19:38] because it has to connect to the database first, so you would need a hook and loading an extension inside a hook is definitely non-standard and will most likely explode at some point [17:39:59] I was working on "mw.notification: Postpone autoHide timer if window was not focused".But the previous submitted patch worked fine for me.It paused the notification when window was not active.Bug has abandoned status currently [17:51:38] http://hypotheticalhurricanes.hol.es/wiki/index.php?title=Template:Infobox_hurricane_new is there a way from my end to make it fill in like it's supposed to and not like that? [17:52:48] Repton: that template is marked as "Esoteric". Good luck getting it to work on your site... [17:52:51] !wikipediatemplates [17:53:03] hm, where's the bot? [17:53:36] Repton: wikipedia templates are probably the most crufty and hardest to re-use you can find. Better start from scratch... [17:53:54] or look for examples on a smaller/newer wiki [17:55:49] http://hypotheticaltornadoes.hol.es/wiki/index.php?title=Template:Infobox_tornado_outbreak same for this? [17:55:54] I am very relieved that now he knows that I exist [17:58:53] Sorry I disconnected [18:19:28] hello [18:19:57] i need to ask some question on jomola [18:20:08] do anybody know related channel? [18:23:14] karami: Joomla? Maybe try #joomla [18:23:19] I don't know if it exists [18:23:27] But much more likely someone knows something there than they do here. [18:24:01] marktraceur: do you have some example for simulate a page editing, for example, add a category to a page [18:24:21] What do you mean by "simulate"? [18:24:58] marktraceur: simply add a category to a page , example addcategoryfunction(pagetitle) [18:24:59] i think there was no activity there [18:25:06] do you know special guy help me [18:25:07] karami: Sorry to hear it [18:25:12] i have some question on [18:25:20] karami: Try Joomla's website, we have *no clue* [18:25:27] The_Photographer: So not simulate, just do? [18:25:40] marktraceur: yes, just do [18:25:46] The_Photographer: Are you trying to do this from a gadget? [18:26:00] marktraceur: yes [18:26:11] The_Photographer: https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api.plugin.edit [18:26:18] does the quux in this do anything? [[Category:Foo|Bar baz#quux]] [18:26:27] ebernhardson: Yes [18:26:29] ebernhardson: Sortkey. [18:26:35] marktraceur: thats Bar baz i thought? [18:26:38] Oh, hm. [18:26:47] I swear it does something, but I don't remember what. [18:27:21] it still serves as the sortkey, presumably. [18:27:23] marktraceur: it could be that the whole Bar baz#quuz is sortkey? [18:27:29] Maybe [18:27:50] marktraceur: :**************** [18:28:02] What? [18:28:53] marktraceur: I am a array of pagetitles and I want append a category for each page [18:29:24] OK, yes, that's possible. [18:30:12] marktraceur: with newSection ? [18:31:20] Ugh scribunto won't work.. [18:31:35] The_Photographer: No, just make an edit [18:31:39] Don't use newSection [18:31:51] You'll need to get the original text [18:33:38] marktraceur: some way to load a javascript externally?. i dont want save it in the wiki (for the moment) [18:34:37] I'm sure there are hundreds of ways you could accomplish that, yes [18:34:48] The_Photographer: User scripts, browser extensions [18:35:02] marktraceur: yes, browser extensions [18:35:57] for more independence [18:40:22] Greasemonkey? [18:44:55] where does mediawiki store its setting for autologout? i want to change it and http://www.mediawiki.org/wiki/Manual_talk:Configuration_settings#Auto-Logout doesn't really explain it [18:47:05] <^d> Auto logout? You mean how long you stay logged in for? [18:47:18] <^d> You're probably wanting https://www.mediawiki.org/wiki/Manual:$wgCookieExpiration [18:49:31] maybe not: "The default value is 180 days". and i don't find "expir" in LocalSettings.php, so i don't think i've changed it [18:50:08] it is something about, no idea. 20 minutes, 3 hours, i would have to try out how much time after the last interaction i am still logged in [18:51:28] i log in, i start editing, do something else for some time (or don't hit "preview", since i have that preview addon activated) and i am logged out. meh. [19:02:02] ok, the value is set in DefaultSettings.php - but i think i've also seen a user specific setting while grep'ing [19:04:50] marktraceur: https://addons.mozilla.org/pt-br/firefox/addon/execute-js/ [19:05:23] marktraceur: https://addons.mozilla.org/en-US/firefox/addon/dotjs/ [19:06:47] Those are both things, yes [19:07:02] I don't have time to go extension shopping with you at the moment, sorry [19:09:27] marktraceur: no problem thanks [19:09:53] marktraceur: shopping for freee!!. :P [19:12:32] Isarra: Hi. Last one is here https://github.com/wikimedia/mediawiki-skins-Nostalgia/blob/master/Nostalgia_body.php#L455 but I can not submit patch on it. Can you have a look at? [19:13:37] ebraminio: What isn't working? [19:14:26] Isarra: It says it has conflict, I tried it several times every time with clean cloned repository it doesn't work [19:15:17] MatmaRex: Halp. [19:15:41] what says it has a conflict? [19:15:52] Nostalgia. [19:16:01] yes, but what says it [19:16:04] Oh. [19:16:16] ebraminio: [19:17:49] Argh, why is my image thumbnailing not working? [19:19:26] git review [19:19:26] Creating a git remote called gerrit that maps to: [19:19:26] ssh://ebrahim@gerrit.wikimedia.org:29418/mediawiki/extensions/Nostalgia.git [19:19:26] Errors running git rebase -i remotes/gerrit/master [19:19:27] error: could not apply 295a99e... Nostalgia.php cleanup [19:19:27] When you have resolved this problem run "git rebase --continue". [19:19:27] If you would prefer to skip this patch, instead run "git rebase --skip". [19:19:28] To check out the original branch and stop rebasing run "git rebase --abort". [19:19:28] Could not apply 295a99e... Nostalgia.php cleanup [19:20:03] Every time with clean cloned repo, I guess you can try it yourself also [19:21:33] $ git clone https://gerrit.wikimedia.org/r/mediawiki/skins/Nostalgia [19:21:33] $ cd Nostalgia/ [19:21:34] /Nostalgia$ nano Nostalgia_body.php [19:21:34] (remove dir="auto" thing) [19:21:34] /Nostalgia$ git commit -a [19:23:19] huh [19:23:21] Why the hell do these old skins use _ in the names? [19:23:29] oooooh [19:24:09] ebraminio: i see the issue, seems that i missed a spot last year when renaming that from mediawiki/extensions/Nostalgia to mediawiki/skins/Nostalgia [19:26:12] MatmaRex: Oh, great. Please let me know when I can apply the patch if is needed [19:27:02] ebraminio: the fix: https://gerrit.wikimedia.org/r/188100 [19:27:21] do a `git pull` to get that and it should work next time you try to submit a patch [19:27:57] hmph, you might need to clone the repo again. (or manually fix the remotes, but cloning is easier) [19:29:04] Bahahahahahah. [19:29:09] Imagemagick exploded. [19:29:17] And I didn't even notice because I mostly use svgs. [19:29:28] Oh dear. [19:30:40] MatmaRex: Yeah, I like clean repos more, done [19:35:02] MatmaRex: I saw several issues with dir="auto" implementation on browsers, one of them http://crbug.com/454099 it should be avoided on MediaWiki IMO [19:36:13] oh huh, that's awful [19:42:34] does any api module carry the user's email as a property? [19:42:39] User doesn't [19:44:14] wmat: user emails are considered private and aren't exposed via the api [19:44:26] unless you mean your own email, in which case meta=userinfo can show you [19:44:27] jackmcbarn: thx, that makes sense [19:44:44] no, i need to list all users with a specific domain [19:44:53] sql query time, I guess [19:44:57] yep [20:02:06] hi, is there code somewhere in the media wiki stack that does some corrections on the latex code in some articles? I've noticed that the wiki markup of certain articles contains incorrect latex code, and yet the latex still gets rendered correctly as a .png image. For example, this article http://es.wikipedia.org/wiki/Derivada_parcial occasionally uses \part [20:02:06] instead of \partial to denote a partial derivative symbol. How are these corrections made? [20:09:31] rmacqueen: maybe. it would be in the Math extension, if anywhere [20:16:58] MatmaRex: ty, I'll take a look there [20:43:00] hi everyone. is the collapsible navbar on by default in 1.22+? [20:46:38] anyone? [20:47:15] it seems to be according to the things i'm reading, but it isn't in my installation (1.24) [20:48:21] matthewburton: do you mean mw-collapsible? https://www.mediawiki.org/wiki/Manual:Collapsible_elements [20:48:33] maybe your wiki has some JavaScript errors preventing them to initialize [20:49:21] no, i mean this https://www.mediawiki.org/wiki/Extension:Vector#CollapsibleNav [20:49:23] try to edit a page. If the edit toolbar doesn't show up, that's a symptom of screwed up JavaScript [20:49:32] editing works fine [20:50:54] does the $wgVectorFeatures still apply even though the Vector extension is obsolete? [20:51:01] *variable [20:51:04] !wg VectorFeatures [20:51:04] https://www.mediawiki.org/wiki/Manual:%24wgVectorFeatures [20:51:13] got it, thanks [20:51:19] ugh, no doc for that variable? :S [20:51:29] oops [20:51:30] :-) [20:51:42] lemme try the extension documentation... [20:52:49] matthewburton: oh, it seems that functionality has been replaced by another extension: https://www.mediawiki.org/wiki/Extension_talk:Vector#MW_1.24.1_Fresh_Install_-_Vector_sidebar_does_not_collapse_53138 [20:52:55] adding $wgVectorFeatures['collapsiblenav']['global'] = true; didn't work [20:53:12] Vulpix, according to the Vector extension page, its functionality is now built in to MW core [20:53:19] ahhh [20:53:37] weird [20:53:39] that extension page is a mess, because not all those features are part of core [20:54:00] i see [20:54:05] perfect. thank you, Vulpix [20:54:10] the Vector *extension* is no more, unless you're running an old version of MediaWiki [20:54:11] yw [20:54:36] the Vector *skin* exists, and used to include collapsible sidebar menus, but that was removed [20:55:01] yeah, but that extension page should specify what features are now part of core and what have been discarded / moved to another extension [20:55:03] somebody revived the removed feature as that extension [21:43:25] is there a special page that lists all articles that have no internal links pointing to them? [21:44:24] orphans? [21:44:46] Special:OrphanedPages [21:44:49] special:lonelypages, or somehting [21:45:02] aha Special:Lonelypages is the real name of it yeah :D [21:45:07] ah the classics [21:45:15] awesome, thanks [22:42:56] I was wondering if there was a way to make the "unblockable" permission? [22:45:06] there's a ipblock-exempt for IP target blocks [22:46:50] Oh I meant was there a way to make it so I can't be blocked at all but I guess that'll work [22:48:30] Repton: why do you want to be unblockable? [22:49:53] Nvm I was thinking it would be nice to have but nvm [22:50:20] you know you can unblock yourself if you're an admin, right? [22:51:02] Yes [22:51:08] I know that [22:58:41] now I have to somehow get avatars working on SocialProfiles [23:25:42] http://pastebin.com/08xbqGSi how do I fix that error?