Skip to content

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediaWiki DonateButton

Die Pflege der MediaWiki-Erweiterung DonateButton wird von WikiMANNia verwaltet.

The maintenance of the MediaWiki extension DonateButton is managed by WikiMANNia.

El mantenimiento de la extensión de MediaWiki DonateButton está gestionado por WikiMANNia.

Description

Fügt einen Spenden-Knopf der Navigationsleiste hinzu.

Adds a Donation Button into the sidebar.

Configuration options

Enable the DonateButton. Default is false.

  • $wgDonateButton = true;

Specify the link to a donation page.

  • $wgDonateButtonURL = "https://yourdomain.org/yourdonationpage.php?lang=";

The link is automatically completed by the code of the language selected by the user or alternatively by the wgLanguageCode variable.

Localization

The extension is localized for the languages "de", "en", "es", "fr", "he", "it", "nl", "pt", and "ru".

Support

Currently, this extension supports the skins Cologne Blue, Modern, MonoBook, Timeless, and Vector. Further skins may require additional adjustments, which would have to be made in resources/css/myskin.css.

For support of skin Minerva the link to the donation page has to be placed direct into the wiki page MediaWiki:sitesupport-url. Alternatively you may modify this extension and expand the i18n/en.json file with an entry like

  • "sitesupport-url": "https://yourdomain.org/donationpage.php?lang=en" or
  • "sitesupport-url": "https://yourdomain.org/en/donationpage.php"

Compatibility

This extension works from REL1_35 and has been tested up to MediaWiki versions 1.35.14, 1.39.17, 1.41.2, 1.42.3, 1.43.6, 1.44.2, and 1.45.1.

Version history

1.0.0

  • First public release

1.1.1

  • Support added for language "pt".
  • Global variable wgDonateButtonFilename removed, now the images in the folder resources/images will be accessed.
  • Global variable wgDonateButtonLangArray added. The array contains supported languages, konkret sind damit die verfügbaren Bilder für die Buttons gemeint.
  • If no image is available for the Button, the english image will be used instead.
  • Support added for MediaWiki REL1_37.
  • Support added for Skin "minerva"
  • Renamed "CologneBlue.css" into "Cologneblue.css" and "MonoBook.css" into "Monobook.css"

1.2.0

  • Global variable wgDonateButtonURL added. Set the link to a custom donation page.
  • Global variable wgDonateButtonEnabledPaypal added. If this variable is set to "true", then it will be linked to the Paypal page and the variable wgDonateButtonURL ignored.

1.3.0

  • Support for MediaWiki REL1_37+ improved.
  • Support added for Skin "timeless", "fallback", and "vector-2022".

1.3.1

  • A customised skin may be used.

1.4.0

  • Support for REL1_35+ added.

1.5.0

  • Changed "configuration schema", replaced manifest version 1 with version 2 and changed the prefix of the configuration variables from default to wm.
  • Replaced class “DonateButtonHooks” extending class “Hooks” with class implementing interfaces.

1.5.1

1.5.2

  • MediaWiki\Config\ConfigFactory::getDefaultInstance -> MediaWikiServices::getInstance()->getConfigFactory()
  • Remove dead code.

1.6.0

  • Support for skin Monaco.
  • Support for "he" added.

1.6.1

  • Handling global variables with ConfigRegistry and MediaWikiServices
  • Changed the prefix of the configuration variables back to wg.

1.7.0

1.8.0

  • Added compatibility to MediaWiki v1.44.
  • Refactoring "Paypal": Add Paypal-Form with global variables DonateButtonPaypalId and DonateButtonPaypalUrl.

1.9.0

  • Refactoring classes, namespace and backward compatibility.

About

Mediawiki extension for adding a Donation Button into the sidebar - MediaWiki is hostile to Men, see https://phabricator.wikimedia.org/T323956

Resources

Code of conduct

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages