[04:12:53] I found a interesting problem not sure if I am missing anything: if someone else created a category say Category1, and then I am editing a page trying to use Category1, but when I type it it is not showing up under "Matching categories", I have to treat it like a new category, Save, and then it appears good on the page, and next time if I add it to [04:12:53] another page it all works fine.. Is there anyway to fix this so it shows up under Matching categories at my first time of using? feels like some kind of caching issue. [08:46:42] Hi, I search a plugin to edit wiki as markdown. I've found https://www.mediawiki.org/wiki/Extension:WikiMarkdown but it's annyoning to have to enclode markdown with xxx Is there a trick to make it the default ? [08:46:59] *encloe sorry [09:02:05] sputnickFreenode: use a different wiki engine. MediaWiki doesn't support other markups [09:04:17] MarkDown doesn't support templates, category syntax, and internal links. It would be very hard to make md the default [09:05:28] not without some significant extension to markdown [09:21:56] Vulpix: use MW for decades [09:23:13] Is this expected: if the Note template content does not have a translation, it is rendered as {{{1}}}: https://wiki.documentfoundation.org/Development/BuildingOnLinux/es#Build_dependencies [09:23:29] Page is transclusion-enabled, here is the template https://wiki.documentfoundation.org/WikiAction/edit/Template:Note [09:23:45] https://wiki.documentfoundation.org/WikiAction/edit/Template:InformationBox [09:23:58] https://wiki.documentfoundation.org/WikiAction/edit/Template:MessageBox [09:24:47] buovjaga: yes, because when you view the source code of that translated page, it displays as: {{note| .... - The equal sign confuses the parser, as it thinks the parameter name is urf, thanks [09:25:22] buovjaga: on the base page, use {{note|1= to explicitly mark the parameter name (or index in this case) [09:25:37] that's the trick we use on mediawiki.org [09:26:01] wow [09:26:30] More mass-replacement targets :) [09:28:46] for the use case of interest you might instead add some power to the template to handle the directionality and language directly [09:29:25] {{note|lang=en|content}} and then have note figure out which of those other attributes to apply [09:30:37] IDK how that plays exactly with whatever system you're using to support tranlsation [09:30:38] or even how that would play outside that context [09:30:46] er, using Extension:Translate [09:32:43] Yes, Translate. I'll go with the simple 1= [09:42:03] Translate extension likes to wrap untranslated text with those spans full of attributes, a major hassle when that's feed into template parameters [09:42:46] I think there's a parameter that prevents that, though [09:45:48] If it exists (and I'd bet I've seen it somewhere), it's not documented here at least https://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_administration#markup [12:28:04] Hi everyone! [12:28:25] Inspired by https://www.mediawiki.org/wiki/VisualEditor/Gadgets#Implementing_a_custom_command I was trying to add a
into the VE unsing this command: [12:28:34] ve.init.target.getSurface().getModel().getFragment().insertContent( [ { type: 'break' }, { type: '/break' } ] ); [12:28:42] While it actually inserted the line break in visual mode, there was not
in the wikitext after saving or switching to wikitext mode within the edit session. [12:28:42] I also tried to implement the whole "command/tool" in an extension, but the behavior was the same. The odd thing is that a
inserted in wikitext mode survives the round trip. The linear data model shows it as "alienInline" node then. [12:28:50] Any ideas why the official example didn't work? [16:49:45] Hi. I know this might be a bit of a basic question but I'm not really a developer, just trying to adapt something. I'm trying to connect to an API endpoint (which I'm sure works) but I'm a bit confused about how I'm supposed to get a valid CSRF token for the user executing it. Here is the part of the code so far but I can't seem to figure out the token part: https://dpaste.org/eKckd [18:10:16] Reception123: https://en.wikipedia.org/w/api.php?action=help&modules=query%2Btokens [19:40:17] I'm a bit stuck here — I'm using LinkRenderer's `makeKnownLink`, and for the target passing `SpecialPage::getTitleFor( 'CentralAuth' )`. This works, and links to the current Wiki's Special:CentralAuth page. I'd instead like to link to Special:CentralAuth on `meta.wikimedia.org`. As a proof of concept, I did `Title::newFromText(':meta:' . SpecialPage::getTitleFor( 'CentralAuth' ) )`, but this can't be the right way. [19:45:53] that would probably break on other-language wikis, since getTitleFor is localized [19:46:14] ah, hm [19:48:34] `::getPageTitle()` then [19:49:19] (oh, wait, nope) [19:50:48] `Title::newFromText( ':meta:Special:CentralAuth' )` feels a lot worse.. [19:53:12] There might be some method in WikiMap to do it or get the raw URL [19:54:00] * TheresNoTime will look [20:01:17] What does the MW advertisement do? [20:07:52] MW advertisement? [20:57:18] taavi, the one in the bottom right hand corner [20:59:26] "Powered By MediaWiki icon" would be more appropriate and meaningful [21:00:17] It's an ad. It's fine to call it what it is. 🙂 [21:43:51] TheresNoTime: https://gerrit.wikimedia.org/g/mediawiki/extensions/CheckUser/+/5f58d42c1ff4d885f733ad9a5bed4086320d111a/src/CheckUser/Pagers/CheckUserGetUsersPager.php#430 [21:44:19] legoktm: thank you! [21:44:48] yw :) [21:45:05] It's for https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/896419, and I'm now in two minds if it should redirect over to meta.. [21:45:07] Izno[m]: pretty sure Powered By just hardcodes www.mediawiki.org [21:45:26] yeah, I wouldn't be surprised [21:46:11] tbh Special:CentralAuth has a pretty terrible UX [21:47:34] > I would actually go the opposite direction and add the widely-used, well-maintained tools from the footer via the ContributionsToolLinks hook. --Tgr (talk) 05:27, 1 February 2023 (UTC) [21:47:43] I really like this idea [21:48:16] it's annoying that the default footer is useless if the wiki hasn't customized it yet [21:48:36] the default footer does need to have tools available to them [21:49:23] https://phabricator.wikimedia.org/T67446 [21:49:28] https://www.mediawiki.org/wiki/Notes_for_potentially_moving_some_mediawiki_system_messages_into_wikimediamessages/Sp-contributions-footer [21:50:38] I'm thinking about the tools that aren't in the list of things that most wiki installations set up 🙂 [21:51:50] I'd imagine we have a hook for extensions to add to and then a WikimediaMessages thing to add in Toolforge tools, etc. [21:51:59] like anything on wmflabs [21:52:01] incidentally for such reasons, you can't hardcode meta into CentralAuth [21:52:34] I don't know what labs is [21:52:48] But yes, it would be $wgCentralAuthCentralWiki = "metawiki"; [21:53:03] There is no wmflabs in Ba Sing Se [21:56:23] TheresNoTime: reviewed, I hope my comment helps [22:02:49] thank you [22:06:01] Izno[m]: there was, but then the Fire Nation attacked ;) [22:07:07] * bd808 apparently made himself the Fire Nation in this pop culture reference [22:26:57] legoktm: you knowww you wanna +2 that now [22:27:00] :D [22:29:29] TheresNoTime: sorry noticed one other thing. otherwise happy to, but would like taavi to ack linking to the local wiki instead of Meta [22:55:50] bd808, :)