Brian Wolff has uploaded a new change for review. https://gerrit.wikimedia.org/r/297191
Change subject: Add a message to Special:GlobalUsage containing the file name ...................................................................... Add a message to Special:GlobalUsage containing the file name Request at commons to be able to link to external tools. Change-Id: I586ed784b35395db3cec633bfb61928e6b548b4d --- M SpecialGlobalUsage.php M i18n/en.json M i18n/qqq.json 3 files changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GlobalUsage refs/changes/91/297191/1 diff --git a/SpecialGlobalUsage.php b/SpecialGlobalUsage.php index d896bc3..75c0506 100644 --- a/SpecialGlobalUsage.php +++ b/SpecialGlobalUsage.php @@ -31,6 +31,9 @@ $this->setHeaders(); $this->getOutput()->addWikiMsg( 'globalusage-header' ); + if ( !is_null( $this->target ) ) { + $this->getOutput()->addWikiMsg( 'globalusage-header-image', $this->target->getText() ); + } $this->showForm(); if ( is_null( $this->target ) ) { diff --git a/i18n/en.json b/i18n/en.json index b735d47..3e8f8b4 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -24,5 +24,6 @@ "apihelp-query+globalusage-param-limit": "How many links to return.", "apihelp-query+globalusage-param-filterlocal": "Filter local usage of the file.", "apihelp-query+globalusage-example-1": "Get usage of [[:File:Example.jpg]]", - "globalusage-header": "This page shows where a file is used on other wikis. You can also find that information at the bottom of the file description page." + "globalusage-header": "This page shows where a file is used on other wikis. You can also find that information at the bottom of the file description page.", + "globalusage-header-image": "" } diff --git a/i18n/qqq.json b/i18n/qqq.json index c564e74..6df57b4 100644 --- a/i18n/qqq.json +++ b/i18n/qqq.json @@ -36,4 +36,5 @@ "apihelp-query+globalusage-param-filterlocal": "{{doc-apihelp-param|query+globalusage|filterlocal}}", "apihelp-query+globalusage-example-1": "{{doc-apihelp-example|query+globalusage}}", "globalusage-header": "Text message used in [[Special:GlobalUsage]] right above the form describing the purpose of special page." + "globalusage-header-image": "{{notranslate}}. Extra header for on-wiki customization. $1 - File being looked for." } -- To view, visit https://gerrit.wikimedia.org/r/297191 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I586ed784b35395db3cec633bfb61928e6b548b4d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GlobalUsage Gerrit-Branch: master Gerrit-Owner: Brian Wolff <bawolff...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits