[MediaWiki-commits] [Gerrit] CountThings: Improved tag documentation - change (mediawiki...BlueSpiceExtensions)

2016-05-30 Thread Pwirth (Code Review)
Pwirth has submitted this change and it was merged.

Change subject: CountThings: Improved tag documentation
..


CountThings: Improved tag documentation

New tag description. Thanks to Sabine Gürtler and Anja Ebersbach.

Change-Id: I214363ecd6df0a1bd500f07ecf1f9d2487128541
---
M CountThings/CountThings.class.php
M CountThings/i18n/en.json
M CountThings/i18n/qqq.json
3 files changed, 23 insertions(+), 6 deletions(-)

Approvals:
  Pwirth: Looks good to me, approved
  Raimond Spekking: Looks good to me, but someone else must approve
  jenkins-bot: Verified



diff --git a/CountThings/CountThings.class.php 
b/CountThings/CountThings.class.php
index 71f5510..f7a9073 100644
--- a/CountThings/CountThings.class.php
+++ b/CountThings/CountThings.class.php
@@ -125,6 +125,7 @@
'name' => 'countarticles',
'desc' => wfMessage( 
'bs-countthings-tag-countarticles-desc' )->escaped(),
'code' => '',
+   'helplink' => 
'https://help.bluespice.com/index.php/Count_Things'
);
 
$oResponse->result[] = array(
@@ -133,6 +134,7 @@
'name' => 'countusers',
'desc' => wfMessage( 
'bs-countthings-tag-countusers-desc' )->escaped(),
'code' => '',
+   'helplink' => 
'https://help.bluespice.com/index.php/Count_Things'
);
 
$oResponse->result[] = array(
@@ -140,7 +142,18 @@
'type' => 'tag',
'name' => 'countcharacters',
'desc' => wfMessage( 
'bs-countthings-tag-countcharacters-desc' )->escaped(),
-   'code' => 'Article One,Article 
Two,Article Three',
+   'code' => 
'ARTICLENAME',
+   'examples' => array(
+   array(
+   'label' => wfMessage( 
'bs-countthings-tag-countcharacters-example-1' )->escaped(),
+   'code' => 'ARTICLENAME'
+   ),
+   array(
+   'label' => wfMessage( 
'bs-countthings-tag-countcharacters-example-2' )->escaped(),
+   'code' => 'ARTICLENAME'
+   ),
+   ),
+   'helplink' => 
'https://help.bluespice.com/index.php/Count_Things'
);
 
return true;
diff --git a/CountThings/i18n/en.json b/CountThings/i18n/en.json
index 6c0d2c0..977b987 100644
--- a/CountThings/i18n/en.json
+++ b/CountThings/i18n/en.json
@@ -11,8 +11,10 @@
"bs-countthings-error-no-input": "No page provided.",
"bs-countthings-error-invalid-mode": "The mode \"$1\" is invalid. 
Please use \"chars\", \"words\", or \"pages\".",
"bs-countthings-error-not-exist": "The page \"$1\" does not exist.",
-   "bs-countthings-tag-countarticles-desc": "Displays the number of 
pages.",
-   "bs-countthings-tag-countusers-desc": "Displays the number of users.",
-   "bs-countthings-tag-countcharacters-desc": "Displays statistics of the 
given page content. Available configuration attribute:",
-   "bs-countthings-tag-countcharacters-desc-param-mode": 
"mode: What should be counted chars (characters), 
words (words) or pages (pages)."
+   "bs-countthings-tag-countarticles-desc": "Displays the number of 
articles in the wiki.",
+   "bs-countthings-tag-countusers-desc": "Shows the number of registered 
users.",
+   "bs-countthings-tag-countcharacters-desc": "Generates metadata on the 
content of the indicated article. The output is an infobox that can be 
integrated into an article. With the parameter \"mode\" different kind of 
information can be displayed.",
+   "bs-countthings-tag-countcharacters-desc-param-mode": 
"mode: What should be counted chars (characters), 
words (words) or pages (pages).",
+   "bs-countthings-tag-countcharacters-example-1": "Number of words",
+   "bs-countthings-tag-countcharacters-example-2": "Number of characters"
 }
diff --git a/CountThings/i18n/qqq.json b/CountThings/i18n/qqq.json
index 03e2aff..9362cd9 100644
--- a/CountThings/i18n/qqq.json
+++ b/CountThings/i18n/qqq.json
@@ -16,5 +16,7 @@
"bs-countthings-tag-countarticles-desc": "Used in InsertMagic 
extension, tag description for displays the number of 
pages.\n{{Related|Bs-tag-desc}}",
"bs-countthings-tag-countusers-desc": "Used in InsertMagic extension, 
tag description for displays the number of users.\n{{Related|Bs-tag-desc}}",
"bs-countthings-tag-countcharacters-desc": "Used in InsertMagic 
extension, tag description for displays statistics of the given page content. 
Available configuration attribute:\n{{Related|Bs-tag-desc}}",
-   

