Extension:WikimediaCampaignEvents/fr

Category:GPL licensed extensions/fr
Manuel des extensions MediaWiki
WikimediaCampaignEvents
État de la version : stableCategory:Stable extensions/fr
Implémentation Page spéciale Category:Special page extensions/fr
Description Fournit des fonctionnalités spécifiques à Wikimédia pour l'extension CampaignEvents .
Auteur(s) Connection Team
Politique de compatibilité Versions ponctuelles alignées avec MediaWiki. Le master n'est pas compatible arrière.
Modifie la base
de données
Oui
Licence Licence publique générale GNU v2.0 ou supérieur
Téléchargement Category:Extensions in Wikimedia version control/fr
  • $wgWikimediaCampaignEventsFluxxOauthUrl
  • $wgWikimediaCampaignEventsSparqlEndpoint
  • $wgWikimediaCampaignEventsFluxxClientSecret
  • $wgWikimediaCampaignEventsFluxxClientID
  • $wgWikimediaCampaignEventsFluxxBaseUrl
Traduire l’extension WikimediaCampaignEvents sur translatewiki.net si elle y est disponible
Problèmes Tâches ouvertes · Signaler un bogue
Category:All extensions/fr

Installation

  • Téléchargez et placez le(s) fichier(s) dans un répertoire appelé WikimediaCampaignEvents dans votre dossier extensions/.
    Les développeurs et les contributeurs au code doivent à la place installer l'extension à partir de Git en utilisant:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WikimediaCampaignEvents
    
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'WikimediaCampaignEvents' );
    
  • Exécutez le script de mise à jour qui va créer automatiquement les tables de base de données dont cette extension a besoin.
  • Ajoutez les informations d'identification pour l'API Fluxx à votre LocalSettings.php
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

Dépendances

Configuration

Nom du paramètre Valeur par défaut Description
$wgWikimediaCampaignEventsFluxxOauthUrl 'https://wmf.fluxx.io/oauth/token' Oauth URL for the Fluxx API.
$wgWikimediaCampaignEventsFluxxBaseUrl 'https://wmf.fluxx.io/api/rest/v2/' Base URL of the Fluxx API.
$wgWikimediaCampaignEventsFluxxClientID null Client ID to use for the Fluxx API.
$wgWikimediaCampaignEventsFluxxClientSecret null Client secret to use for the Fluxx API.
$wgWikimediaCampaignEventsSparqlEndpoint 'https://query-main.wikidata.org/sparql' The URL of the primary SPARQL endpoint.

API

Integration with the Wikidata Query Service

The extension integrates with the Wikidata Query Service to show a list of all WikiProjects on Special:AllEvents. This functionality is implemented via the WikiProjectIDLookup class, which is based on SparqlClient.

WikiProjects are stored in the main stash for up to one week. However, the list is regenerated as soon as the value is older than one hour. All the value regenerations happen in a deferred update that does not block the main request: the user might be served a stale value while the fresh list is regenerated asynchronously.

Note that, if nobody visits the Special:AllEvents page for a whole week, the list of WikiProjects would expire, and an error would be shown upon loading the page. A data update should be enqueued at the same time, so the data should become available again shortly afterwards.

See also

Category:Extensions used on Wikimedia/fr#WikimediaCampaignEvents/fr Category:Wiki-specific extensions/fr
Category:All extensions/fr Category:CampaignEventsGetAllEventsTabs extensions/fr Category:CampaignEventsGetEventDetails extensions/fr Category:CampaignEventsRegistrationFormLoad extensions/fr Category:CampaignEventsRegistrationFormSubmit extensions/fr Category:Extensions in Wikimedia version control/fr Category:Extensions used on Wikimedia/fr Category:GPL licensed extensions/fr Category:LoadExtensionSchemaUpdates extensions/fr Category:ParserFirstCallInit extensions/fr Category:Special page extensions/fr Category:Stable extensions/fr Category:Wiki-specific extensions/fr