Skip to content

Commit

Permalink
hideReason=true for Uw-blar and Uw-articletodraft
Browse files Browse the repository at this point in the history
I just merged wikimedia-gadgets#1797, but I realized it needs `hideReason: true` because the {{{2}}} parameter is not a reason. This patch fixes that.

Related wikimedia-gadgets#1797
Related wikimedia-gadgets#1753
  • Loading branch information
NovemLinguae committed Aug 10, 2023
1 parent 19b092a commit b5b3bf9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions modules/twinklewarn.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ Twinkle.warn.callback = function twinklewarnCallback() {
// label (required): A short description displayed in the dialog
// summary (required): The edit summary used. If an article name is entered, the summary is postfixed with "on [[article]]", and it is always postfixed with "."
// suppressArticleInSummary (optional): Set to true to suppress showing the article name in the edit summary. Useful if the warning relates to attack pages, or some such.
// hideLinkedPage (optional): Set to true to hide the "Linked article" text box. Some warning templates do not have a linked article parameter.
// hideReason (optional): Set to true to hide the "Reason" text box. Some warning templates do not have a reason parameter.
// hideLinkedPage (optional): Set to true to hide the "Linked page" text box. Some warning templates do not have a linked article parameter.
// hideReason (optional): Set to true to hide the "Optional message" text box. Some warning templates do not have a reason parameter.
Twinkle.warn.messages = {
levels: {
'Common warnings': {
Expand Down Expand Up @@ -945,7 +945,8 @@ Twinkle.warn.messages = {
},
'uw-articletodraft': {
label: 'Article moved to draftspace',
summary: 'Notice: Article moved to draftspace'
summary: 'Notice: Article moved to draftspace',
hideReason: true
},
'uw-autobiography': {
label: 'Creating autobiographies',
Expand All @@ -966,7 +967,8 @@ Twinkle.warn.messages = {
},
'uw-blar': {
label: 'Article blanked and redirected',
summary: 'Notice: Article blanked and redirected'
summary: 'Notice: Article blanked and redirected',
hideReason: true
},
'uw-coi': {
label: 'Conflict of interest',
Expand Down

0 comments on commit b5b3bf9

Please sign in to comment.