Change feedback link for new topic tool

Bug: T279400
Change-Id: I5d72552f45a63199c0fbb516dc94aef19945c95e
This commit is contained in:
Ed Sanders 2021-05-24 14:36:43 +01:00 committed by Esanders
parent 5cbfecf084
commit 2b3345af11
4 changed files with 6 additions and 1 deletions

View file

@ -43,6 +43,7 @@
"discussiontools-defaultsummary-reply",
"newsectionsummary",
"discussiontools-replywidget-feedback-link",
"discussiontools-replywidget-feedback-link-newtopic",
"discussiontools-replywidget-mention-prefix",
"discussiontools-signature-prefix"
]

View file

@ -47,6 +47,7 @@
"discussiontools-replywidget-cancel": "Cancel",
"discussiontools-replywidget-feedback": "Share feedback about this feature",
"discussiontools-replywidget-feedback-link": "https://www.mediawiki.org/wiki/Talk:Talk_pages_project/Replying",
"discussiontools-replywidget-feedback-link-newtopic": "https://www.mediawiki.org/wiki/Talk:Talk_pages_project/New_discussion",
"discussiontools-replywidget-loading": "Loading…",
"discussiontools-replywidget-mention-prefix": "@",
"discussiontools-replywidget-mention-tool-header": "Find user: $1",

View file

@ -56,6 +56,7 @@
"discussiontools-replywidget-cancel": "Label for the cancel button to exit out of the widget",
"discussiontools-replywidget-feedback": "Label for link to share feedback about the reply widget",
"discussiontools-replywidget-feedback-link": "{{optional|Link to a page where users can share feedback about the reply widget. Defaults to a page on MediaWiki.org.}}",
"discussiontools-replywidget-feedback-link-newtopic": "{{optional|Link to a page where users can share feedback about the new topic widget. Defaults to a page on MediaWiki.org.}}",
"discussiontools-replywidget-loading": "Message shown while the reply widget is loading",
"discussiontools-replywidget-mention-prefix": "{{optional|Character to prefix mentions. This does not have to be the same as the trigger character, which is always '@'.}}",
"discussiontools-replywidget-mention-tool-header": "Header of search results when searching for a user to mention.\n\nParameters:\n* $1 search query for the username. Note that this is not a full username, and '''can't''' be used with <code><nowiki>{{GENDER:}}</nowiki></code>.",

View file

@ -161,7 +161,9 @@ function ReplyWidget( commentController, comment, pageName, oldId, config ) {
$( '<p>' ).append(
$( '<a>' )
.attr( {
href: mw.msg( 'discussiontools-replywidget-feedback-link' ),
href: this.isNewTopic ?
mw.msg( 'discussiontools-replywidget-feedback-link-newtopic' ) :
mw.msg( 'discussiontools-replywidget-feedback-link' ),
target: '_blank',
rel: 'noopener'
} )