diff --git a/extension.json b/extension.json index c57d089..e9af134 100644 --- a/extension.json +++ b/extension.json @@ -22,6 +22,10 @@ "AutoloadNamespaces": { "TabberNeue\\": "includes/" }, + "TrackingCategories": [ + "tabberneue-tabber-category", + "tabberneue-tabbertransclude-category" + ], "ResourceModules": { "ext.tabberNeue": { "packageFiles": [ diff --git a/i18n/en.json b/i18n/en.json index b914247..e975e78 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -7,6 +7,8 @@ ] }, "tabberneue-desc": "Allows to create tabs within a page. Forked from [https://www.mediawiki.org/wiki/Extension:Tabber Extension:Tabber].", + "tabberneue-tabber-category": "Pages using Tabber parser tag", + "tabberneue-tabbertransclude-category": "Pages using TabberTransclude parser tag", "tabberneue-visualeditor-mwtabberdialog-title": "Tabber", "tabberneue-visualeditor-mwtabberdialog-desc": "See the [https://www.mediawiki.org/wiki/Extension:TabberNeue#Simple_tabbers documentation] for usage.", "tabberneue-visualeditor-mwtabbertranscludeinspector-title": "Tabber (transclusion)", diff --git a/i18n/qqq.json b/i18n/qqq.json index 03e048e..d488c6c 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -5,6 +5,8 @@ ] }, "tabberneue-desc": "{{desc|name=TabberNeue|url=http://www.mediawiki.org/wiki/Extension:TabberNeue}}", + "tabberneue-tabber-category": "{{tracking category name}}\nTracking category for pages with tabber parser tag.", + "tabberneue-tabbertransclude-category": "{{tracking category name}}\nTracking category for pages with tabbertransclude parser tag.", "tabberneue-visualeditor-mwtabberdialog-title": "Title for the dialog to edit Tabber blocks.", "tabberneue-visualeditor-mwtabberdialog-desc": "Description for the dialog to edit Tabber blocks.", "tabberneue-visualeditor-mwtabbertranscludeinspector-title": "Title for the popup to edit Tabber blocks.", diff --git a/includes/Tabber.php b/includes/Tabber.php index a288a3d..77c56ba 100644 --- a/includes/Tabber.php +++ b/includes/Tabber.php @@ -35,6 +35,7 @@ class Tabber { return; } $parser->getOutput()->addModules( [ 'ext.tabberNeue' ] ); + $parser->addTrackingCategory( 'tabberneue-tabber-category' ); return $html; } diff --git a/includes/TabberTransclude.php b/includes/TabberTransclude.php index ec91485..8452d2e 100644 --- a/includes/TabberTransclude.php +++ b/includes/TabberTransclude.php @@ -38,6 +38,7 @@ class TabberTransclude { return; } $parser->getOutput()->addModules( [ 'ext.tabberNeue' ] ); + $parser->addTrackingCategory( 'tabberneue-tabbertransclude-category' ); return $html; }