Module talk:Interwiki
Linking to lists
@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)
- 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)
- 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)
- That might be a good idea. I'm using it in ~350k categories... Thanks. Mike Peel (talk) 13:35, 22 April 2020 (UTC)
- 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)- @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)
- 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)
- I deployed a new version --Jarekt (talk) 16:51, 29 April 2020 (UTC)
- @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)- 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)
- @Jarekt: Sorry, I reverted it as it wasn't working right. At Category:Real-time clocks,
- I deployed a new version --Jarekt (talk) 16:51, 29 April 2020 (UTC)
- 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)
- @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)
- 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
- That might be a good idea. I'm using it in ~350k categories... Thanks. Mike Peel (talk) 13:35, 22 April 2020 (UTC)
- 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)
Edit request: make interwiki accessible from other modules
@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 (talk • contribs) 18:04, 16 January 2024 (UTC)
Exclude wikifunctions and outreach
Please, add wikifunctionswiki and outreachwiki to the excludedProjects list. Those can have sitelinks on Wikidata, but do not work as interwiki links. Mormegil (talk) 16:07, 19 September 2024 (UTC)
Done (hopefully – the module lacks test cases AFAICT) --Lucas Werkmeister (talk) 19:36, 23 September 2024 (UTC)