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])