Beta Features/Other projects sidebar

Jump to: navigation, search

The Other projects sidebar beta feature adds to the sidebar an "In other projects" section, that provides links to the other Wikimedia projects based on Wikidata data.

How it works[edit]

The "Other projects" sidebar as already displayed on the French Wikisource main page

When activated, it adds the "In other projects" sidebar section with links to related content at other projects supported by Wikidata (currently: Wikipedia, Wikisource, Wikivoyage, Wikiquote, Wikinews and Commons). There is currently no way to override the links that are displayed. If there are no links to display, the section is not displayed (any page that does not have a Wikidata item).

It works only on projects supported by Wikidata. It is already deployed as a default feature for all users in the French and Italian Wikisources (e.g. s:fr:Auteur:William Shakespeare).

Leave feedback[edit]

You can try the feature by going to the "beta" section of your preferences (most wikis will show a "beta" link on the top-right area when you are logged-in), and enable the "Other projects sidebar" feature. You'll need to do the same process for each wiki you want to try the feature on (e.g., English Wikipedia, Japanese Wikipedia, Italian Wikisource, etc.). Then, navigate the site as usual and report any issues related to cross-project navigation.

Please leave feedback at the talk page. As additions to the already very heavy sidebar are often controversial, feedback is really needed.

Known issues[edit]

  • This beta feature only supports sites supported by Wikidata (e.g. Wikipedia, Wikimedia Commons, Wikidata, Wikisource, Wikiquote, Wikinews Wikibooks, and Wikivoyage). More projects will become available as they are added to Wikidata over the coming months.

Suggestions for improvement[edit]

Beta features are supposed to improve over time, here are our current ideas for improvement:

  • There is no way to easily edit links without leaving the current page. The "Add links" widget accessible at the bottom of the language links section that allows to easily link the current page to a page in an other language may be adapted to allow links to other projects.
  • There is no easy way to override links from Wikitext (except using bad JavaScript-based hacks).

More information[edit]

Is this really needed?[edit]

  • The first bug about this feature have been opened in 2004.
  • Some wikis like the Italian Wikipedia currently rely on JavaScript hacks in order to add an "other projects" section.
  • French and Italian Wikisources already provide this feature by default for all users.
  • Wikivoyages already provide this functionality via the RelatedSites extension, but they are limited to the prefixes in the Interwiki map, which default to English for the Wikimedia projects.

Code changes[edit]

This beta features is implemented as part of the Wikibase Client extension by two changes:

Link texts[edit]

Link text can be customized with following system pages:

How do I enable the preference on all wikis?[edit]

Paste this code (courtesy Matma Rex) on m:Special:MyPage/global.js:

// Intentionally using non-strict comparison with ==, not ===, because of [[phab:T54542]]
if ( mw.user.options.get( 'wikibase-otherprojects' ) == 0 ) {
    mw.loader.using( 'mediawiki.api', function () {
        ( new mw.Api() ).postWithToken( 'options', {
            action: 'options',
            optionname: 'wikibase-otherprojects',
            optionvalue: 1
        } );
    } );