Dear developers,
_Question 1_ how do you implement/enable this in a Mediawiki: - internal links to Wikipedia like: [[wikipedia:de:Berlin|Berlin]] - internal links to Commons like: [[file:Berlin_night.jpg|miniature|Berlin]]
_Question 2_ This is requested in most Mediawiki installations. But in many Mediawiki installations it does not work. So I fear that a lot of Wiki maintainers do not knew, how to implement/enable this...
Maybe it is possible to implement/enable it *as default* in all Mediawiki in the delivery state?
Bests, Markus
InstantCommons is a feature for MediaWiki 1.16+ that allows any MediaWiki installation to use media on the Wikimedia Commons. This has basically been realized via $wgForeignFileRepos. See http://www.mediawiki.org/wiki/Manual: $wgForeignFileRepos. If you're only looking to use images from Wikimedia Commons and no other wikis, you can use the shortcut setting $wgUseInstantCommons to true.
On Sat, Feb 4, 2017 at 10:53 PM, Markus liste12A45q7@gmx.de wrote:
Dear developers,
_Question 1_ how do you implement/enable this in a Mediawiki:
- internal links to Wikipedia like: [[wikipedia:de:Berlin|Berlin]]
- internal links to Commons like: [[file:Berlin_night.jpg|miniature|Berlin]]
_Question 2_ This is requested in most Mediawiki installations. But in many Mediawiki installations it does not work. So I fear that a lot of Wiki maintainers do not knew, how to implement/enable this...
Maybe it is possible to implement/enable it *as default* in all Mediawiki in the delivery state?
Bests, Markus
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks John for answering my question 1.2:
If you're only looking to use images from Wikimedia Commons and no other wikis,
What means "no other wikis"? (I would like to get this: show pictures, scaled pictures, the Commons-metadata page by click, if the file is in Commons, and if the file is not in Commons but in the local Wiki, show the picture from the local Wiki)
you can use the shortcut setting $wgUseInstantCommons to true.
This I find in LocalSettings.php ?
So it would be fine to get $wgUseInstantCommons=true as default in all new Mediawikis. Which is the right place to ask for?
How is the solution for question 1.1 ? Best regards, Markus
_Question 1.1_ how do you implement/enable this in a Mediawiki:
- internal links to Wikipedia like: [[wikipedia:de:Berlin|Berlin]]
_Question 1.2_
- internal links to Commons like: [[file:Berlin_night.jpg|miniature|Berlin]]
_Question 2_ This is requested in most Mediawiki installations. But in many Mediawiki installations it does not work. So I fear that a lot of Wiki maintainers do not knew, how to implement/enable this...
Maybe it is possible to implement/enable it *as default* in all Mediawiki in the delivery state?
See the text.
Best, Martin
Dne po 6. úno 2017 11:00 uživatel Markus liste12A45q7@gmx.de napsal:
Thanks John for answering my question 1.2:
If you're only looking to use images from Wikimedia Commons and no other wikis,
What means "no other wikis"? (I would like to get this: show pictures, scaled pictures, the Commons-metadata page by click, if the file is in Commons, and if the file is not in Commons but in the local Wiki, show the picture from the local Wiki)
If you wish to use Commons and local wiki as your only one image source.
you can use the shortcut setting $wgUseInstantCommons to true.
This I find in LocalSettings.php ?
You find the variable probably. If it isn't here just add it there.
So it would be fine to get $wgUseInstantCommons=true as default in all new Mediawikis. Which is the right place to ask for?
The installation guide asks if you wish to add it. In general feature requests like this one goes to phabricator.wikimedis.org.
How is the solution for question 1.1 ?
Sorry but i didnt catch the question.
Best regards,
Markus
_Question 1.1_ how do you implement/enable this in a Mediawiki:
- internal links to Wikipedia like: [[wikipedia:de:Berlin|Berlin]]
_Question 1.2_
- internal links to Commons like: [[file:Berlin_night.jpg|miniature|Berlin]]
_Question 2_ This is requested in most Mediawiki installations. But in many Mediawiki installations it does not work. So I fear that a lot of Wiki maintainers do not knew, how to implement/enable this...
Maybe it is possible to implement/enable it *as default* in all Mediawiki in the delivery state?
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
OK, with regards to instant commons and being the only source, they are referring to foreign sources like commons. If you need further sources configuration gets a little more complex.
Instant Commons is already a question in the installer, setting it true by default would have a significant resource impact on the WMF, and cause a lot of surprises with the current user base.
by default [[wikipedia:de:Test]] works for liking to dewiki or any wikipedia.
On Mon, Feb 6, 2017 at 5:33 AM, Martin Urbanec martin.urbanec@wikimedia.cz wrote:
See the text.
Best, Martin
Dne po 6. úno 2017 11:00 uživatel Markus liste12A45q7@gmx.de napsal:
Thanks John for answering my question 1.2:
If you're only looking to use images from Wikimedia Commons and no other wikis,
What means "no other wikis"? (I would like to get this: show pictures, scaled pictures, the Commons-metadata page by click, if the file is in Commons, and if the file is not in Commons but in the local Wiki, show the picture from the local Wiki)
If you wish to use Commons and local wiki as your only one image source.
you can use the shortcut setting $wgUseInstantCommons to true.
This I find in LocalSettings.php ?
You find the variable probably. If it isn't here just add it there.
So it would be fine to get $wgUseInstantCommons=true as default in all new Mediawikis. Which is the right place to ask for?
The installation guide asks if you wish to add it. In general feature requests like this one goes to phabricator.wikimedis.org.
How is the solution for question 1.1 ?
Sorry but i didnt catch the question.
Best regards,
Markus
_Question 1.1_ how do you implement/enable this in a Mediawiki:
- internal links to Wikipedia like: [[wikipedia:de:Berlin|Berlin]]
_Question 1.2_
- internal links to Commons like: [[file:Berlin_night.jpg|miniature|Berlin]]
_Question 2_ This is requested in most Mediawiki installations. But in many Mediawiki installations it does not work. So I fear that a lot of Wiki maintainers do not knew, how to implement/enable this...
Maybe it is possible to implement/enable it *as default* in all Mediawiki in the delivery state?
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 2017-02-05 04:53, Markus wrote:
Dear developers,
_Question 1_ how do you implement/enable this in a Mediawiki:
- internal links to Wikipedia like: [[wikipedia:de:Berlin|Berlin]]
- internal links to Commons like: [[file:Berlin_night.jpg|miniature|Berlin]]
_Question 2_ This is requested in most Mediawiki installations. But in many Mediawiki installations it does not work. So I fear that a lot of Wiki maintainers do not knew, how to implement/enable this...
Maybe it is possible to implement/enable it *as default* in all Mediawiki in the delivery state?
Answer 1: This should already work out-of-the-box. But if you installed MediaWiki a long time ago and were only upgrading it, you might be missing some mappings. To add them, you can manually execute the SQL query from /maintenance/interwiki.sql in MediaWiki core, or install the Interwiki extension to get a web interface to manage them. (The extension is bundled with recent MediaWiki tarballs.)
Answer 2: Just set $wgUseInstantCommons = true; in your LocalSettings.php https://www.mediawiki.org/wiki/Manual:$wgUseInstantCommons. The MediaWiki installer gives you an option to enable this, too.
Hi John, Martin and Bartosz, Thanks to your answers :-)
Usecase is http://wiki.audacityteam.org/wiki/Special:Version Mediawiki version 1.19.1
For better understanding I split question 1 and make question 2 more precise:
_Question 1.1 Wikipedia_
how do you enable this in a old Mediawiki:
- internal links to Wikipedia like: [[wikipedia:de:Berlin|Berlin]]
_Question 1.2 Commons_
how do you enable this in a old Mediawiki:
- internal links to Commons like: [[file:Berlin_night.jpg|miniature|Berlin]]
_Question 2 default_
1.1 and 1.2 is requested in most Mediawiki installations. But in many Mediawiki installations it does not work. So I fear that a lot of Wiki maintainers do not knew, how to implement/enable this...
Maybe it is possible to enable it *as default* after the next update of an older installation?
Bartosz answers:
Answer 1: This should already work out-of-the-box.
Great :-) This refers to 1.1 Wikipedia and to 1.2 Commons?
If I understand Martin right: 1.2 Commons is not enabled as default (or 1.1. and 1.2 is not?), but the installation guide asks if you wish to add it.
I suggest to change the guide behaviour to *enabled default* [1] [2]
But if you installed MediaWiki a long time ago and were only upgrading it, you might be missing some mappings.
Ok, I understand.
To add them, you can manually execute the SQL query from /maintenance/interwiki.sql in MediaWiki core, or install the Interwiki extension to get a web interface to manage them. (The extension is bundled with recent MediaWiki tarballs.)
Answer 2: Just set $wgUseInstantCommons = true; in your LocalSettings.php https://www.mediawiki.org/wiki/Manual:$wgUseInstantCommons. The MediaWiki installer gives you an option to enable this, too.
Here I don't understand which one refers to 1.1 and/or 1.2 ? and I don't understand the difference between: (I'm not a mediawiki admin)
1) setting $wgUseInstantCommons = true; in your LocalSettings.php Martin added: If the variable isn't here just add it there. John writes (if I did understand this right): this is only working with MediaWiki 1.16+ 2) manually execute the SQL query from /maintenance/interwiki.sql in MediaWiki core 3) install the Interwiki extension to get a web interface to manage them. (The extension is bundled with recent MediaWiki tarballs.)
Which one is the most easy way to enable "internal links to Wikipedia"? What is the most easy way to enable "internal links to Commons"? (for non experienced mediawiki admins)
Bestst regards, Markus
[1] Maybe somebody can move this to Phabricator?
- - - - Feature request: _$wgUseInstantCommons_
Old: - $wgUseInstantCommons=false/empty? - The installation guide asks if you wish to add it and to set it to true.
New: a) For new Mediawiki installations: - $wgUseInstantCommons=true - installation guide asks if you wish to disable it
b) For updating an old Mediawiki installation: - if $wgUseInstantCommons=false - installation/updating guide suggest to enable it
Why: In many old Mediawiki installations Wikimedia-Commons does not work. Seems that a lot of Wiki maintainers do not knew, how to implement/enable this... - - - -
[2] Maybe somebody can add to the Phabricator an issue about "internal link to Wikipedia"? (similar to [1])
mediawiki-l@lists.wikimedia.org