Namespaces
- CheckboxHack
- Utility library for managing components using the CSS checkbox hack.
- share
- Share a URL using the Web Share API if available, and copy it to the clipboard.
Properties
checkboxHack :module:mediawiki.page.ready.CheckboxHackstatic
#
teleportTarget :HTMLElementstatic
#
A container for displaying elements that overlay the page, such as dialogs.
Type:
- Source:
wprov :string|nullstatic
#
nullstatic
#
Value of the wprov query parameter, captured before it was stripped from the URL, so dependent modules can still read it. See https://wikitech.wikimedia.org/wiki/Provenance
Type:
-
string
|
null
- Source:
Value of the wprov query parameter, captured before it was stripped from the URL, so dependent modules can still read it.
Methods
checkboxShift($checkboxes)static
#
Enable checkboxes to be checked or unchecked in a row by clicking one, holding shift and clicking another one.
Parameters:
| Name | Type | Description |
|---|---|---|
$checkboxes |
jQuery |
Enable checkboxes to be checked or unchecked in a row by clicking one, holding shift and clicking another one.
clearAddressBar(router, [route])static
#
Clears the address bar without triggering a route change
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
router |
module:mediawiki.router | ||
route |
RegExp |
optional |
only clear if this route is active |
enableSearchDialog(trigger)static
#
Associates a given element with the display of a search dialog.
Parameters:
| Name | Type | Description |
|---|---|---|
trigger |
HTMLButtonElement | that will launch the search dialog. |
Associates a given element with the display of a search dialog.
loadSearchModule(moduleName)static
#
Load a given module when a search input is focused.
Parameters:
| Name | Type | Description |
|---|---|---|
moduleName |
string | Name of a module |
- Source: