14,091
edits
m (1 revision) |
(clean up) |
||
Line 19: | Line 19: | ||
} | } | ||
Twinkle.addPortletLink( Twinkle.prod.callback, "PROD", "tw-prod", "Propose deletion via | Twinkle.addPortletLink( Twinkle.prod.callback, "PROD", "tw-prod", "Propose deletion via SV:PROD" ); | ||
}; | }; | ||
Line 28: | Line 28: | ||
Window.setTitle( "Proposed deletion (PROD)" ); | Window.setTitle( "Proposed deletion (PROD)" ); | ||
Window.setScriptName( "Twinkle" ); | Window.setScriptName( "Twinkle" ); | ||
Window.addFooterLink( "Proposed deletion policy", " | Window.addFooterLink( "Proposed deletion policy", "SV:PROD" ); | ||
Window.addFooterLink( "BLP PROD policy", " | Window.addFooterLink( "BLP PROD policy", "SV:BLPPROD" ); | ||
Window.addFooterLink( "Twinkle help", " | Window.addFooterLink( "Twinkle help", "SV:TW/DOC#prod" ); | ||
var form = new Morebits.quickForm( Twinkle.prod.callback.evaluate ); | var form = new Morebits.quickForm( Twinkle.prod.callback.evaluate ); | ||
Line 47: | Line 47: | ||
value: 'prod', | value: 'prod', | ||
checked: true, | checked: true, | ||
tooltip: 'Normal proposed deletion, per [[ | tooltip: 'Normal proposed deletion, per [[SV:PROD]]' | ||
}, | }, | ||
{ | { | ||
label: 'BLP PROD (proposed deletion of unsourced BLPs)', | label: 'BLP PROD (proposed deletion of unsourced BLPs)', | ||
value: 'prodblp', | value: 'prodblp', | ||
tooltip: 'Proposed deletion of new, completely unsourced biographies of living persons, per [[ | tooltip: 'Proposed deletion of new, completely unsourced biographies of living persons, per [[SV:BLPPROD]]' | ||
} | } | ||
] | ] | ||
Line 183: | Line 183: | ||
} | } | ||
summaryText = "Proposing article for deletion per [[ | summaryText = "Proposing article for deletion per [[SV:" + (params.blp ? "BLP" : "") + "PROD]]."; | ||
text = "{{subst:prod" + (params.blp ? " blp" : ("|1=" + Morebits.string.formatReasonText(params.reason))) + "}}\n" + text; | text = "{{subst:prod" + (params.blp ? " blp" : ("|1=" + Morebits.string.formatReasonText(params.reason))) + "}}\n" + text; | ||
} | } | ||
Line 201: | Line 201: | ||
} | } | ||
summaryText = "Endorsing proposed deletion per [[ | summaryText = "Endorsing proposed deletion per [[SV:" + (params.blp ? "BLP" : "") + "PROD]]."; | ||
text = text.replace( prod_re, text.match( prod_re ) + "\n{{prod-2|1=" + (params.blp ? | text = text.replace( prod_re, text.match( prod_re ) + "\n{{prod-2|1=" + (params.blp ? | ||
"article is a [[ | "article is a [[SV:BLPPROD|biography of a living person with no sources]]" : | ||
Morebits.string.formatReasonText(params.reason)) + "}}\n" ); | Morebits.string.formatReasonText(params.reason)) + "}}\n" ); | ||
Line 257: | Line 257: | ||
if (!pageobj.exists()) { | if (!pageobj.exists()) { | ||
text = | text = | ||
"This is a log of all [[ | "This is a log of all [[SV:PROD|proposed deletion]] tags applied or endorsed by this user using [[SV:TW|Twinkle]]'s PROD module.\n\n" + | ||
"If you no longer wish to keep this log, you can turn it off using the [[Wikipedia:Twinkle/Preferences|preferences panel]], and " + | "If you no longer wish to keep this log, you can turn it off using the [[Wikipedia:Twinkle/Preferences|preferences panel]], and " + | ||
"nominate this page for speedy deletion under [[ | "nominate this page for speedy deletion under [[SV:CSD#U1|CSD U1]].\n"; | ||
} | } | ||