mediawiki.notification.convertmessagebox

Exposes a method for converting a messagebox to a notification.

Methods

(require("mediawiki.notification.convertmessagebox"))(options)inner #

Convert a messagebox to a notification.

Example

const convertmessagebox = require( 'mediawiki.notification.convertmessagebox' );

Parameters:

Name Type Attributes Description
options Object optional

Options

Properties:
Name Type Attributes Description
msg mw.Message optional

Message key (must be loaded already)

Source:
Convert a messagebox to a notification.