OOUI/Windows/Simple messages

A few convenience functions exist to display a quick message or question dialog, without having to set up a MessageDialog and WindowManager and other boilerplate.

For all the dialogs some additional options, such as, can be passed in the second parameter. If you need more flexibility, you should extend the  class.

Alert dialog
displays a quick modal alert dialog. The dialog has only one action button, labelled "OK" to simply close the dialog. It's also closing by pressing Esc. See complete documentation. "OOjs_UI_alert_dialog.png"

Confirmation dialog
displays a quick modal confirmation dialog. The dialog has two action buttons, one to confirm an operation (labelled "OK") and one to cancel it (labelled "Cancel"). See complete documentation.

Prompt dialog
display a quick prompt dialog. The dialog has a text input widget and two action buttons, one to confirm an operation (labelled "OK") and one to cancel it (labelled "Cancel"). See complete documentation.

Configuration options for the text input, such as  or   can be passed in the   config parameter.