counts

Methods

getEditCountBucket(count) → {string}static #

Gets the count bucket for the number of edits a user has made.

The buckets are defined as part of the Popups schema.

Extracted from mw.popups.schemaPopups.getEditCountBucket.

Parameters:

Name Type Description
count number
Source:

Returns:

Type
string

getPreviewCountBucket(count) → {string}static #

Gets the count bucket for the number of previews a user has seen.

If local storage isn't available - because the user has disabled it or the browser doesn't support it - then "unknown" is returned.

The buckets are defined as part of the Popups schema.

Extracted from mw.popups.getPreviewCountBucket.

Parameters:

Name Type Attributes Description
count number | null | string | boolean optional
Source:

Returns:

Type
string