Bubble notifications/it



Le notifiche a bolle sono un sistema JavaScript sviluppato come parte di MediaWiki per visualizzare le notifiche su una pagina web.

Funzionalità
A notification can optionally be given a name (or "tag"). When a new notification is created with the same name as an older one that is still active, the older one is replaced with the new one. This enables an improved user experience where one would otherwise cause old, incomplete, or duplicate notifications to be visible (example use cases)
 * Notifiche multiple Si possono mostrare notifiche multiple nello stesso momento. Ognuna di esse può essere chiusa indipendentemente dalle altre.
 * Chiusura automatica A notification can be configured to automatically close after a short period of time. This is enabled by default, but individual features using this system may choose to disable it for specific notifications where needed.
 * Tagging:

API
The entry point for the bubble notifications is the  method. Some examples:

The format is:, available options are:


 * – A boolean indicating whether the notification should automatically be hidden after shown or if it should persist.
 * – Number of seconds for timeout of auto-hide notifications.
 * – An optional string. When a notification is tagged only one message with that tag will be displayed. Trying to display a new notification with the same tag as one already being displayed will cause the other notification to be closed and this new notification to open up inside the same place as the previous notification.
 * – An optional title for the notification. Will be displayed above the content, usually in bold.
 * – An optional string for the type of the message used for styling: Examples: 'info', 'warn', 'error', 'success'.
 * – A boolean indicating if the autoHide timeout should be based on time the page was visible to user or if it should use wall clock time.