[08:28:59] Hello dear members of MediaWiki community. [08:29:16] I have a question regarding certificates in MediaWiki. [08:29:39] How to use them? Where to set them up? From which documentation to read? [08:29:45] Thank you very much. [13:42:12] Hi guys, I would like to test some Hooks. What is the simplest extension you know? The examples from https://gerrit.wikimedia.org/r/mediawiki/extensions/examples.git seem to be outdated. So I am looking for the most simple extension with Hooks. I want to test PageContentSave and OutputPageBeforeHTML [14:21:46] karlk: For that sort of thing, you can just make a really simple extension of yourown [14:21:54] Shouldn't need much extension.json boilerplate, and a PHP file [14:33:42] Reedy would also that work https://www.mediawiki.org/wiki/Extension:PatchOutput#Source ? [14:33:55] just this one file and I swap the code [14:34:20] Yeah, pretty much [14:34:28] the PHP entry point is "deprecated" but still works [14:35:28] You can use a simpler version of that, just using a global function, rather than using the class [14:36:49] ok [14:37:34] I am new to mediawiki and am reading https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker/Extension_Writing_Tutorial [14:37:46] :) [14:38:01] If the docs suck, please let us know and we can see if we can improve them [14:38:32] new eyes are specially valuable for detecting that [14:38:44] a bit :D [14:40:18] An other question Reedy the Cite extenstion is a bit buggy [14:40:26] Just a bit? ;d [14:41:32] is the last thing of the article is a list and you want to insert a title for references, then the title is in the list [14:41:41] wait I need to search [14:42:35] Adding an automatic heading before the references list [14:43:07] there are two ways: $(document).ready(function(){ $('.mw-references-wrap').before('

References

');});or with css .mw-references-wrap::before {... [14:43:28] but in both cases the heading gets into the list [14:43:51] I thing the list is not closed before the heading is put in [14:44:00] is there a way to fix that? [14:44:43] I also tried OutputPageBeforeHTML [14:44:51] but it had the same result [14:50:53] Would it maybe be possible to set the heading with PageContentSave before it is saved? [14:52:26] ooh an I tried it on mediawiki 1.31 and 1.34 if its important [14:55:26] I'm not sure why it isn't automatically added, but I'm guessing there'll be some reason [14:58:28] I'm a bit confused, karlk [14:59:04] there is a list, and you're adding a "== References ==" [14:59:39] so, as long as you provided a newline (or two?) before that, it should work [14:59:46] also, I'm not sure how is Cite involved there [15:00:13] maybe you could provide an example on https://www.mediawiki.org/wiki/Project:Sandbox ? [15:08:41] OK wait I need to fix my wiki, on your link I can't show [15:13:16] Reedy Platonides https://oliwiki134.herokuapp.com/index.php?title=Test the heading is embedded into the list [15:15:21] one heading is added by https://oliwiki134.herokuapp.com/index.php?title=MediaWiki:Common.js [15:15:47] the other by https://oliwiki134.herokuapp.com/index.php?title=MediaWiki:Common.css [15:17:36] usualy on wikipedia there is a template adding explicitely the , or you could even do something like https://www.mediawiki.org/w/index.php?title=Project%3ASandbox&type=revision&diff=3596697&oldid=3596693 [15:22:22] I think that an optional markup prefixed to the automatic could go into Cite [15:22:41] there doesn't seem to be a message like that [15:22:45] already [15:22:53] Platonides well I'm looking for an automatic solution, because users are usually lazy [15:26:01] I would recommend adding it on https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Cite/+/master/src/Cite.php#514 [15:26:04] It's not an important bug, I do that because to lern. I'm a working student and until now I did mediawiki css stuff. [15:26:22] it looks like basically copying the content of the if in line 527 could work [15:29:31] ok [15:29:49] the master branch Cite looks different to the 1.34 [15:30:01] Yeah [15:30:05] There's been quite a bit of work recently by WMDE [15:30:17] I see [15:30:26] a lot less code [15:31:49] OK I will copy&paste the if and see what happens. But I still need to lern how to write own extensions and how to use hooks :D thank you guys [15:33:17] you are welcome, karlk [16:55:02] Reedy and Platonides what is the latest Hook I can do = str_replace ('
    ', '....'); ? with onOutPageBeforeHTML it's to early. Or can I do this replace after the Page is saved? [17:08:20] I wouldn't recommend dealing with it that way [17:20:17] Platonides hmmm another idea I don't have. The three versions I tried are not working and editing the core-code or code of extensions not written by us is not allowed. So the 4th possibility would be to wait for the update on 1.35 [17:22:31] what about editing the code of Cite + send that upstream? [17:23:55] not allowed [17:24:04] Cite is not written by us [17:42:03] karlk: pardon me but isn't that why you'd send it upstream? [17:50:28] dtm I am new to the company, but they don't do updates. Only major updates like lts version to lts version. So next update will be 1.31 to 1.35. So even if it gets fixed for 1.31 I can't updated it. Don't ask me why it's that way. [17:51:49] ^_^ [18:06:02] That seems a great way to not recieve security updates [18:16:06] Reedy: the point of LTS releases is that they *do* get security updates, no? [18:16:22] >So even if it gets fixed for 1.31 I can't updated it [18:16:28] oh wait. they don't do *any* updates? [18:16:32] Yeah, exactly... [18:16:38] never mind then :D [18:17:07] guys don't blame me, at the moment I don't know why it's so. But I will tomorrow ask :) [18:17:18] We're not blaming you [18:17:26] We're just poking holes in the bizarre policy :) [18:17:39] no only you :D [18:17:41] karlk: don't call it an update, call it a "security patch" :) [18:18:03] I will [18:19:13] maybe there were a miscommunicatio, so the first thing I will do tomorrow is to ask [18:20:33] And if they say updates are done, then I need to setup a 1.31 mediawiki, find a way to fix it and then push it to you and ask for a merge for version REL1_31 right [18:21:21] anyone willing to test https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CheckUser/+/561848 on MySQL? [18:22:07] install checkuser, create new user, see if the checkuser event looks good in "cu_changes" [20:42:26] Registration is now open for EMWCon 2020 in Sandusky, Ohio -- April 1-3 [20:42:26] https://www.eventbrite.com/e/emwcon-spring-2020-tickets-88536831045 [21:32:42] is there a "good" way to dynamically modify links in wiki page output, before they are sent to the browser? [21:32:51] dynamically means not modifying how they are stored in the database [21:35:44] there is BeforePageDisplay, I guess