[00:08:11] [telegram] Yeah, not a lot to discuss, but there are others that might take it up before me. (re @psychoslave: Should I formalise it on Phabricator?) [01:33:39] [telegram] admins [01:33:40] [telegram] @fuzheado @andreklapper @Ladsgroup @lucaswerkmeister [04:31:59] [telegram] Done [04:32:21] [telegram] thanks [04:49:15] [telegram] greetings to all . can someone suggest a way to obtain page url from page id [04:49:25] [telegram] which api feature to use [05:34:14] [telegram] you're aware page id isn't a stable identifier? why not use Qid? [05:52:12] [telegram] Forwarded from Dorothy: 𝖨'𝗆 π—Œπ—ˆ 𝗁𝖺𝗉𝗉𝗒 𝖨 π—€π—ˆπ— 𝗆𝗒 π—‰π—‹π—ˆπ–Ώπ—‚π— 𝖻𝖺𝖼𝗄, 𝗍𝗁𝖺𝗇𝗄 π—’π—ˆπ—Ž 𝖬𝗋 π–²π–Όπ—ˆπ— π–­π–Ύπ—π—π—ˆπ—‡ π–Ώπ—ˆπ—‹ π—‰π—Žπ—π—π—‚π—‡π—€ 𝖺 π—Œπ—†π—‚π—…π–Ύ π—ˆπ—‡ 𝗆𝗒 𝖿𝖺𝖼𝖾. 𝖨'𝗆 π—Œπ—ˆ π—€π—‹π–Ίπ—π–Ύπ–Ώπ—Žπ—… π–¦π—ˆπ–½ π–»π—…π–Ύπ—Œπ—Œ π—’π—ˆπ—Ž. [05:52:13] [telegram] πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡πŸ‘‡ [05:52:15] [telegram] https://t.me/joinchat/K8f9wIrLWRgzNDhk [06:27:06] [telegram] oh. sorry i was not aware .. kindly provide the link or any direction so i can work on i t [09:35:30] [telegram] https://en.wikipedia.org/w/index.php?curid=1234 ? (re @Harsh410: greetings to all . can someone suggest a way to obtain page url from page id) [09:36:20] [telegram] or look up the title using https://en.wikipedia.org/w/api.php?action=query&pageids=1234, URL-encode it, and put it after https://en.wikipedia.org/wiki/ [09:37:09] [telegram] that would be https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q1234 (re @jeremy_b: you're aware page id isn't a stable identifier? why not use Qid?) [09:41:49] [telegram] Many thanks πŸ™ [09:47:17] [telegram] or https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q1234&props=sitelinks/urls&sitefilter=enwiki (re @lucaswerkmeister: that would be https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q1234) [09:47:22] [telegram] or https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q1234&props=sitelinks/urls&sitefilter=enwiki (re @lucaswerkmeister: that would be https://www.wikidata.org/wiki/Special:GoToLinkedPage/enwiki/Q1234) [12:00:02] [telegram] https://phabricator.wikimedia.org/T282969 (re @chicocvenancio: Yeah, not a lot to discuss, but there are others that might take it up before me.) [14:51:13] [telegram] Why the reference system does not work in test and test2 wikipedias (English)? To test some references I actually have to edit the original Wikipedia and discard my edits [15:07:26] [telegram] don't need to URL encode. only exception I can think of is the question mark. and replace spaces with _ (re @lucaswerkmeister: or look up the title using https://en.wikipedia.org/w/api.php?action=query&pageids=1234, URL-encode it, and put it after https://en.wikipedia.org/wiki/) [15:11:10] [telegram] you can also use [[w:WP:sandbox]] or your own personal userspace sandbox? or just preview instead of saving? [15:11:12] [telegram] the most obvious answer I can think of is because the templates/modules on test and test2 are different, no global templates. [15:11:13] [telegram] you're just testing refs right? not testing changes to templates. (re @MavropaliasG: Why the reference system does not work in test and test2 wikipedias (English)? To test some references I actually have to edit the original Wikipedia and discard my edits) [15:11:59] [telegram] thanks (re @jeremy_b: you can also use [[w:WP:sandbox]] or your own personal userspace sandbox? or just preview instead of saving? [15:12:00] [telegram] the most obvious answer I can think of is because the templates/modules on test and test2 are different, no global templates. [15:12:01] [telegram] you're just testing refs right? not testing changes to templates.) [15:12:03] [telegram] oh wow the bot's smart enough to resolve the interwiki instead of sending me through meta first (re @wikilinksbot: [[w:WP:sandbox]]) [15:25:07] [telegram] Man I love MinervaNeue [15:32:09] [telegram] question about the Translate extension: is there an API to, given the title of a message on translatewiki.net, get its message group? [15:32:32] [telegram] I already found a solution for the thing I want to do, so it’s not urgent, but if there is a proper API for this I’d be interested :) [15:33:15] [telegram] (I looked through the https://github.com/wikimedia/mediawiki-extensions-Translate/blob/39a0ef55ecaf623b196f3207b9a7b06d22073446/extension.json#L345-L371 but didn’t find anything there) [15:33:32] [telegram] is there sometimes more than one group per message? or are groups ever inside other groups? [15:36:28] [telegram] I assume a message is only in one group, but I don’t know how groups relate to one another (one API had some kind of parameter to toggle between β€œflat” and β€œtree” modes, I didn’t look into that) [15:39:29] [telegram] They have one "main" group, but can belong to other groups as well (such as the most used MediaWiki messages). @amire80 is a good person to ask about this 😊 (re @jeremy_b: is there sometimes more than one group per message? or are groups ever inside other groups?) [15:40:24] [telegram] Now I'm curious about what you wanted to do 😁 (re @lucaswerkmeister: I already found a solution for the thing I want to do, so it’s not urgent, but if there is a proper API for this I’d be interested :)) [15:41:02] [telegram] patience ;) [15:44:11] [telegram] 😁 it resolves pretty much all links from [[m:Special:Interwiki]], as well as alternative namespaces (WPΒ»Wikipedia) and redirects (re @jeremy_b: oh wow the bot's smart enough to resolve the interwiki instead of sending me through meta first) [17:29:01] [telegram] @Nikerabbit is better to ask about this. I can maybe dig it in Apihelp, but Niklas will probably know if much more quickly. (re @jhsoby: They have one "main" group, but can belong to other groups as well (such as the most used MediaWiki messages). @amire80 is a good person to ask about this 😊) [17:29:36] [telegram] I'm not sure it exists just by message key, but I might be wrong. [17:54:38] [telegram] Page title -> message group(s) exists in PHP, but there is no Action API that exposes it [17:55:32] [telegram] ok thanks, then I’m happy with what I have already ^^ [18:34:27] [telegram] @lucaswerkmeister Since the implementation is not super complicated, I created a patch that adds this functionality to action=translationaids: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Translate/+/692021 [18:56:20] [telegram] nice, thanks! translationaids was the API for my β€œless nice” solution too ^^