Extension:PageViewInfo/fr

From Linux Web Expert

Manuel des extensions MediaWiki
PageViewInfo
État de la version : stable
File:PageViewInfo Extension screenshot.png
Implémentation MyWiki
Description Provides fancy looking graphs of Wikimedia page view data
Auteur(s) Kunal Mehta (Legoktmtalk)
Politique de compatibilité Versions ponctuelles alignées avec MediaWiki. Le master n'est pas compatible arrière.
MediaWiki 1.29+
PHP 5.5+
Modifie la base
de données
Non
Licence Aucune licence spécifiée
Téléchargement
MediaWiki\Extensions\PageViewInfo\PageViewService
Téléchargements trimestriels Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Utilisé par les wikis publics Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Traduire l’extension PageViewInfo sur translatewiki.net si elle y est disponible
Rôle Vagrant pageviewinfo
Problèmes Tâches ouvertes · Signaler un bogue

L'extension PageViewInfo fournit des modules API pour accéder aux données relatives aux pages vues et ajoute des graphiques d'apparence sophistiquée à l'interface "Informations sur la page".

Elle ne collecte pas les données, ni ne les stocke ; elle s'appuie sur la classe PageViewService qui doit être implémentée dans chaque backend de collecte des données.

Installation

  • Nécessite l'extension de Graph si vous voulez voir les graphiques sophistiqués
  • <translate> [[<tvar name=2>Special:ExtensionDistributor/PageViewInfo/fr</tvar>|Download]] and move the extracted <tvar name=name>PageViewInfo/fr</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageViewInfo%2Ffr
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'PageViewInfo/fr' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>


<translate> Vagrant installation:</translate>

  • <translate> If using <tvar name=vagrant>Vagrant </tvar>, install with <tvar name=code>vagrant roles enable pageviewinfo --provision</tvar></translate>

Développement local

For local development, you can point the extension at Wikimedia production using the following additions to LocalSettings.php:

$wgPageViewInfoWikimediaDomain = "en.wikipedia.org";

When enabled, visiting MediaWiki?action=info on your local development server will show page views for the MediaWiki article on English Wikipedia rather than on your local site.

When the Graph extension is enabled, clicking the number of page views will open an overlay displaying a graph of page views.

API

Module "query+pageviews" not found. Module "query+siteviews" not found. Module "query+mostviewed" not found.

Intégration communautaire

Currently, PageViewService class is only implemented for the Wikimedia Pageview API in this extension. You must install an additional, community-maintained extension to use other data collection backend.

Si vous avez implémenté votre propre PageViewService, veuillez l'indiquer ici.

Voir aussi