Extension:GlobalWatchlist/it
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{Estensione}} infobox. |
Stato della release: non mantenuto |
|
|---|---|
| Implementazione | Pagina speciale |
| Descrizione | Crea una lista degli osservati speciali "globale" |
| Autore(i) | DannyS712discussione |
| Politica di compatibilità | Snapshots releases along with MediaWiki. Master is not backward compatible. |
| MediaWiki | 1.36+ |
|
|
| Licence | GNU General Public License 2.0 or later |
| Scaricare | README |
| Traduci l'estensione GlobalWatchlist se è disponibile su translatewiki.net | |
| Problemi | Compiti aperti · Riportare un bug |
L'estensione GlobalWatchlist consente ad un utente di osservare i cambiamenti di una pagina osservata su più siti contemporaneamente.
Installazione
- Download and move the extracted
GlobalWatchlistfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GlobalWatchlist
- Aggiungi il seguente codice al tuo $LocalSettings (preferibilmente alla fine):
wfLoadExtension( 'GlobalWatchlist' );
Done – Naviga in Special:Versionnella tua wiki per verificare che l'estensione sia stata installata correttamente.
Configuration
| Variable name | Default value | Description |
|---|---|---|
$wgGlobalWatchlistWikibaseSite |
false
|
The site that should be treated as a Wikibase Repository and should have labels fetched for items that are changed. If false, the extra handling for Wikibase items is not applied.
|
$wgGlobalWatchlistUseVue |
false
|
Whether to use the experimental Vue.js version of the display |
$wgGlobalWatchlistDevMode |
false
|
Whether to send debug log entries to the console |
$wgGlobalWatchlistEnableGuidedTour |
false
|
Whether to enable the GuidedTour for the settings page, if the GuidedTour extension is installed |
$wgGlobalWatchlistSiteLimit |
5
|
The maximum number of sites that a user can save to their watchlist. Set to 0 to disable the limit. |
Using
To view the global watchlist, visit Special:GlobalWatchlist on the wiki where the extension is installed. By default, only the local wiki's changes are shown, but by changing the configuration at Special:GlobalWatchlistSettings the user can choose other sites to show, up to the maximum if configured.
JavaScript hook: ext.globalwatchlist.rebuild
The GlobalWatchlist interface exposes a client-side hook named ext.globalwatchlist.rebuild that is fired after every rebuild of the watchlist display, both after a full browser page load and after internal refreshes triggered by the feature itself.
This hook can be used by gadgets and user scripts or other extensions to run custom JavaScript whenever the global watchlist view is redrawn.
The hook callback receives a single object parameter with the following fields:
root– The root DOM element of the GlobalWatchlist interface that has just been rebuilt.inLive– Boolean flag indicating whether the interface is currently in “live updates” mode.fastMode– Boolean flag indicating whether the interface is in “fast load” mode.timestamp– A timestamp string representing the moment of the data snapshot for which this rebuild is valid.
A typical usage pattern looks like:
mw.hook( 'ext.globalwatchlist.rebuild' ).add( function ( data ) {
// data.root is the rebuilt container element
// data.inLive indicates live updates mode
// data.fastMode indicates fast load mode
// data.timestamp is the data timestamp for this view
// Custom logic can be added here, for example:
// $( data.root ).addClass( 'my-globalwatchlist-enhancement' );
} );
Integration with other extensions
- When CentralAuth is installed, only wikis where the user has an attached account are allowed in their global watchlist
- When some of the sites included in the global watchlist have the Wikibase Repository extension installed, labels for items and properties can be fetched and displayed. If WikibaseLexeme is installed labels for lexemes are retrieved too.
- When GuidedTour is installed, and
$wgGlobalWatchlistEnableGuidedTouris enabled, a tour is available at Special:GlobalWatchlistSettings the first time you visit the page
See also
| Questa estensione viene utilizzata su uno o più progetti Wikimedia. Ciò probabilmente significa che l'estensione è stabile e funziona abbastanza bene da essere utilizzata da siti Web ad alto traffico. Cerca il nome di questa estensione nei file di configurazione CommonSettings.php e InitialiseSettings.php di Wikimedia per vedere dove è installato. Un elenco completo delle estensioni installate su un particolare wiki può essere visto sulla pagina Special:Version del wiki. |
| This extension is included in the following wiki farms/hosts and/or packages: |
- Unmaintained extensions/it
- Special page extensions/it
- ApiOptions extensions/it
- GetPreferences extensions/it
- LoginFormValidErrorMessages extensions/it
- ResourceLoaderRegisterModules extensions/it
- SidebarBeforeOutput extensions/it
- GPL licensed extensions/it
- Extensions in Wikimedia version control/it
- All extensions/it
- Extensions used on Wikimedia/it
- Extensions included in Miraheze/it
- Watchlist/it
