Mglaser has uploaded a new change for review. https://gerrit.wikimedia.org/r/291598
Change subject: WantedArticle: Improved tag documentation ...................................................................... WantedArticle: Improved tag documentation New tag description. Thanks to Sabine Gürtler and Anja Ebersbach. Change-Id: I097946de4ee94a7be7068402219eb4bf8de650b7 --- M WantedArticle/WantedArticle.class.php M WantedArticle/i18n/en.json M WantedArticle/i18n/qqq.json 3 files changed, 8 insertions(+), 22 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions refs/changes/98/291598/1 diff --git a/WantedArticle/WantedArticle.class.php b/WantedArticle/WantedArticle.class.php index 6637b1c..2054029 100644 --- a/WantedArticle/WantedArticle.class.php +++ b/WantedArticle/WantedArticle.class.php @@ -342,22 +342,18 @@ public function onBSInsertMagicAjaxGetData( &$oResponse, $type ) { if ( $type != 'tags' ) return true; - $aParams = array( - wfMessage( 'bs-wantedarticle-tag-wantedarticle-desc-param-count' )->text(), - wfMessage( 'bs-wantedarticle-tag-wantedarticle-desc-param-title' )->text(), - wfMessage( 'bs-wantedarticle-tag-wantedarticle-desc-param-order' )->text(), - wfMessage( 'bs-wantedarticle-tag-wantedarticle-desc-param-sort' )->text(), - wfMessage( 'bs-wantedarticle-tag-wantedarticle-desc-param-type' )->text() - ); - $sDesc = wfMessage( 'bs-wantedarticle-tag-wantedarticle-desc' )->plain(). - '<br /><br />' . implode( '<br />', $aParams ); - $oResponse->result[] = array( 'id' => 'bs:wantedarticle', 'type' => 'tag', 'name' => 'wantedarticle', - 'desc' => $sDesc, + 'desc' => wfMessage( 'bs-wantedarticle-tag-wantedarticle-desc' )->plain(), 'code' => '<bs:wantedarticle />', + 'examples' => array( + array( + 'code' => '<bs:wantedarticle count="15" sort="time" title="Wanted articles" />' + ) + ), + 'helplink' => 'https://help.bluespice.com/index.php/WantedArticles' ); return true; diff --git a/WantedArticle/i18n/en.json b/WantedArticle/i18n/en.json index 2211943..2edbba0 100644 --- a/WantedArticle/i18n/en.json +++ b/WantedArticle/i18n/en.json @@ -17,12 +17,7 @@ "bs-wantedarticle-single-textfield-suggestbutton-text": "Suggest", "bs-wantedarticle-single-textfield-createbutton-text": "Create", "bs-wantedarticle-single-textfield-defaulttext": "Page title", - "bs-wantedarticle-tag-wantedarticle-desc": "Renders a list of wanted pages. Available configuration attributes:", - "bs-wantedarticle-tag-wantedarticle-desc-param-count": "<code>count</code>: Number of pages to display.", - "bs-wantedarticle-tag-wantedarticle-desc-param-title": "<code>title</code>: Headline.", - "bs-wantedarticle-tag-wantedarticle-desc-param-order": "<code>order</code>: Sort order <code>ASC</code> ({{int:bs-wantedarticle-pref-order-asc}}) or <code>DESC</code> ({{int:bs-wantedarticle-pref-order-desc}})", - "bs-wantedarticle-tag-wantedarticle-desc-param-sort": "<code>sort</code>: Sort by <code>title</code> or <code>time</code>.", - "bs-wantedarticle-tag-wantedarticle-desc-param-type": "<code>type</code>: Output format <code>list</code> or <code>quene</code> (comma separated).", + "bs-wantedarticle-tag-wantedarticle-desc": "Offers the function to simply suggest new articles and displays the suggested pages in a list. Various parameters configure this list.", "bs-wantedarticle-tag-more-linktext": "More ...", "bs-wantedarticle-tag-default-title": "Wanted pages", "bs-wantedarticle-pref-includelimit": "Number of suggestions:", diff --git a/WantedArticle/i18n/qqq.json b/WantedArticle/i18n/qqq.json index 609717e..9642ca4 100644 --- a/WantedArticle/i18n/qqq.json +++ b/WantedArticle/i18n/qqq.json @@ -25,11 +25,6 @@ "bs-wantedarticle-single-textfield-createbutton-text": "Button text for create\n{{Identical|Create}}", "bs-wantedarticle-single-textfield-defaulttext": "Default text in input field for page title\n{{Identical|Page title}}", "bs-wantedarticle-tag-wantedarticle-desc": "Text for renders a list of wanted pages. Available configuration attributes:\n{{Related|Bs-tag-desc}}", - "bs-wantedarticle-tag-wantedarticle-desc-param-count": "Text for <code>count</code>: Number of pages to display. \n \"count\" has to be lowercase", - "bs-wantedarticle-tag-wantedarticle-desc-param-title": "Text for <code>title</code>: Headline. \n \"title\" has to be lowercase", - "bs-wantedarticle-tag-wantedarticle-desc-param-order": "{{doc-important|<code>order</code> has to be lowercase.}}\nText for <code>order</code>: Sort order <code>ASC</code> or <code>DESC</code>\n\nRefers to:\n* {{msg-mw|Bs-wantedarticle-pref-order-asc}}\n* {{msg-mw|Bs-wantedarticle-pref-order-desc}}", - "bs-wantedarticle-tag-wantedarticle-desc-param-sort": "Text for <code>sort</code>: Sort by <code>title</code> or <code>time</code>. \n \"sort\" has to be lowercase", - "bs-wantedarticle-tag-wantedarticle-desc-param-type": "Text for <code>type</code>: Output format <code>list</code> or <code>quene</code> (comma separated). \n\n\"type\" has to be lowercase", "bs-wantedarticle-tag-more-linktext": "Text for more ...\n{{Identical|More}}", "bs-wantedarticle-tag-default-title": "Text for wanted pages.\n{{Identical|Wanted page}}", "bs-wantedarticle-pref-includelimit": "Option in [{{canonicalurl:Special:WikiAdmin|mode=Preferences}} Special:WikiAdmin?mode=Preferences], label for number of suggestions:", -- To view, visit https://gerrit.wikimedia.org/r/291598 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I097946de4ee94a7be7068402219eb4bf8de650b7 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions Gerrit-Branch: master Gerrit-Owner: Mglaser <gla...@hallowelt.biz> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits