01tonythomas has uploaded a new change for review.
https://gerrit.wikimedia.org/r/131700
Change subject: Move "Permanent link" out of the sidebar toolbox to (behind
"last modified" timestamp)
......................................................................
Move "Permanent link" out of the sidebar toolbox to (behind "last modified"
timestamp)
Better place where the permalink would fit in.
Bug: 64312
Change-Id: I92d612f1a094efd82952e5bc3c9ab4cd59b2ecd6
---
M includes/Skin.php
M languages/i18n/en.json
M languages/i18n/qqq.json
3 files changed, 16 insertions(+), 3 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/00/131700/1
diff --git a/includes/Skin.php b/includes/Skin.php
index 8300da7..f69d35e 100644
--- a/includes/Skin.php
+++ b/includes/Skin.php
@@ -899,7 +899,16 @@
if ( $timestamp ) {
$d = $this->getLanguage()->userDate( $timestamp,
$this->getUser() );
$t = $this->getLanguage()->userTime( $timestamp,
$this->getUser() );
- $s = ' ' . $this->msg( 'lastmodifiedat', $d, $t
)->text();
+
+ $s = ' ' . $this->msg( 'lastmodifiedat' )->text();
+ $dt = $this->msg( 'lastmodifdatetime', $d, $t );
+ $out = $this->getOutput();
+ if ( $out->isArticle() ) {
+ $revid = $this->getRevisionId();
+ $s .= $this->msg( 'lastmodifpermalink',
+ Linker::link( $this->getTitle(), $dt ,
array(), array( "oldid" => $revid ) )
+ )->text();
+ }
} else {
$s = '';
}
diff --git a/languages/i18n/en.json b/languages/i18n/en.json
index c1b4e4c..2441239 100644
--- a/languages/i18n/en.json
+++ b/languages/i18n/en.json
@@ -220,7 +220,9 @@
"redirectedfrom": "(Redirected from $1)",
"redirectpagesub": "Redirect page",
"talkpageheader": "-",
- "lastmodifiedat": "This page was last modified on $1, at $2.",
+ "lastmodifiedat": "This page was last modified on ",
+ "lastmodifdatetime": "$1, at $2.",
+ "lastmodifpermalink": "$1",
"viewcount": "This page has been accessed {{PLURAL:$1|once|$1 times}}.",
"protectedpage": "Protected page",
"jumpto": "Jump to:",
diff --git a/languages/i18n/qqq.json b/languages/i18n/qqq.json
index 03a52d2..540357f 100644
--- a/languages/i18n/qqq.json
+++ b/languages/i18n/qqq.json
@@ -382,7 +382,9 @@
"redirectedfrom": "The text displayed when a certain page is redirected
to another page. Parameters:\n* $1 - the name of the page user came from",
"redirectpagesub": "Displayed under the page title of a page which is a
redirect to another page, see [{{fullurl:Project:Translators|redirect=no}}
Project:Translators] for example.\n\n{{Identical|Redirect page}}",
"talkpageheader": "{{notranslate}}",
- "lastmodifiedat": "This message is shown below each page, in the footer
with the logos and links.\n\nParameters:\n* $1 - date\n* $2 - time\nSee
also:\n* {{msg-mw|Lastmodifiedatby}}",
+ "lastmodifiedat": "This message is shown below each page, in the footer
with the logos and links.",
+ "lastmodifdatetime" : "This mesasgae outputs the date and time for
lastmodifiedat message. \n\nParameters:\n* $1 - date\n* $2 - time\nSee also:\n*
{{msg-mw|Lastmodifiedatby}}",
+ "lastmodifpermalink" : "Outputs the permalink of the current revision
as link to the lastmodifdatetime message",
"viewcount": "Used as page-view counter. Parameters:\n* $1 - number of
pageviews",
"protectedpage": "This message is displayed when trying to edit a page
you can't edit because it has been protected.\n\nThis message is the title for
the message {{msg-mw|protectedpagetext}}.",
"jumpto": "\"Jump to\" navigation links. Hidden by default in monobook
skin. The format is: {{int:jumpto}}
[[MediaWiki:Jumptonavigation/{{SUBPAGENAME}}|{{int:jumptonavigation}}]],
[[MediaWiki:Jumptosearch/{{SUBPAGENAME}}|{{int:jumptosearch}}]].\n{{Identical|Jump
to}}",
--
To view, visit https://gerrit.wikimedia.org/r/131700
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I92d612f1a094efd82952e5bc3c9ab4cd59b2ecd6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits