Extension:AchievementBadges

AchievementBadges is an extension that provides an achievement system for MediaWiki wikis.

Features

 * There are only optional dependencies, unlike other similar achievement system extensions.
 * There are built-in achievements, and you disable each of them as needed.
 * Special:Achievements shows the list of the achieved achievements to logged-in users.
 * The user who just earned an achievement will get notification. (Echo required)
 * You can install AchievementBadges as a beta feature. (BetaFeatures required)
 * If you are a developer, you can create your own achievements via hooks.
 * Currently, there are no database table schema changes. This can be changed in the future.

Parameters
TBD. See the extension.json for live update.

Others
SNS sharing links display in Special:ShareAchievement are just plain text. The interface administrator of the wiki can styling it via Common.css. See below example.

Definitions
Achievement definitions happen in the method that responds to the  hook.

If you are adding a achievement type, its name should be 32 bytes or less including the index number. The numbers is appended to the key of stats achievements automatically based on the thresholds of the achievements. Your i18n messages:


 * - for the name of the achievement. This is appears as a title of notification, displayed as a description in Special:Log, and displayed in Special:Achievements and Special:ShareAchievement.
 * - for the Special:Achievements description that appears when the achievement is not achieved.
 * - for the Special:Achievements description that appears when the achievement is achieved and displayed in Special:ShareAchievement.

TBD.

Trigger the achievement
TBD.