[11:45:08] Hi. I installed Extension:TemplateStyles and then did an export-import of [[w:Template:Multiple image]] and now the template appears to be working but viewing the transcluded documentation I see error "Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.". What should I do? [11:57:30] Install the JsonConfig extension as it's apparently missing [14:22:03] I installed https://www.mediawiki.org/wiki/Extension:JsonConfig but still getting that same error message. Apparently I'm missing some conf, but originally I was just looking a way to use that 'Template:Multiple image', but I don't really _need_ that [14:23:13] Well, if you export a template and it's dependancies... it's going to be setup to use that template and it's dependancies [14:23:44] so I could rollback the whole thing [14:24:05] these template imports are messy even when well documented what was done [14:24:31] Dependancy trees are complex [14:24:35] At least they're not node packages [14:32:55] I rolled those changes back. Thanks for the help. [14:33:42] I have some law texts to translate pro-bono elsewhere, not needing to add a ton of stuff to wikis just to get a multi-pic template to work [14:36:25] How can I use (or something to that effect) in a syntaxhighlight block, when I need to ignore tags? [14:45:38] I mean, if I use at least in the preview it displays the [14:55:13] buovjaga: Does <translate> display the tag as ? [14:55:36] Vulpix: not in the preview, but I could try saving [14:57:42] Vulpix: no, saving didn't help [14:58:57] There's probably no way to escape that... don't use syntaxhighlight when you have to put tags on it, then [14:59:12] yeah, that's a bummer [15:01:25] *don't use syntaxhighlight when you have to display plain tags on it [15:01:50] because on mediawiki.org, tags are currently being used inside syntaxhighlight to translate code comments [15:02:48] cool, works inside
[15:03:00] 	 sure, that's true, I use them myself
[15:19:16] 	 Reedy: https://bash.toolforge.org/quip/Kpa3g3gB8Fs0LHO5h6Gq
[15:19:27] 	 heh
[18:15:12] 	 Hi, I was looking into the API command haswbstatement but it doesn't seem to have a detailed autogenerated documentation like other commands such as for example this: https://www.wikidata.org/w/api.php?action=help&modules=wbgetentities I was wondering if anyone knew how to find it or where I should ask for it to be generated? I would really
[18:15:13] 	 appreciate it. Thanks in advance!
[18:17:32] 	 haswbstatement doesn't seem to exist
[18:17:46] 	 literally no mention in the Wikibase repo...
[18:18:20] 	 It's a WikibaseCirrus thing...
[18:18:35] 	 So it won't have API docs there unless it's exposed via the API
[18:18:49] 	 https://www.mediawiki.org/wiki/Help:Extension:WikibaseCirrusSearch#haswbstatement
[18:20:07] 	 Could you clarify what it means that it's a wikibasecirrus thing? I can use it just like any other Wikibase API command: https://www.wikidata.org/w/api.php?action=query&list=search&srsearch=haswbstatement:P31=Q744691
[18:23:42] 	 sdesalcala: that would be the general search API, so it lets you use any advanced search terms which are then passed to the search backend. The API is not aware of everything the search backend supports
[18:30:33] 	 I see, so it's not a part of the "normal" API but rather a part of the search API. Does that have any implication when it comes to the functioning of the haswbstatement? Do you know where I should inquire for more information about the inner functioning of haswbstatement? I'm afraid that everything I found on Google is not enough.
[18:31:40] 	 sdesalcala: see Reedy's link above for documentation on that search term
[18:34:33] 	 That link is certainly very helpful (so thanks!) but I would prefer something like the one for wbgetentities, since it says all the possible values and settings of the feature. For example, I would like to know how to not limit the number of returned items. It seems to limit it automatically, but I don't know what is the maximum (if there is a
[18:34:34] 	 maximum at all), etc...
[18:35:10] 	 look at the help for the search API; limit is a different parameter
[18:35:30] 	 max is 500 for normal users and 5000 if you have the apihighlimits permission iirc
[18:38:57] 	 Hey there
[18:39:21] 	 When I use mediawiki cache with apache rewriting it seems it's not working
[18:39:36] 	 sdesalcala: https://www.mediawiki.org/wiki/API:Search may be helpful
[18:40:57] 	 https://0x0.st/-b2l.txt
[18:40:59] 	 any hint ?
[18:41:48] 	 Thank you, Skizzerz. If it's part of search, how come haswbstatement is not in the URL you sent me? Is it because it's an extension, or they just didn't include it yet?
[18:42:03] 	 sdesalcala: it's on there, look at your query
[18:42:29] 	 you have **&srsearch**=haswbstatement:P31=Q744691
[18:42:42] 	 so the haswbstatement is part of the *value* passed to the srsearch parameter
[18:43:26] 	 and the documentation for srsearch includes "You can use the search string to invoke special search features, depending on what the wiki's search backend implements."
[18:43:39] 	 the API has no idea what those special search features are or how they may be invoked
[18:46:12] 	 I see, that makes sense. So these special features are the ones documented here: https://www.mediawiki.org/wiki/Help:Extension:WikibaseCirrusSearch
[18:46:17] 	 Reventlov: "RewriteEngine Off" is your problem
[18:46:26] 	 Skizzerz: no, I enabled it
[18:46:29] 	 just copy/paste error
[18:46:29] 	 Off, as the name hopefully implies, turns something off
[18:46:29] 	 :)
[18:46:38] 	 rewriting is not the problem
[18:46:51] 	 when the rewriting is enabled (and it works), the cache does not, this is the problem
[18:47:53] 	 try deleting existing cache files after changing the config?
[18:48:16] 	 that's a pretty common setup and I use it on a handful of wikis (rewrite rules + file cache) without any issue
[18:48:52] 	 sdesalcala: among others, yes. Those would be wikibase-specific ones. The CirrusSearch extension adds a handful of additional ones
[18:48:59] 	 and other extensions may add more
[18:50:53] 	 Skizzerz: yeah, I had to delete existing cache, that was it
[18:50:55] 	 thanks
[18:51:07] 	 now it only takes 800ms to load :')
[18:51:14] 	 I see, thank you very much!
[20:54:32] 	 Another question: what is the path the visual editor is supposed to push to ?
[20:54:52] 	 Path?
[20:54:53] 	 Cause I get things like this: 127.0.0.1 - - [30/Mar/2021:20:45:17 +0000] "POST /rest.php/wiki.domain.tld/v3/transform/html/to/wikitext/Accueil HTTP/1.0" 400 248
[20:55:09] 	 and the /rest.php/ is a bit suspect imo (but maybe that's expected)
[20:55:48] 	 (my main problem is a "Erreur d’accès au serveur Parsoid/RESTBase (HTTP 400)" on a 1.35 brand new mediawiki)
[21:11:28] 	 hmmm so from what I can see
[21:12:04] 	 I have these kind of messages: The 'Promise-Non-Write-API-Action' HTTP header was sent but the request was to an API write module.
[21:13:45] 	 hmm, might it be because some headers are missing because they are dropped by a reverse proxy ?
[21:17:50] 	 https://libreboot.org/news/libreboot202104xx.html
[21:19:40] 	 So if you have any idea about these error messages, tell me, i'll lurk there.