- Support for PHP 8.2/8.3
- Multilanguage support where the language can be automatically changed based on Wikibase API sitelinks (that is, there is a default language and if that default does not exist, it returns a secondary or third automatic option)
Extension talk:InterwikiExtracts
Hi,
with the english Wikipedia it works perfectly for me.
I guess it should also be possible to use it with non english Wikipedia articles, e.g. german Wikipedia, but I don't know how.
I added in Special:Interwikitable
wikipedia_de | https://de.wikipedia.org/wiki/$1
{{#InterwikiExtract:Rosen|format=text|wiki=wikipedia_de|intro=true}}
I get the error message: "The specified wiki has no API endpoint defined"
Maybe somebody can help me, thanks in advance!
Hi! The problem is that when you add a new interwiki via Special:Interwiki, it's not possible to enter the URL of the API (the interface doesn't support that). You must add it directly to the interwiki table with a SQL command like the following:
UPDATE interwiki SET iw_api = "https://de.wikipedia.org/w/api.php" WHERE iw_prefix = "wikipedia_de";
Let me know if you manage to do it and I'll add these instructions to the documentation.
Hi! I am not so experienced with SQL tables and commands, but I simply executed your sql via phpMyAdmin and it worked perfectly.
Thank you!