Anonymous user
MediaWiki:Gadget-friendlytalkback.js: Difference between revisions
MediaWiki:Gadget-friendlytalkback.js (view source)
Revision as of 13:18, 24 December 2013
, 10 years agov2.0-675-gf30bb99: welcome: Add {{welcometest}}; talkback: Add AFC help desk talkbacks
imported>AzaToth m (v2.0-556-g0beacc0: use .utc() for timestamps and format them the sme way as the wiki does) |
imported>Amalthea (v2.0-675-gf30bb99: welcome: Add {{welcometest}}; talkback: Add AFC help desk talkbacks) |
||
Line 192:
type: "select",
name: "noticeboard",
label: "Noticeboard:",
event: function(e) {
if (e.target.value === "afchd") {
Morebits.quickForm.overrideElementLabel(e.target.form.section, "Title of draft (excluding the prefix): ");
Morebits.quickForm.setElementTooltipVisibility(e.target.form.section, false);
} else {
Morebits.quickForm.resetElementLabel(e.target.form.section);
Morebits.quickForm.setElementTooltipVisibility(e.target.form.section, true);
}
}
});
noticeboard.append({
Line 202 ⟶ 211:
type: "option",
label: "WP:AN3 (Administrators' noticeboard/Edit warring)",
value: "an3"
});
Line 210 ⟶ 218:
selected: true,
value: "ani"
});
// let's keep AN and its cousins at the top
noticeboard.append({
type: "option",
label: "WP:AFCHD (Articles for creation/Help desk)",
value: "afchd"
});
noticeboard.append({
Line 223 ⟶ 237:
noticeboard.append({
type: "option",
label: "WP:
value: "
});
noticeboard.append({
type: "option",
label: "WP:
value: "
});
noticeboard.append({
Line 334 ⟶ 348:
if ( tbtarget === "notice" ) {
switch (page) {
case "afchd":
text += "\n\n{{subst:AFCHD/u|" + section + "}} ~~~~";
talkpage.setEditSummary( "You have replies at the [[Wikipedia:AFCHD|Articles for Creation Help Desk]]" + Twinkle.getPref("summaryAd") );
break;
case "an":
text = "\n\n== " + Twinkle.getFriendlyPref("adminNoticeHeading") + " ==\n";
|