Module talk:Interwiki

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Linking to lists[edit]

@Jarekt: Could list related to category (P1753) also be supported by this module, please? I think it's as simple as adding it into the redirectProperties list, but I'm not 100% sure. Thanks. Mike Peel (talk) 08:12, 22 April 2020 (UTC)[reply]

It's OK, I figured it out - it tested OK in the sandbox, so I've made it live, hopefully it won't cause any issues. Thanks. Mike Peel (talk) 08:53, 22 April 2020 (UTC)[reply]
Thanks, I kind of forgot about this module. I should add some unit testing pages to it, and add some code comments as I had hard time figuring out what it does. --Jarekt (talk) 12:22, 22 April 2020 (UTC)[reply]
That might be a good idea. I'm using it in ~350k categories... Thanks. Mike Peel (talk) 13:35, 22 April 2020 (UTC)[reply]
Mike Peel, I have a new version of this module in sandbox. I tested it on bunch of pages and it seems to work fine. Page Module talk:Interwiki/sandbox/testcases has 2 examples and adding {{#invoke:Interwiki/sandbox|interwiki|test=1}} to any page will show you a list of links that would be added. Now I am just looking for more pages to test it on. Any good candidates? How about the page that uses P1753? --Jarekt (talk) 01:57, 28 April 2020 (UTC)[reply]
@Jarekt: Category:Mayors of Arnhem is a test case for lists (currently includes 2 categories and 2 lists as interwikis). We also currently have Module:Interwiki from P460 by @Jura1, it might be worth merging that in. Thanks. Mike Peel (talk) 10:52, 28 April 2020 (UTC)[reply]
Thanks, I will try that category as of Module:Interwiki from P460: it does the same thing my module does. It also has capability of getting sitelinks from items connected by "different from" property, which seems wrong to me. --Jarekt (talk) 14:35, 28 April 2020 (UTC)[reply]
I deployed a new version --Jarekt (talk) 16:51, 29 April 2020 (UTC)[reply]
@Jarekt: Sorry, I reverted it as it wasn't working right. At Category:Real-time clocks, {{#invoke:Interwiki | interwiki | qid=Q862594}} returns links in the body of the category rather than in the sidebar, can you check this please? Thanks. Mike Peel (talk) 19:17, 29 April 2020 (UTC)[reply]
No it was my fault. I was testing everything in my brand new test mode, but the issue was a wrong format in the regular mode. I previewed the clock and few other pages with the new changes and they looked the same. Sorry about this and thanks for quick revert. --Jarekt (talk) 19:57, 29 April 2020 (UTC)[reply]

Edit request: make interwiki accessible from other modules[edit]

{{Editprotected}}

@Jarekt: I'd like to be able to use this function in another module (specifically, Module:Aircraft cat). I've tweaked the code in Module:Interwiki/sandbox to do this (doing the bulk of the work in p._interwiki). Assuming this looks good to you, could you propagate the changes to the main module? —CalendulaAsteraceae (talkcontribs) 18:04, 16 January 2024 (UTC)[reply]

✓ Done Thank you Jarekt (talk) 18:09, 16 January 2024 (UTC)[reply]