Mglaser has uploaded a new change for review.
https://gerrit.wikimedia.org/r/291574
Change subject: Smartlist: Improved tag documentation
......................................................................
Smartlist: Improved tag documentation
New tag description. Thanks to Sabine Gürtler and Anja Ebersbach.
Change-Id: I7452ec52a6248ca803a7a41c0698d415d583c728
---
M SmartList/SmartList.class.php
M SmartList/i18n/en.json
M SmartList/i18n/qqq.json
3 files changed, 29 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions
refs/changes/74/291574/1
diff --git a/SmartList/SmartList.class.php b/SmartList/SmartList.class.php
index 221bf60..6ff85ee 100644
--- a/SmartList/SmartList.class.php
+++ b/SmartList/SmartList.class.php
@@ -520,6 +520,17 @@
'name' => 'smartlist',
'desc' => wfMessage( 'bs-smartlist-tag-smartlist-desc'
)->plain(),
'code' => '<bs:smartlist />',
+ 'examples' => array(
+ array(
+ 'label' => wfMessage(
'bs-smartlist-tag-smartlist-example-rc' )->plain(),
+ 'code' => '<bs:smartlist new="true"
count="7" ns="104" trim="false" />'
+ ),
+ array(
+ 'label' => wfMessage(
'bs-smartlist-tag-smartlist-example-whatlinkshere' )->plain(),
+ 'code' => '<bs:smartlist
mode="whatlinkshere" traget="ARTICLENAME" />'
+ )
+ ),
+ 'helplink' =>
'https://help.bluespice.com/index.php/SmartList'
);
$oResponse->result[] = array(
@@ -528,6 +539,12 @@
'name' => 'newbies',
'desc' => wfMessage( 'bs-smartlist-tag-newbies-desc'
)->plain(),
'code' => '<bs:newbies />',
+ 'examples' => array(
+ array(
+ 'code' => '<bs:newbies count="3" />'
+ )
+ ),
+ 'helplink' =>
'https://help.bluespice.com/index.php/SmartList'
);
$oResponse->result[] = array(
@@ -536,6 +553,12 @@
'name' => 'toplist',
'desc' => wfMessage( 'bs-smartlist-tag-toplist-desc'
)->plain(),
'code' => '<bs:toplist />',
+ 'examples' => array(
+ array(
+ 'code' => '<bs:toplist count="4"
cat="Wiki" period="month" />'
+ )
+ ),
+ 'helplink' =>
'https://help.bluespice.com/index.php/SmartList'
);
return true;
diff --git a/SmartList/i18n/en.json b/SmartList/i18n/en.json
index f16df1a..1fe52fd 100644
--- a/SmartList/i18n/en.json
+++ b/SmartList/i18n/en.json
@@ -32,8 +32,10 @@
"bs-smartlist-time": "Time",
"bs-smartlist-title": "Title",
"bs-smartlist-tag-smartlist-desc": "Displays configurable information
about recent changes.",
- "bs-smartlist-tag-newbies-desc": "Displays the latest users.",
- "bs-smartlist-tag-toplist-desc": "Displays a list of the most viewed
pages.",
+ "bs-smartlist-tag-smartlist-example-rc": "Mode: Recent changes",
+ "bs-smartlist-tag-smartlist-example-whatlinkshere": "Mode: What links
here",
+ "bs-smartlist-tag-newbies-desc": "Shows the new users of the wiki. The
list can be restricted to a certain number.",
+ "bs-smartlist-tag-toplist-desc": "Shows the most visited pages. Can be
limited by several parameters.",
"bs-smartlist-mostvisitedpages": "Most viewed pages",
"bs-smartlist-mosteditedpages": "Most edited pages",
"bs-smartlist-mostactiveusers": "Most active users (by edits)",
diff --git a/SmartList/i18n/qqq.json b/SmartList/i18n/qqq.json
index 7010506..f023e7b 100644
--- a/SmartList/i18n/qqq.json
+++ b/SmartList/i18n/qqq.json
@@ -36,6 +36,8 @@
"bs-smartlist-time": "Option in
[{{canonicalurl:Special:WikiAdmin|mode=Preferences}}
Special:WikiAdmin?mode=Preferences], label for time\n{{Identical|Time}}",
"bs-smartlist-title": "Option in
[{{canonicalurl:Special:WikiAdmin|mode=Preferences}}
Special:WikiAdmin?mode=Preferences], label for title\n{{Identical|Title}}",
"bs-smartlist-tag-smartlist-desc": "Used in InsertMagic extension, tag
description for displays configurable information about recent
changes.\n{{Related|Bs-tag-desc}}",
+ "bs-smartlist-tag-smartlist-example-rc": "Description of example for
mode \"recent changes\". Used in InsertMagic tag description.",
+ "bs-smartlist-tag-smartlist-example-whatlinkshere": "Description of
example for mode \"whatlinkshere\". Used in InsertMagic tag description.",
"bs-smartlist-tag-newbies-desc": "Used in InsertMagic extension, tag
description for displays the latest users.\n{{Related|Bs-tag-desc}}",
"bs-smartlist-tag-toplist-desc": "Used in InsertMagic extension, tag
description for displays a list of the most viewed
pages.\n{{Related|Bs-tag-desc}}",
"bs-smartlist-mostvisitedpages": "Used in [[Special:AdminDashboard]]
and [[Special:UserDashboard]], headline for most viewed pages\n\nSee
also\n*{{msg-mw|statistics-mostpopular}}",
--
To view, visit https://gerrit.wikimedia.org/r/291574
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7452ec52a6248ca803a7a41c0698d415d583c728
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