[00:06:24] forgot I still had that on :) [00:58:37] ori: Some people want on-wiki LESS support. [00:58:41] Would probably help if it were faster. [01:19:48] Ooh, on-wiki LESS support sounds like a great idea [01:19:58] is there a phabricator ticket for that feature to be added? [01:23:31] https://phabricator.wikimedia.org/T56864 [01:23:34] I believe. [01:24:18] (I am how now and eating my keyboard.) The code is still alpha quality and we'll be doing code passes over it in the coming weeks. We ended up implementing it due to the nature of many nodes that use shared file system caches. Less.php's file caching system was able to bring four racks of servers offline when we first deployed it. [01:24:39] Uh, in relation to the less.js/lessoid Applehat here with me is working on. [01:26:32] Less.php's file cache format is not actually the generated CSS file. It is a generate PHP class that represents it incurs a large cost to load that class and do a minimal code run of it. Just returning the compiled CSS is much faster. [01:26:41] *generated [08:11:06] I'm not sure what I should be searching/googling for because I don't know what it's called. However, I'd like to link a word of a sentence back to an already established page?/document? [09:24:09] Mr_Queue: [[Page Title|Text you want linked]] [09:29:34] p858snake: Thanks, that's exactly what I was after. [09:36:47] p858snake: Now that I know the syntax I see it's called a pipe link. Are you aware of a plugin that patrols the database and creates them automatically where found? [09:38:32] not that I can think of, But you can create links before the pages exist (they appear red) and will work when created [09:38:48] and will also be listed on [[Special:WantedPages]] [12:35:57] Hello [13:27:19] cscott: you there? [13:54:44] Hello everyone [13:55:23] hi [13:55:25] I'd like to know if it is possible to mix Lua scripts with regular parsing stuff. For example, I have a Lua script that outputs {{TemplateName|Argument}} - and it doesn't transform into what it's supposed to be. [13:55:38] It just remains the plain text {{TemplateName|Argument}} [13:56:30] Am I doing something wrong, or it's just plain impossible to call a normal template out of Lua? [13:58:55] Ah, now I know the trick. [13:59:11] instead of #invoke, I should use subst:#invoke [14:36:30] morning [14:52:30] https://publictestwiki.com/w/index.php?title=TestWiki:Request_permissions&diff=1208&oldid=1207 [14:52:34] This edit does not appear on RC. [14:52:40] User is not a bot. [15:00:28] Hi Reception|away. [15:00:38] Special:RecentChanges has lots of toggles. [15:01:35] But yeah, hmmm. [15:02:35] Leah: It has nothing to do with them, I did all of them on "Show" and it still doesn't show them. [15:02:41] I think it's something techincal. [15:03:17] Well, it's a "public test wiki." [15:03:22] So I'm inclined to not care very much. :-) [15:03:35] You can check the database table directly to see if a row is in there. [15:03:48] It looks like the revision table definitely got updated. [15:43:20] hi. how do i even go debugging "FileBackendException from line 125 of '......./FileBackendGroup.php: Backend with name `shared-backend` already registered" [15:54:39] Hello everyone [15:55:06] It seems like my method of using {{subst:#invoke... did not work as intended. I mean, yes, it works as it is meant to work, but that's not the way I intended it. [15:57:26] I created a Lua Module that basically produces something like "region1 = {{something|1}}|pop1 = number|region2 = ..." and I am intending to use it within an infobox, which is a template. [15:57:44] However, I don't like using {{subst}} - I wanted the stuff to be parsed, not substituted. [16:01:22] Hey [16:01:35] Are you good with Lua and templates? [16:02:23] ola [16:02:53] Hey [16:02:55] ola [16:03:07] Are you good with Lua and templates? [16:03:08] xupamew a piçao o guest [16:03:15] ... [16:03:19] eu sou bom com tudo [16:03:27] inclusive comer a tua mae [16:03:31] Habla Inglez? [16:03:32] suck my cock [16:04:16] hi, is it possible to achieve a setup where HTTPS is only served to logged in users (and the login page) using only the mediawiki conf? [16:04:45] why would you want that? [16:05:36] Is it possible to generate a template's arguments via a Lua Module? Basically, invoking a Lua module within a template that feeds back the returned arguments to the template. Preferably without Subst. I know it works with subst, but I have my reasons for not wanting to usei t. [16:05:36] RobotsOnDrugs: people who are not logged in are served ads, and ads under https pay less [16:05:55] people who are logged in are never served ads [16:06:08] so they can use https safely :) [16:06:23] and you don't have the ads being served from somewhere else? [16:06:36] what do you mean? [16:07:11] as in you are showing ads from another site instead of hosting them yourself [16:07:38] i'm using an external ads provider/aggregator, including their js [16:08:14] if you're embedding their content, then it wouldn't necessarily be https, even if your content is [16:08:54] yes i know, the fact is that (if i understand correctly from what they told me) if the ads are included on an https page the tracking behavior is different and less efficient [16:09:04] ah [16:09:14] so ads pay less, simple as that [16:09:50] Is it possible to have a Lua module generate a template's arguments? Or rather, feed the arguments into a template. [16:10:27] you can't really control https/http that finely [16:10:37] you either have one or the other [16:11:59] RobotsOnDrugs: i guess i can somehow, tweaking the nginx conf based on the user's cookies, but i was asking if there was an easy way to do that directly in mediawiki, which i guess there isn't [16:14:55] I guess what I asked may be a little bit too complicated? [16:14:56] even if you could do stuff in nginx, it'd be horrendously complicated at best since you'd have to check every request and do rewrites since mediawiki wouldn't be generating the desired links [16:15:28] Metalhead33: or maybe no one who is around at the moment is familiar with lua modules [16:15:46] Damn... [16:16:42] RobotsOnDrugs: not really :) i already have a lua nginx rewrite in place to serve cached files to non-logged in users, so i guess it would be possible to tweak the logic to include http/s [16:17:12] yeah, i suppose if you already have that kind of thing done [16:47:59] Alright, I realize this is only tangentially related to mediawiki, but trying to get this phrased in a manner that google understands is going to drive me to drink :( [16:48:55] I'm trying to count the number of instances a date appears in my access.log file for my front ends so my boss stops asking me to check, however when I run uniq -c, I get several very very small numbers that are separate for reasons I cannot fathom, along with the large. I am wondering if this rings any bells for anyone [16:51:11] Still no one with knowledge of templates and Lua? [16:57:41] Ulfr: Why not just grep -c? [16:57:48] oh, instances of a date [16:57:53] Sort them first? [16:58:01] Reedy: Dis is what I run: awk '{print $4}' access.log | cut -d: -f1 | uniq -c [16:58:36] Dis is result: http://pastebin.com/2rKKLSmq [16:58:57] can you see any difference between 08/Mar/2016 and 08/Mar/2016?! because I sure can't. But uniq can :| [17:01:19] Stupid hidden characters or something? [17:01:49] legitimately what I pasted is what I see. cut trims at the first : spotted [17:02:27] it's driving me up a wall because I can't put the issue in terms that google can interpret correctly :( [17:02:54] https://github.com/miraheze/mw-config/issues/410 ideas? [17:02:57] and I have no idea how to make bash clean up after itself and just sum the numbers [17:06:00] hello, can {{ be used, escaped, within a template? I'm writing a parser / bot library [17:06:25] chippy: you know not what you ask [17:06:31] hehe [17:06:50] I understand that parsing templates is..well..tricky :) [17:07:09] chippy: I might have some templates from a project I had to stop before I lost my mind. One sec [17:08:46] Ulfr, thanks! I might have to reduce the scope of my library to only deal with the specific template that I'll be dealing with... [17:10:15] chippy: Hm. Is it going to be sent thru a wikicode parser? [17:10:51] Because I'm realizing I went crazy from bracket hell, I never had to escape [17:10:57] Ulfr, I don't think so. I think "parser" may be the wrong word? [17:11:15] I essentially want to change certain params in a template in the wikitext [17:11:38] i can see lots of brackets on the horizon [17:12:18] chippy: Behold my madness. http://www.wikidoc.org/index.php?title=Template:RHInfectiousDisease&action=edit [17:12:44] some nicompoop who created that particular template used line breaks as a aesthetic feature [17:13:36] Ulfr, thanks [17:14:13] also, https://github.com/earwig/mwparserfromhell which has probably an appropriate name! [17:14:32] of course it was python. [17:14:43] only thing harder to make go than python is perl [17:14:51] >< [17:16:10] just going over the test cases is illuminating [17:17:08] That's a fantastic word [17:17:18] Hello [17:17:36] Reedy: Thanks for validating that I have a legitimate issue and am not just being dense again. I'm sure I'll figure it out [17:17:52] It's easy to poke at when you have the source data and some time [17:17:58] Look at the output in something like a hex editor [17:18:04] Incase it's doing something funky [17:20:53] I've examined the source file and it's output, near as I can tell it's just because the server's under load with a side of string comparisons being dodgy [17:34:04] Well, to hell with efficiency, this is easier to solve in anything other than awk or perl xD [17:34:30] Still no one is here who knows Lua and templates? [17:35:33] Metalhead33: Might have better luck posing the question than waiting to hear from someone [17:35:40] what was your question? [17:35:50] and yeah, that [17:36:03] Using Lua to generate and feed arguments into a template. For infoboxes. [17:36:21] so you want to call a lua module that then transcludes a template? [17:36:44] That could work too. [17:37:01] "that could work too" implies that I don't understand what you're actually asking [17:37:05] http://ways-of-darkness.sonck.nl/Humans see "Regions with significant populations"? [17:37:33] I want to generate that list there automatically with a Lua module, and I already have the functions that generate the "|region1= this|pop1=that..." stuff [17:37:45] but I need to somehow feed it into the template without using {{subst:...}} [17:37:51] and how exactly are you calling this module [17:38:26] by using {{#invoke [17:38:29] doing {{Infobox|{{#invoke:blah}}}} isn't going to work without subst [17:38:31] http://ways-of-darkness.sonck.nl/Module:Mine_Race [17:38:38] Damn... [17:38:40] Any viable alternatives? [17:38:46] you'd need to wrap it the other way [17:38:55] As in, the reverse? [17:38:57] e.g. {{#invoke:blah}} generates the entire infobox [17:39:17] alternatively [17:39:18] Ah... That's what I was thinking, but how am I going to exactly do that? [17:39:23] the template itself can contain the invoke call [17:39:37] and your module generates the table rows or whatnot instead of template params [17:39:58] Hmmm.... good idea, but I am not good enough at Lua to comprehend the Infobox module. [17:40:09] I cannot write Lua Infoboxes. [17:41:24] that's a good thing to ask the other admins on your site for assistance on [17:41:35] I am the admin on my site. [17:41:38] The only one. [17:44:20] Reedy: Turns out grep works better than awk for stuff like what I was doing. >>; [17:44:39] lol [17:44:43] fuck computers [17:45:08] Seriously. [17:45:31] Wound up having to pump the day's date into grep, cron tab it to run at 11:55 or so [17:45:41] and hope the 5 minutes I'm not counting won't really matter [17:46:52] Seriously tho, how do I transclude a template in a module again? [17:47:18] http://ways-of-darkness.sonck.nl/Module:Infobox_race I tried something like this, but it clearly doen't work [17:58:56] This 100% cannot be real life. [17:58:59] Nooo way. [17:59:22] why does chrome and google apps script report a completely different number than what it actually is? D: http://ec2-184-73-211-184.compute-1.amazonaws.com/wdhc.txt [18:00:06] Nevermind. Squid is devious. [18:00:08] >> [18:22:12] Dear Experts. I have SyntaxHighlight problem. I am running mediawiki 1.26, Special:Version shows that SyntaxHighlit is installed and uncommented in LocalSettings.php [18:22:34] And still it seems not to be working: http://wiki.radecki.it/wiki/Installing_Informatica_on_Linux [18:23:42] Can anyone tell me what am I doing wrong? I am using the markup from the SytnaxHighlight wiki and my languages (bash and sql) are supported [18:25:19] example of the markup is here: https://dpaste.de/a3Rg [18:28:37] How do I transclude a template in a Lua module again? [19:09:05] hello! can anyone confirm that page ids are unique across a wiki? for example, if i have page A in the file namespace, there would never be a page B with the same ID in the main namespace. [19:22:13] niedzielski: Yes, correct. [19:22:28] niedzielski: page_id is also the auto-increment primary key of the page table :D so it's definitely unique [19:23:03] RoanKattouw: thanks! i appreciate it :) [19:30:02] How do you suppress the "Your edit has been saved" message? [20:07:28] Hi, I am trying to use OOUI with a form with a s [20:15:06] It has setValue() and getValue() methods [20:15:34] https://doc.wikimedia.org/oojs-ui/master/js/#!/api/OO.ui.DropdownInputWidget for full docs [20:15:40] Oh, okay. Some way to get a jquery compatible element? [20:15:51] What do you mean by "jQuery-compatible"? [20:15:57] If you want to be able to do .val() directly, then don't [20:16:08] OOUI widgets don't like it if you mess with their internal DOM directly [20:17:28] RoanKattouw: I was trying to build some hook which can be a replacement for selector objects, but it breaks when having OOUI widgets [20:18:25] What do you mean by "hook which can be a replacement for selector objects"? [20:18:25] I have a vague idea but I don't really understand what you want to do yet [20:19:35] Okay. So I added a hook which replaces s that list countries or languages or stuff like that? [20:20:50] I'm guessing you put in ULS, hide the 's value based on that ULS gave back? [20:20:58] RoanKattouw: Yup, languages selectors. [20:21:09] RoanKattouw: Yeah exactly that’s what I am trying to do [20:22:25] Hmm [20:22:29] RoanKattouw: Now unsure about how to make it work for both normal selectors and OOUI widgets [20:22:31] I think it might be best to do this a different way; I think you should talk to MatmaRex about it [20:23:27] hm? [20:23:50] been looking at building my own syntax highlighting solution since the extension changed [20:24:11] don't need my MW installation suddenly depending on the Python version installed [20:24:23] little excessive for coloring some text IMHO [20:28:08] MatmaRex: I am trying to do replace a select element using a hook [20:28:18] MatmaRex: to run ULS [20:28:55] MatmaRex: It is easy when the selector isn’t OOUI, since in OOUI case, .val() stops working [20:29:06] MatmaRex: So what would be a good generic solution? [20:29:24] MatmaRex: Basically he wants HTMLForm tag, the [20:34:09] so, .val(whatever).trigger('change') [20:34:52] but it would indeed be better to integrate ULS with OOjs UI, rather than trying to work around it. doesn't VisualEditor have something like this already? [20:35:14] Yeah VE has a ULS-based language selection widget somewhere [20:35:24] Although it might live in VE core? [20:36:07] Hmm, that sounds much nicer [20:37:09] Does it add any other dependency? [20:39:27] I don't think it does, but if it does live in VE core it might be tricky to pull in [20:39:27] no idea [20:40:15] kunalg: in VE, select some text, then click the "A" icon on the toolbar, "More" and "Language" [20:40:47] kunalg: this will open a little dialog, one of the button in it opens the language selector [20:41:01] Hrmph, it's only in VE core, and it looks like it was designed to be extended in VE-MW but I can't find anything that extends it [20:41:12] * RoanKattouw has to run to get lunch and then go to a meeting [20:44:13] MatmaRex, RoanKattouw_away Okay thanks [22:00:02] RFC meeting starting now in #wikimedia-office [22:01:32] topic: RFC Meeting: (part 1) Notifications in core (part 2) define an official thumb API [22:34:21] How to make a Title to a special page that takes a URL parameter? e.g. title=Special:ListFiles/User&ilshowall=1 [22:37:04] okay, it seems you can't; you have to $title->getLocalURL( $query ) [22:40:39] Yes, that's right [22:40:39] You can do the subpage part though [22:40:40] With SpecialPage::getTitleFor( 'ListFiles', 'username' ) [22:40:40] ( rillke --^^ ) [22:41:47] * rillke feels there should be more Q&A about MW on SO [22:43:19] roan, thanks. is there a class that would encapsulate the tittle with its url parameters? [22:49:33] "@return array Link descriptor in a format accepted by PersonalUrls hook" <-- Why isn't this a class? [22:50:40] lazyless? [23:17:49] No, I don't think there is one [23:48:01] "MediaWiki 1.27 requires at least PHP version 5.5.9, you are using PHP 5.4.20" <- I was fearing that would happen after upgrading MediaWiki. It doesn't seem to be economically profitable to be just a hobbyist contributor. [23:49:43] PHP 5.5 has nearly been out 3 years already [23:59:35] yes and composer version x since xxx and ... since ... - if you work daily with the project it's fine but if you don't and prefer to have a VM for each of your project it always gives you time to have lunch, dinner or a second breakfast