Bene has uploaded a new change for review.

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

Change subject: Link to Special:ListProperties on Special:ListDatatypes
......................................................................

Link to Special:ListProperties on Special:ListDatatypes

Bug: T55618
Change-Id: If2aa674fc7cf9724665e134eba7c6435dc24e0d0
---
M repo/i18n/en.json
M repo/includes/specials/SpecialListDatatypes.php
2 files changed, 11 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/28/203528/1

diff --git a/repo/i18n/en.json b/repo/i18n/en.json
index 461f15a..ed74c34 100644
--- a/repo/i18n/en.json
+++ b/repo/i18n/en.json
@@ -243,6 +243,7 @@
        "wikibase-dispatchstats-average": "Average",
        "special-listdatatypes": "List of all data types available",
        "wikibase-listdatatypes-intro": "This is a list of all data types 
available on this installation:",
+       "wikibase-listdatatypes-listproperties": "List of properties with this 
data type",
        "wikibase-history-title-with-label": "Revision history of \"$2\" ($1)",
        "wikibase-history-title-without-label": "Revision history of ($1)",
        "special-listproperties": "List of properties by data type",
diff --git a/repo/includes/specials/SpecialListDatatypes.php 
b/repo/includes/specials/SpecialListDatatypes.php
index 4897d0b..32f03a6 100644
--- a/repo/includes/specials/SpecialListDatatypes.php
+++ b/repo/includes/specials/SpecialListDatatypes.php
@@ -3,6 +3,8 @@
 namespace Wikibase\Repo\Specials;
 
 use Html;
+use Linker;
+use Title;
 use Wikibase\Repo\WikibaseRepo;
 
 /**
@@ -71,8 +73,14 @@
                return Html::rawElement(
                        'dt',
                        array(),
-                       $this->msg( $baseKey . '-head' )->parse() )
-                               . Html::rawElement( 'dd', array(), $this->msg( 
$baseKey . '-body' )->parse()
+                       $this->msg( $baseKey . '-head' )->parse()
+               )
+               . Html::rawElement( 'dd', array(),
+                       $this->msg( $baseKey . '-body' )->parse()
+                       . Html::rawElement( 'p', array(),
+                               Linker::linkKnown( Title::newFromText( 
'Special:ListProperties/' . $dataTypeId ),
+                                       $this->msg( 
'wikibase-listdatatypes-listproperties' )->parse() )
+                       )
                );
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If2aa674fc7cf9724665e134eba7c6435dc24e0d0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Bene <benestar.wikime...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to