MediaWiki:Gadget-twinkleconfig.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 16: | Line 16: | ||
I, [[User:This, that and the other]], originally wrote this. If the code is misbehaving, or you have any |
I, [[User:This, that and the other]], originally wrote this. If the code is misbehaving, or you have any |
||
questions, don't hesitate to ask me. (This doesn't at all imply [[ |
questions, don't hesitate to ask me. (This doesn't at all imply [[EFD:OWN]]ership - it's just meant to |
||
point you in the right direction.) -- TTO |
point you in the right direction.) -- TTO |
||
*/ |
*/ |
||
Line 623: | Line 623: | ||
// TwinkleConfig.blankTalkpageOnIndefBlock (boolean) |
// TwinkleConfig.blankTalkpageOnIndefBlock (boolean) |
||
// if true, blank the talk page when issuing an indef block notice (per [[ |
// if true, blank the talk page when issuing an indef block notice (per [[EFD:UW#Indefinitely blocked users]]) |
||
{ |
{ |
||
name: "blankTalkpageOnIndefBlock", |
name: "blankTalkpageOnIndefBlock", |
||
label: "Blank the talk page when indefinitely blocking users", |
label: "Blank the talk page when indefinitely blocking users", |
||
helptip: "See <a href=\"" + mw.util.wikiGetlink(" |
helptip: "See <a href=\"" + mw.util.wikiGetlink("EFD:UW#Indefinitely blocked users") + "\">EFD:UW</a> for more information.", |
||
adminOnly: true, |
adminOnly: true, |
||
type: "boolean" |
type: "boolean" |
||
Line 1,737: | Line 1,737: | ||
pageobj.setPageText(text); |
pageobj.setPageText(text); |
||
pageobj.setEditSummary("Saving Twinkle preferences: automatic edit from [[" + Morebits.pageNameNorm + "]] ([[ |
pageobj.setEditSummary("Saving Twinkle preferences: automatic edit from [[" + Morebits.pageNameNorm + "]] ([[EFD:TW|TW]])"); |
||
pageobj.setCreateOption("recreate"); |
pageobj.setCreateOption("recreate"); |
||
pageobj.save(Twinkle.config.saveSuccess); |
pageobj.save(Twinkle.config.saveSuccess); |
||
Line 1,749: | Line 1,749: | ||
noticebox.style.fontSize = "100%"; |
noticebox.style.fontSize = "100%"; |
||
noticebox.style.marginTop = "2em"; |
noticebox.style.marginTop = "2em"; |
||
noticebox.innerHTML = "<p><b>Your Twinkle preferences have been saved.</b></p><p>To see the changes, you will need to <b>clear your browser cache entirely</b> (see <a href=\"" + mw.util.wikiGetlink(" |
noticebox.innerHTML = "<p><b>Your Twinkle preferences have been saved.</b></p><p>To see the changes, you will need to <b>clear your browser cache entirely</b> (see <a href=\"" + mw.util.wikiGetlink("EFD:BYPASS") + "\" title=\"EFD:BYPASS\">EFD:BYPASS</a> for instructions).</p>"; |
||
Morebits.status.root.appendChild(noticebox); |
Morebits.status.root.appendChild(noticebox); |
||
var noticeclear = document.createElement("br"); |
var noticeclear = document.createElement("br"); |