[go: up one dir, main page]

Wikibase customizations specific for Wikidata.org

Clone this repo:
  1. 0f25f93 Merge "Better filtering of prom metrics for wdqs max lag" by jenkins-bot · 2 days ago master wmf/branch_cut_pretest
  2. 6fdc28e Localisation updates from https://translatewiki.net. by Translation updater bot · 6 days ago wmf/1.43.0-wmf.24
  3. 8a4dabe Better filtering of prom metrics for wdqs max lag by David Causse · 11 days ago
  4. 0f7c68c Localisation updates from https://translatewiki.net. by Translation updater bot · 13 days ago wmf/1.43.0-wmf.23
  5. 7be87c8 Localisation updates from https://translatewiki.net. by Translation updater bot · 3 weeks ago wmf/next

Wikidata.org

This extension is a grab-bag for miscellaneous configuration and customizations that are specific to wikidata.org.

This includes the following things:

  1. It adds styles and images for Sitelink badges specific to Wikidata.
  2. It adds a link about DataAccess to the footer of every page.
  3. It includes the query service lag (compare T221774) into the max lag calculation. (The other main contributor being replication lag.)
  4. It holds the i18n messages for the Lexeme links in the sidebar, so that they can be translated on translatewiki.net. (The links themselves are defined on-wiki in MediaWiki:sidebar.)

Issues and tasks are tracked on Phabricator!

Installation

After cloning this extension into the extensions directory, add the following line to your LocalSettings.php:

wfLoadExtension( 'Wikidata.org' );

Development

This extension follows a layout that is very similar to many other extensions.

Its PHPUnit tests are run as any other extension's PHPUnit tests (which is specific to your particular setup).

You can run PHP code style checks with

composer run test

and fix fixable violations with

composer run fix

Similarly, you can lint the JavaScript code with

npm test