[03:22:18] ningu: if you do have a timeline/deadline, you should make sure your reviewers are aware of it so they can prioritize your review accordingly [03:59:47] legoktm: yeah good point [04:00:55] it's hard to say _exactly_ but I can try. some of these things are stoppers that will make it hard to proceed on certain work, others aren't :) [12:10:10] morning.. knock knock [16:37:36] bd808: chrome extension held for review, they now require a one-line explanation for every permission you request, and anything with webrequest blocking permission or host matching, also a privacy review. [16:37:40] interesting times :) [16:38:22] Krinkle: privacy theater! GOOG wants to be the only one tracking everyone in the world [16:39:19] * bd808 is salty about a surveillance capitalism company being the defacto maker of web standards [16:51:07] " This version has been screened and approved for the public. Keep in mind that other reviewers may look into this version in the future and determine that it requires changes or should be taken down." [16:51:10] from Mozilla [16:51:22] nice and quick, but also a bit oddly discomforting [17:43:48] Krinkle: The AI approved it [18:35:24] Question for those savvy with Apache: I had an old wiki that had its content merged with another wiki. I now want all requests to the old wiki domain to redirect to the new wiki. However, because Wikimedia uses a database to call up pages, I can't figure out how to get the Redirect or Rewrite [18:35:24] options to work in the .conf file for the old domain nam [18:35:24] e. Anyone know how to get that to work? I've spent a few hours trying various methods to do this, but none of them seem to work correctly. [18:37:16] I need to know what to put here: Redirect 301 /var/www/domainname.com/htdocs/WHATDOIPUTHERE https://www.newdomain.com/wiki/Main_Page [18:37:51] Thanks in advance for any help. :) [18:43:53] I've also tried using Rewrite, but I can't seem to figure that out, either. [18:49:23] ls -lah [19:18:24] Anyone have any ideas? [19:19:10] nihonjoe: you don't place the folder path in the Redirect [19:19:56] which was the url for page1 in the old wiki, and which one is the url in the new one? [19:20:12] (use made-up domains if you wish) [19:22:24] Old was https://www.domainname.com/Page_Name and new is https://www.newdomain.com/wiki/Page_Name [19:24:08] I guess you have a virtualhost for www.domainname.com ? [19:24:13] something like this should do: [19:24:17] [19:24:29] ServerName www.domainname.com [19:25:03] RewriteRule /(.*) /wiki/$1 [R=301] [19:25:26] sorry: RewriteRule /(.*) https://www.newdomain.com/wiki/$1 [R=301] [19:25:28] [19:26:36] actually, the (.*) may not be needed [19:27:01] I think it's needed if all pages need to redirect to the new location. [19:27:26] I'm not sure right now, it wouldn't harm, anyway [19:27:37] the / would already match everything [19:27:50] Aha. [19:28:10] you probably had some RewriteCond before [19:28:19] so that you didn't redirect /robots.txt to the wiki or similar [19:28:23] you may want to keep those [19:28:25] or not [19:28:41] play as you wish [19:29:37] Thanks. I'll see if I can get that to work. [20:36:14] hi, would someone please share part of LocalSettings.php which sets up Wikibase so that it can access Wikidata items/properties the same way Wikipedia does? [20:37:14] I'm unable to figure out the right way how to set it up even after trying to understand the manual [21:43:56] baruna: from what I can tell, accessing a remote wikibase instance is not possible, you need direct db access to the wikibase wiki [22:04:01] has this been changed or deprecated because it's not working to remove stupid things like widgeteditor etc https://www.mediawiki.org/wiki/Manual:User_rights#Example [22:05:03] Skizzerz: does it mean it's basically not possible use Wikidata data on my wiki? [22:06:11] Skizzerz: I thought it's possible to do so in, similarly like it's possible to use images from Commons on any wiki [22:07:51] baruna: correct, it is not possible. See https://www.mediawiki.org/wiki/Topic:Re0fv5eubca3b7vw [22:08:36] the linked thread is old but there hasn't been any recent development on that front because it's likely not a priority for the people who maintain the extension [22:09:00] c: I don't think you can remove rights via unset() in LocalSettings.php anymore if they're being defined in an extension.json [22:09:39] doing it in an ExtensionFunctions callback should work however I think [22:09:57] i love outdated documentation [22:10:17] it's there in hte docs [22:10:33] * c eyes Reedy [22:10:51] >In some extensions (Flow, Semantic MediaWiki, etc.), rights are added during extension registration or in a registration function. In this case, it could be necessary to use a registration function in LocalSettings.php to remove some predefined user groups: [22:13:48] maybe I'm just blind :D [22:14:48] is there a mediawiki function to take a wikitext string and escape it so it can be passed as a template parameter? so like "|foo=$bar" and $bar should be escaped [22:14:58] the lengths i have to go to undo the Wikipedia bureaucracy that is forced upon the world [22:16:20] ningu: wfEscapeWikiText() [22:16:41] MatmaRex: awesome, thanks [22:17:02] or you might just add and [22:17:33] well, no [22:17:40] I want the template to be able to use it as wikitext [22:17:57] but I don't want | inside it or whatever to mess things up [22:18:27] so like |foo=''bar'' should pass it in correctly [22:18:37] but what if the wikitext is "|foo" or something [22:19:23] maybe I just need to escape |? I dunno [22:47:07] if something has been merged on gerrit, does it not get into master immediately? [23:02:30] it should [23:05:39] if merged into master, ofc [23:10:54] this one: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/ProofreadPage/+/618492 [23:11:26] oh, it does seem to be there [23:11:27] ok, cool [23:12:55] btw I have an idea for ProofreadPage where a template MediaWiki:Proofreadpage_body_template could be defined to render the page body content... does that seem reasonable from the mediawiki way of doing things? [23:13:51] it already has a template like that for the page header [23:27:12] i suppose it's not possible to force (even temporarily) a slash in a file upload name? wgIllegalFileChars and wgLegalTitleChars title chars tweaks aren't helping [23:47:14] when you have items in-game that use slashes, it makes it quite difficult. We can obviously make the page with the slash, especially since there is no parent page which would confuse it as a subpage...however the templates use the PAGENAME as the filename for simplicity