MediaWiki:Gadget-twinkleprod.js: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (1 revision) |
imported>Mlpearc m (Text replace - "WP" to "EFD") |
||
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 EFD: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", "EFD:PROD" ); |
||
Window.addFooterLink( "BLP PROD policy", " |
Window.addFooterLink( "BLP PROD policy", "EFD:BLPPROD" ); |
||
Window.addFooterLink( "Twinkle help", " |
Window.addFooterLink( "Twinkle help", "EFD: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 [[EFD: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 [[EFD:BLPPROD]]' |
||
} |
} |
||
] |
] |
||
Line 185: | Line 185: | ||
} |
} |
||
summaryText = "Proposing article for deletion per [[ |
summaryText = "Proposing article for deletion per [[EFD:" + (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 203: | Line 203: | ||
} |
} |
||
summaryText = "Endorsing proposed deletion per [[ |
summaryText = "Endorsing proposed deletion per [[EFD:" + (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 [[EFD:BLPPROD|biography of a living person with no sources]]" : |
||
Morebits.string.formatReasonText(params.reason)) + "}}\n" ); |
Morebits.string.formatReasonText(params.reason)) + "}}\n" ); |
||
Line 250: | Line 250: | ||
if (!pageobj.exists()) { |
if (!pageobj.exists()) { |
||
text = |
text = |
||
"This is a log of all [[ |
"This is a log of all [[EFD:PROD|proposed deletion]] tags applied or endorsed by this user using [[EFD: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 [[EFD:CSD#U1|CSD U1]].\n"; |
||
} |
} |
||