MediaWiki:Gadget-twinkleprod.js: Difference between revisions

Add
m (1 revision imported)
 
(Add)
 
Line 19: Line 19:
}
}


Twinkle.addPortletLink( Twinkle.prod.callback, "PROD", "tw-prod", "Propose deletion via WP:PROD" );
Twinkle.addPortletLink( Twinkle.prod.callback, "PROD", "tw-prod", "Propose deletion via SV:PROD" );
};
};


Line 41: Line 41:
Window.setTitle( "Proposed deletion (PROD)" );
Window.setTitle( "Proposed deletion (PROD)" );
Window.setScriptName( "Twinkle" );
Window.setScriptName( "Twinkle" );
Window.addFooterLink( "Proposed deletion policy", "WP:PROD" );
Window.addFooterLink( "Proposed deletion policy", "SV:PROD" );


if (namespace === 'article') {
if (namespace === 'article') {
Window.addFooterLink( "BLP PROD policy", "WP:BLPPROD" );
Window.addFooterLink( "BLP PROD policy", "SV:BLPPROD" );
}
}


Window.addFooterLink( "Twinkle help", "WP:TW/DOC#prod" );
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 66: Line 66:
value: 'prod',
value: 'prod',
checked: true,
checked: true,
tooltip: 'Normal proposed deletion, per [[WP:PROD]]'
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 [[WP:BLPPROD]]'
tooltip: 'Proposed deletion of new, completely unsourced biographies of living persons, per [[SV:BLPPROD]]'
}
}
]
]
Line 200: Line 200:
}
}


summaryText = "Proposing " + namespace + " for deletion per [[WP:" + (params.blp ? "BLP" : "") + "PROD]].";
summaryText = "Proposing " + namespace + " 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 218: Line 218:
}
}


summaryText = "Endorsing proposed deletion per [[WP:" + (params.blp ? "BLP" : "") + "PROD]].";
summaryText = "Endorsing proposed deletion per [[SV:" + (params.blp ? "BLP" : "") + "PROD]].";
text = text.replace( prod_re, text.match( prod_re ) + "\n{{proposed deletion endorsed|1=" + (params.blp ?
text = text.replace( prod_re, text.match( prod_re ) + "\n{{proposed deletion endorsed|1=" + (params.blp ?
"article is a [[WP:BLPPROD|biography of a living person with no sources]]" :
"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 278: Line 278:
if (!pageobj.exists()) {
if (!pageobj.exists()) {
text =
text =
"This is a log of all [[WP:PROD|proposed deletion]] tags applied or endorsed by this user using [[WP:TW|Twinkle]]'s PROD module.\n\n" +
"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 [[Sarkarverse:Twinkle/Preferences|preferences panel]], and " +
"nominate this page for speedy deletion under [[WP:CSD#U1|CSD U1]].\n";
"nominate this page for speedy deletion under [[SV:CSD#U1|CSD U1]].\n";
}
}


14,061

edits