Extension:OpenBadges
From Linux Web Expert
OpenBadges Release status: stable |
|
---|---|
File:Mozilla OpenBadges.png | |
Implementation | MyWiki , API |
Description | Allow the wiki to become an OpenBadges issuer |
Author(s) | |
Maintainer(s) | Tom Fellows |
Latest version | 0.3.0 |
MediaWiki | >= 1.33.0 |
Database changes | Yes |
Tables | openbadges_class openbadges_assertion |
License | GNU General Public License 2.0 or later |
Download | |
|
|
|
|
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Translate the OpenBadges extension if it is available at translatewiki.net | |
Vagrant role | openbadges |
Issues | Open tasks · Report a bug |
The OpenBadges extension allows for Open Badges to be issued through MediaWiki.
- A badge can be created on the wiki, by anyone with the
createbadge
right, using a png or svg image as an illustration throughSpecial:BadgeCreate
. - A badge can be awarded, by anyone with the
issuebadge
right, to other users on the wiki which fulfil the e-mail requirements, either throughSpecial:BadgeIssue
orapi.php?action=openbadgesissue
. - Any user can view their awarded badges through
Special:BadgeView
. - Anyone can use
api.php?action=openbadges
to access a hosted assertion (that is, an awarded badge), in accordance with the Open Badges specification: 1.1, if the recipient user on the wiki still fulfills the e-mail requirements.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/OpenBadges</tvar>|Download]] and move the extracted <tvar name=name>
OpenBadges
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenBadges - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'OpenBadges' );
- <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
- Configure as required
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Configuration
- Require recipients to have set an e-mail address (enabled by default)
$wgOpenBadgesRequireEmail = true;
- Require recipients to have confirmed their e-mail address (disabled by default)
$wgOpenBadgesRequireEmailConfirmation = true;
- Set the width (in px) of png thumbnails for svg badge illustrations delivered in badge assertion (400 by default)
$wgOpenBadgesThumb = 400;