Skip to content

Commit

Permalink
xfd, image: Add help=off to additional templates
Browse files Browse the repository at this point in the history
As requested at WT:TW.
  • Loading branch information
atlight committed Jun 13, 2017
1 parent 8948326 commit 3de53dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/twinkleimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ Twinkle.image.callbacks = {
default:
break; // doesn't matter
}
tag += "}}\n";
tag += "|help=off}}\n";

pageobj.setPageText(tag + text);
pageobj.setEditSummary("This file is up for deletion, per [[WP:CSD#" + params.normalized + "|CSD " + params.normalized + "]] (" + params.type + ")." + Twinkle.getPref('summaryAd'));
Expand Down
5 changes: 3 additions & 2 deletions modules/twinklexfd.js
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,8 @@ Twinkle.xfd.callbacks = {
var text = pageobj.getPageText();
var params = pageobj.getCallbackParameters();

pageobj.setPageText((params.noinclude ? "<noinclude>" : "") + "{{" + ((params.number === '') ? "mfd}}\n" : ('mfdx|' + params.number + "}}\n")) +
pageobj.setPageText((params.noinclude ? "<noinclude>" : "") + "{{" +
((params.number === '') ? "mfd" : ("mfdx|" + params.number)) + "|help=off}}\n" +
(params.noinclude ? "</noinclude>" : "") + text);
pageobj.setEditSummary("Nominated for deletion; see [[" + params.discussionpage + "]]." + Twinkle.getPref('summaryAd'));
switch (Twinkle.getPref('xfdWatchPage')) {
Expand Down Expand Up @@ -1064,7 +1065,7 @@ Twinkle.xfd.callbacks = {

text = text.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*\}\}/gi, "");

pageobj.setPageText("{{ffd|log=" + params.date + "}}\n" + text);
pageobj.setPageText("{{ffd|log=" + params.date + "|help=off}}\n" + text);
pageobj.setEditSummary("Listed for discussion at [[" + params.logpage + "#" + Morebits.pageNameNorm + "]]." + Twinkle.getPref('summaryAd'));
switch (Twinkle.getPref('xfdWatchPage')) {
case 'yes':
Expand Down

0 comments on commit 3de53dc

Please sign in to comment.