From mediawiki.org
This page is a translated version of the page Extension:CountingMarker and the translation is 51% complete.
Outdated translations are marked like this.
Manuel des extensions MediaWiki
État de la version : stable
Implémentation Base de données , Extraction de données, Page spéciale
Description Ajoute des pages spéciales pour visualiser et attribuer les marqueurs de comptage
Auteur(s) WikiMANNia (WikiForMendiscussion)
Dernière version 0.6.0 (2023-11-08)
MediaWiki 1.35+ (REL1_35 branch, 7.3.19 ≤ PHP ≤ 8)

1.25-1.35 (REL1_25 branch, 5.6 ≤ PHP ≤ 7)

1.23-1.35 (REL1_23 branch, 5.6 ≤ PHP ≤ 7)
Modifie la base
de données
Tables countingmarker_author
Téléchargement Aucun lien
Exemple vgwort.wikimannia.org/Special:CountingMarker
  • $wmCountingMarkerStatus
  • $wmDefaultCountLimitVGWort1
  • $wmDefaultCountLimitVGWort2
  • $wmDefaultCountThreshold1
  • $wmDefaultCountThreshold2
  • $wmDefaultTextLengthVGWort1
  • $wmDefaultTextLengthVGWort2
  • $wmDefaultTextThreshold1
  • $wmDefaultTextThreshold2
  • $wmDefaultServerSubdomain
  • $wmCountingMarkerRemoveLinkMarks
  • $wmCountingMarkerRemoveRefs
  • $wmCountingMarkerRemoveSeeAlso
  • $wmCountingMarkerRemoveWeblinks
  • $wmCountingMarkerContactURL
  • $wmCountingMarkerVgwortURL
  • $wmVgwortServerSubdomains
  • $wmVgwortStatusCategories
  • $wmDefaultBatchSize
  • $wmExportPagelistLimit
countingmarker_admin, countingmarker_assign, countingmarker_import, countingmarker_report, countingmarker_save, countingmarker_statistic

L'extension CountingMarker offre une fonctionnalité permettant de monétiser un wiki avec la Verwertungs­gesellschaft Wort (société de gestion des droits d'auteur).


Anyone who is a member of the Verwertungs­gesellschaft Wort (Copyright collective) and operates a wiki faces several problems when they want to participate in the METIS programme, i.e. registering their online texts for monetization.

METIS stands for „Meldesystem für Texte auf Internet­seiten“ (“Reporting System for Texts on Internet Pages”). VG Wort requires a minimum length of the texts as well as a minimum number of article views (“hits”), which must be proven by the installation of “counting pixels” on the article page. For the installation of these pixels you can order “counting markers” from VG Wort, each of which consists of a set of public and private keys and a URL to a counting pixel on a VG Wort server.

A snippet of HTML code on how to include this counter in an HTML page is included. For web pages from the 1980s, which consisted of self-made HTML pages, it is a simple matter to insert this HTML code via copy and paste into the HTML code of the page. But how can these counters be integrated into modern content management systems, which in a very complex way assemble the pages finally delivered to the reader from database queries, templates and skins?

This task, as well as the administration of the counter marks, the assignment of the counter marks to the articles and the annual report to VG Wort are part of the functional scope of this enhancement.


  • Téléchargez et placez le(s) fichier(s) dans un répertoire appelé CountingMarker dans votre dossier extensions/.
  • Ajoutez le code suivant à la fin de votre fichier LocalSettings.php  :
    wfLoadExtension( 'CountingMarker' );
  • Exécutez le script de mise à jour qui va créer automatiquement les tables de base de données dont cette extension a besoin.
  • Yes Fait – Accédez à Special:Version sur votre wiki pour vérifier que l'extension a bien été installée.

Pour les utilisateurs de MediaWiki 1.24 ou précédents :

Les instructions ci-dessus décrivent la nouvelle procédure pour installer cette extension en utilisant wfLoadExtension(). Si vous avez besoin d'installer cette extension sur les précédentes versions de MediaWiki (1.24 ou antérieur), à la place de wfLoadExtension( 'CountingMarker' );, vous devez utiliser :

require_once "$IP/extensions/CountingMarker/CountingMarker.php";

Depuis MediaWiki 1.25, l'extension HitCounters/fr devrait être installé pour utiliser la gamme complète de fonctions. However, there is a basic version in which the HitCounters extension is not required.


The branches REL1_23 and REL1_25 were tested with MediaWiki versions: 1.23, 1.25, (1.27), 1.31, (1.33), 1.35.13

L'extension a été essayée avec MediaWiki $1. 1.35.13, (1.36), (1.37), (1.38), 1.39.5, 1.40.1


Cette extension est distribuée avec "de", "en", "es".

Functional scope of the versions
Function Basic version Single-author version Multi-author version
Upload counting markers from CSV file Yes Yes Yes
Manage counting markers and assign to articles Yes Yes Yes
Change assignment of counting markers Yes Yes Yes
Create annual report Yes Yes Yes
<novgwort> tags supported Yes Yes Yes
Test mode Yes Yes Yes
Statistical functions
(in connection with the extension “HitCounters”)
No Yes Yes
Save and archive count readings No Yes Yes
Extrapolate page views up to the end of the year No Yes Yes
Switch off the counting markers individually No Yes Yes
Block counting markers No Yes Yes
Author management (assign articles and counting markers to an author) No No Yes
Assign contribution type
(draft, article, poetry)
No No Yes

Historique des versions

Version 0.2.0
MediaWiki v1.23-1.33
Première diffusion publique
Version 0.2.3/0.3.3
Multi-author support added und user groups with individual rights defined.
Version 0.4.0
MediaWiki v1.35+
Adaptations regarding MediaWiki 1.37.
Added the ability for the author to select his articles in the statistics table.
Version 0.5.0
Add a ‎<novgwort> tag.
Version 0.5.1/0.5.2/0.5.3/0.5.4/0.5.5/0.5.6/0.5.7
See Change log
Version 0.5.8
Add hook GetPreferences , offering custom settings to the user.
Version 0.5.9
Changed the prefix of the configuration variables from default to wm.
Changed "configuration schema", replaced manifest version 1 with version 2. (REL1_35 branch only)
Replaced class “CountingMarkerHooks” (extends “Hooks”) with “HookHandler” with implementation of interfaces. (REL1_35 branch only)
Version 0.6.0
New database support for “sqlite”.


Autres problèmes

If you run a Manuel:Famille de wikis and manage the extensions centrally (via soft links), you have the problem that the Scripts de maintenance of this extension are not found. Currently, to solve this problem, these maintenance scripts can be copy & paste into the maintenance folders of the MediaWiki installations.

Compatibilité arrière

This branch (current version 0.6.0) is compatible up to MediaWiki 1.35.x with PHP versions 5.6-7.x.
Cette branche dans toutes ses versions est pleinement compatible arrière avec MediaWiki 1.24, et à l'exception d'une fonction d'aide, même compatible avec MediaWiki 1.23.
This branch (current version 0.6.0) is compatible up to MediaWiki 1.35.x with PHP versions 5.6-7.x.
Removed backward compatibility with versions prior to MediaWiki 1.25 is removed.
This branch (current version 0.6.0) is tested up to MediaWiki 1.40.x with PHP versions 7.3-8.x.
Removed backward compatibility with versions prior to MediaWiki 1.35.3 is removed.

Liens externes