[MediaWiki-commits] [Gerrit] CountThings: Improved tag documentation - change (mediawiki...BlueSpiceExtensions)

2016-05-28 Thread Mglaser (Code Review)
Mglaser has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/291570

Change subject: CountThings: Improved tag documentation
..

CountThings: Improved tag documentation

New tag description. Thanks to Sabine Gürtler and Anja Ebersbach.

Change-Id: I214363ecd6df0a1bd500f07ecf1f9d2487128541
---
M CountThings/CountThings.class.php
M CountThings/i18n/en.json
M CountThings/i18n/qqq.json
3 files changed, 23 insertions(+), 6 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/70/291570/1

diff --git a/CountThings/CountThings.class.php 
b/CountThings/CountThings.class.php
index 71f5510..f7a9073 100644
--- a/CountThings/CountThings.class.php
+++ b/CountThings/CountThings.class.php
@@ -125,6 +125,7 @@
'name' => 'countarticles',
'desc' => wfMessage( 
'bs-countthings-tag-countarticles-desc' )->escaped(),
'code' => '',
+   'helplink' => 
'https://help.bluespice.com/index.php/Count_Things'
);
 
$oResponse->result[] = array(
@@ -133,6 +134,7 @@
'name' => 'countusers',
'desc' => wfMessage( 
'bs-countthings-tag-countusers-desc' )->escaped(),
'code' => '',
+   'helplink' => 
'https://help.bluespice.com/index.php/Count_Things'
);
 
$oResponse->result[] = array(
@@ -140,7 +142,18 @@
'type' => 'tag',
'name' => 'countcharacters',
'desc' => wfMessage( 
'bs-countthings-tag-countcharacters-desc' )->escaped(),
-   'code' => 'Article One,Article 
Two,Article Three',
+   'code' => 
'ARTICLENAME',
+   'examples' => array(
+   array(
+   'label' => wfMessage( 
'bs-countthings-tag-countcharacters-example-1' )->escaped(),
+   'code' => 'ARTICLENAME'
+   ),
+   array(
+   'label' => wfMessage( 
'bs-countthings-tag-countcharacters-example-2' )->escaped(),
+   'code' => 'ARTICLENAME'
+   ),
+   ),
+   'helplink' => 
'https://help.bluespice.com/index.php/Count_Things'
);
 
return true;
diff --git a/CountThings/i18n/en.json b/CountThings/i18n/en.json
index 6c0d2c0..977b987 100644
--- a/CountThings/i18n/en.json
+++ b/CountThings/i18n/en.json
@@ -11,8 +11,10 @@
"bs-countthings-error-no-input": "No page provided.",
"bs-countthings-error-invalid-mode": "The mode \"$1\" is invalid. 
Please use \"chars\", \"words\", or \"pages\".",
"bs-countthings-error-not-exist": "The page \"$1\" does not exist.",
-   "bs-countthings-tag-countarticles-desc": "Displays the number of 
pages.",
-   "bs-countthings-tag-countusers-desc": "Displays the number of users.",
-   "bs-countthings-tag-countcharacters-desc": "Displays statistics of the 
given page content. Available configuration attribute:",
-   "bs-countthings-tag-countcharacters-desc-param-mode": 
"mode: What should be counted chars (characters), 
words (words) or pages (pages)."
+   "bs-countthings-tag-countarticles-desc": "Displays the number of 
articles in the wiki.",
+   "bs-countthings-tag-countusers-desc": "Shows the number of registered 
users.",
+   "bs-countthings-tag-countcharacters-desc": "Generates metadata on the 
content of the indicated article. The output is an infobox that can be 
integrated into an article. With the parameter \"mode\" different kind of 
information can be displayed.",
+   "bs-countthings-tag-countcharacters-desc-param-mode": 
"mode: What should be counted chars (characters), 
words (words) or pages (pages).",
+   "bs-countthings-tag-countcharacters-example-1": "Number of words",
+   "bs-countthings-tag-countcharacters-example-2": "Number of characters"
 }
diff --git a/CountThings/i18n/qqq.json b/CountThings/i18n/qqq.json
index 03e2aff..9362cd9 100644
--- a/CountThings/i18n/qqq.json
+++ b/CountThings/i18n/qqq.json
@@ -16,5 +16,7 @@
"bs-countthings-tag-countarticles-desc": "Used in InsertMagic 
extension, tag description for displays the number of 
pages.\n{{Related|Bs-tag-desc}}",
"bs-countthings-tag-countusers-desc": "Used in InsertMagic extension, 
tag description for displays the number of users.\n{{Related|Bs-tag-desc}}",
"bs-countthings-tag-countcharacters-desc": "Used in InsertMagic 
extension, tag description for displays statistics of the given page content. 
Available configuration attribute:\n{{Related|Bs-tag-desc}}",
-