[00:00:10] ryzendar: Look at the history of that page [00:00:34] goodness lol [00:01:20] 3570 revisions [00:01:44] 2MB a piece... [00:02:14] 6.7 GB alone [00:02:28] select sum( rev_len ) from revision where rev_page = 781473; [00:02:32] 6066647669 [00:02:51] ^ 5.65 GB [05:13:25] Comparing Module:* Template:* in Mediawiki.org to Wikipedia.org, there are 1,035 naming conflicts. For example, Template:LL, for localized link (MediaWiki) / language link/in lang (Wikipedia). Since I'll be using Translate extension (like Mediawiki.org uses), I want to make sure not to create any page name conflicts. Has this topic been discussed previously somewhere? [07:53:16] is there a tool (or library e.g. in python) with which i can clone a part of documents and their templates of a mediawiki instance into another instance? [08:01:24] Deknos, I think /wiki/Special:Export is your best bet. I've been writing a custom Node.js scipt to process exports organizing the pages into separate XML files [08:04:26] Thank you! :) [08:04:52] Deknos: See also https://www.mediawiki.org/wiki/Extension:Push and https://www.mediawiki.org/wiki/Extension:PushAll [08:53:53] May I ask a question here? It doesn't come up when I search for it. [09:02:08] yes, you can ask questions in here, It's one of the main goals of this channel [09:06:59] [about Syntaxhighlight] [09:06:59] I want the number to come out when I represent the code. [09:07:00] When the line number function is turned on, the line number is displayed. [09:07:00] And when I copy and paste, the line number is also copied. [09:08:20] How do I prevent line numbers from copying and pasting? [09:15:24] If anyone knows about this, please reply. Thanks. [09:15:25] I will check in 12 hours. [09:20:22] Korea_maru25: does the example at https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Usage copy the numbers as well? it didn't for me? [15:30:39] Hello! I'm getting a single result in PHP from a query ($res = $dbr->select). How do I get to it? I tried $res->doFetchObject() and $res[0] [15:32:10] You seem to have found some very old examples [15:33:55] You probably just want $dbr->selectRow() or $dbr->selectField() [15:37:20] thanks! [15:55:14] since user:getEffectiveGroups was deprecated in MediaWiki 1.35, what do I use now? I'm using it like this: "if (!in_array( 'sysop', $user->getEffectiveGroups() )) " [16:01:33] fount it:) ย it'sย  ย getGroups [16:01:38] found* [16:35:36] Guest3881: get a UserGroupManager from services...something like this: $groups = MediaWiki\MediaWikiServices::getInstance()->getUserGroupManager()->getUserEffectiveGroups( $user ); and then just do if ( !in_array( 'sysop', $groups ) ) though really you should be using a user right based approach (e.g. "does user have the required user right ?") instead of a group based approach ("does user belong to the specified user group ?") [18:21:00] Hi, say I have a timestamp in the db, and I want php to show how long ago it was, what mediawiki class could I use for this? [18:24:04] https://doc.wikimedia.org/mediawiki-core/master/php/classLanguage.html#a60c4c32f4e31c559582c31c97003c708 [18:32:24] so now I'm doing this: Language::getHumanTimestamp(new MWTimestamp($timestamp)) and I get Error: Using $this when not in object context [18:48:18] you need to get a language object from whatever context you are in [18:49:37] my context is class SpecialIncludable extends \IncludableSpecialPage [18:49:49] how would I do that? [18:52:17] $this->getLanguage() should do it [18:56:20] it works, but it doens't show how much time has passed [18:56:42] but thanks :) [18:56:53] I think I'll use the PHP functions [19:12:34] MediaWiki's handling of relative timestamps can be weird [19:13:49] Language->formatDuration might do what you want https://doc.wikimedia.org/mediawiki-core/master/php/classLanguage.html#a3b1d79604649b6f5de61117e1dedbc70 [19:14:03] (though you have to calculate the difference yourself [20:05:06] I have a question to ask about https://www.mediawiki.org/wiki/Gerrit/Tutorial#Add_SSH_Public_key_to_your_Gerrit_account . There, it claims I should click "ADD NEW SSH KEY", but that appears unavailable to my "RobLa" account. [20:05:32] mutante: are you still the best person to ask about Gerrit-y stuff? [20:10:14] robla: once you start typing in that free text field the button toggles from greyed out to blue (for me). could that be it? [20:10:25] like just type some random character in that box [20:10:37] * robla looks [20:11:54] OHHH.... got it. I didn't think the line before was associated. Thanks! [20:12:31] re: you're welcome. I was about to say "wtf, it's disabled for me as well :) [20:13:10] robla: welcome back to gerrit then:) [20:16:07] mutante: (insert whatever "lough out loud", "bwahahaha", eyerolling emoji is appropriate these days here) [20:17:45] Careful not to have any whitespace in the comment field of the ssh, or it'll get truncated by gerrit. [20:17:50] robla: ๐Ÿ‘๐Ÿ˜„ see https://emojipedia.org [20:18:46] ah yea, the comment field probably gets ignored anyways [20:19:47] we also have gitlab now, fwiw [20:24:52] re: emojis outside of lower ASCII; I'm still a lazy 'murican .... ๐Ÿ‡บ๐Ÿ‡ธ๐Ÿ›ป๐Ÿˆ๐Ÿ” [20:25:55] (I didn't find the "shotgun" emoji for the stereotypical "git off mah propity" effect...see what I did there?) [20:26:44] oh! I see the full effect only after I copy that from irssi to browser address bar:) nice [20:27:07] needed some fonts for the flag, heh [20:27:40] I'll have to try out gitlab for modifying stuff. I'm just trying to do the very basics of getting set up with mediawiki development [20:28:56] robla: ACK, yea, keep doing what you were doing and follow Wikitech then [20:29:32] Hey robla [20:29:34] Like a good 'murican, I did use the proper emoji ("๐Ÿˆ") to refer to "football" [20:29:36] gitlab is still beta/opt-in [20:29:48] yo RhinosF1 [20:30:41] Nice seeing ya around [20:31:30] RhinosF1: how are things over in Miraheze devops land? [20:31:51] robla: not bad [20:32:17] What's your current adventure ? [20:37:45] well, I'm letting myself get distracted by saying to myself "I should get set up with a proper MediaWiki dev environment!". [20:38:07] What I should be doing is working on my talk: https://twitter.com/DataUmbrella/status/1508456265202163715 [20:43:57] Nice [20:45:14] * mutante reads mission statement of Data Umbrella [20:45:31] sounds cool, Robla [20:47:31] I hope I encourage at least a couple of people who know what they're talking about to get involved. [20:53:58] robla: I'm sure you will [20:54:05] Do you like running talks? [21:10:27] I definitely do NOT like giving talks, but I know I need to get better at it. [21:13:33] remembers 10 years ago robla made me give a talk ;) [21:14:00] respect that you're doing it even though you don't like it [21:14:55] mutante: did I? I can remember even asking you to give one, let alone "making" you do it... [21:15:56] robla: I can't do big groups [21:16:15] robla: It was at some place in San Francisco around the corner from the old office, I only have partial memories [21:16:17] I like working with young people [21:16:45] i can help small groups [21:17:22] mutante: since you were never in a group that I was managing, the best that I could do was "beg" you to give a talk, and I could see myself doing that :-) [21:18:31] robla: :) yea, i think that's a fair assessment [21:25:36] Hi, which hook should I use when I want to prepend text to each page? [21:35:50] robla: was it beg, or bribe with food/drinks?