Extension:AchievementBadges

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


 * No Dependencies: There are only optional dependencies, unlike other similar achievement system extensions.
 * Customizability: There are built-in achievements, but you can disable each of them as needed.
 * Extensibility: If you are a developer, you can create your own achievements via hooks.

Features

 * Special:Achievements shows the list of the achieved achievements to logged-in users.
 * The user who earned an achievement will get notification. (Echo required)
 * You can install AchievementBadges as a beta feature. (BetaFeatures required)

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.

Additional notes
Currently, a record of user achievement is stored in table as a log. If a log is suppressed, the achievement is also removed.