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' => '<bs:countarticles />',
+                       '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' => '<bs:countusers />',
+                       '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' => '<bs:countcharacters>Article One,Article 
Two,Article Three</bs:countcharacters>',
+                       'code' => 
'<bs:countcharacters>ARTICLENAME</bs:countcharacters>',
+                       'examples' => array(
+                               array(
+                                       'label' => wfMessage( 
'bs-countthings-tag-countcharacters-example-1' )->escaped(),
+                                       'code' => '<bs:countcharacters 
mode="words">ARTICLENAME</bs:countcharacters>'
+                               ),
+                               array(
+                                       'label' => wfMessage( 
'bs-countthings-tag-countcharacters-example-2' )->escaped(),
+                                       'code' => '<bs:countcharacters 
mode="chars">ARTICLENAME</bs:countcharacters>'
+                               ),
+                       ),
+                       '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": 
"<code>mode</code>: What should be counted <code>chars</code> (characters), 
<code>words</code> (words) or <code>pages</code> (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": 
"<code>mode</code>: What should be counted <code>chars</code> (characters), 
<code>words</code> (words) or <code>pages</code> (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}}",
-       "bs-countthings-tag-countcharacters-desc-param-mode": "Text for 
<code>mode</code>: What of the given page content should be counted 
<code>chars</code> (characters), <code>words</code> (words) or 
<code>pages</code> (pages)."
+       "bs-countthings-tag-countcharacters-desc-param-mode": "Text for 
<code>mode</code>: What of the given page content should be counted 
<code>chars</code> (characters), <code>words</code> (words) or 
<code>pages</code> (pages).",
+       "bs-countthings-tag-countcharacters-example-1": "Description of example 
1. Used in InsertMagic tag description.",
+       "bs-countthings-tag-countcharacters-example-2": "Description of example 
2. Used in InsertMagic tag description."
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/291570
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I214363ecd6df0a1bd500f07ecf1f9d2487128541
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Mglaser <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to