Open main menu

Extension:WikimediaBadges

MediaWiki extensions manual
OOjs UI icon advanced.svg
WikimediaBadges
Release status: stable
Implementation User interface
Description Default themes to display badges on Wikimedia projects
Author(s) Bene* and Marius Hoch
Latest version 1.0.0
MediaWiki 1.25+
License GNU General Public License 2.0 or later
Download
Translate the WikimediaBadges extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

DescriptionEdit

The WikimediaBadges extension provides default themes to display badges generated by Wikibase Client (via the badgeClassNames setting) on Wikimedia projects.

It provides themes for the following Wikimedia skins:

  • vector
  • cologneblue
  • modern
  • monobook

Make sure you have one of the above skins installed to use the extension. You can check your installed skin on Special:Version.

Additionally the extension changes the Wikimedia Commons link in the "Other projects" sidebar to point to the Commons category (P373), even if the Item's sitelink of the page is actually pointing to the gallery page.

DownloadEdit

The extension can be retrieved directly from Git [?]:

  • Browse code
  • Some extensions have tags for stable releases.
  • Each branch is associated with a past MediaWiki release. There is also a "master" branch containing the latest alpha version (might require an alpha version of MediaWiki).

Extract the snapshot and place it in the extensions/WikimediaBadges/ directory of your MediaWiki installation.

If you are familiar with git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikimediaBadges.git

InstallationEdit

  • Download and place the file(s) in a directory called WikimediaBadges in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'WikimediaBadges' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

You should be able to see the MediawikiBadges in the Installed extensions section on the Special:Version page of your wiki.



See alsoEdit