MediaWiki:Gadget-friendlytalkback.js: Difference between revisions
Content added Content deleted
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: | Line 192: | ||
type: "select", |
type: "select", |
||
name: "noticeboard", |
name: "noticeboard", |
||
label: "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({ |
noticeboard.append({ |
||
Line 202: | Line 211: | ||
type: "option", |
type: "option", |
||
label: "WP:AN3 (Administrators' noticeboard/Edit warring)", |
label: "WP:AN3 (Administrators' noticeboard/Edit warring)", |
||
selected: true, |
|||
value: "an3" |
value: "an3" |
||
}); |
}); |
||
Line 210: | Line 218: | ||
selected: true, |
selected: true, |
||
value: "ani" |
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({ |
noticeboard.append({ |
||
Line 223: | Line 237: | ||
noticeboard.append({ |
noticeboard.append({ |
||
type: "option", |
type: "option", |
||
label: "WP: |
label: "WP:HD (Help desk)", |
||
value: " |
value: "hd" |
||
}); |
}); |
||
noticeboard.append({ |
noticeboard.append({ |
||
type: "option", |
type: "option", |
||
label: "WP: |
label: "WP:OTRS/N (OTRS noticeboard)", |
||
value: " |
value: "otrs" |
||
}); |
}); |
||
noticeboard.append({ |
noticeboard.append({ |
||
Line 334: | Line 348: | ||
if ( tbtarget === "notice" ) { |
if ( tbtarget === "notice" ) { |
||
switch (page) { |
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": |
case "an": |
||
text = "\n\n== " + Twinkle.getFriendlyPref("adminNoticeHeading") + " ==\n"; |
text = "\n\n== " + Twinkle.getFriendlyPref("adminNoticeHeading") + " ==\n"; |