مدیاویکی:Gadget-twinkleconfig.js: تفاوت میان نسخه‌ها

پرش به ناوبری پرش به جستجو
(صفحه‌ای تازه حاوی «//<nowiki> (function($){ /* **************************************** *** twinkleconfig.js: Preferences module **********************...» ایجاد کرد)
بدون خلاصۀ ویرایش
خط ۱۶: خط ۱۶:


  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 [[WP:OWN]]ership - it's just meant to
  questions, don't hesitate to ask me.  (This doesn't at all imply [[ip:OWN]]ership - it's just meant to
  point you in the right direction.)  -- TTO
  point you in the right direction.)  -- TTO
  */
  */
خط ۶۳۵: خط ۶۳۵:


// TwinkleConfig.blankTalkpageOnIndefBlock (boolean)
// TwinkleConfig.blankTalkpageOnIndefBlock (boolean)
// if true, blank the talk page when issuing an indef block notice (per [[WP:UW#Indefinitely blocked users]])
// if true, blank the talk page when issuing an indef block notice (per [[ip: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.getUrl("WP:UW#Indefinitely blocked users") + "\">WP:UW</a> for more information.",
helptip: "See <a href=\"" + mw.util.getUrl("ip:UW#Indefinitely blocked users") + "\">ip:UW</a> for more information.",
adminOnly: true,
adminOnly: true,
type: "boolean"
type: "boolean"
خط ۱٬۷۴۹: خط ۱٬۷۴۹:


pageobj.setPageText(text);
pageobj.setPageText(text);
pageobj.setEditSummary("Saving Twinkle preferences: automatic edit from [[" + Morebits.pageNameNorm + "]] ([[WP:TW|TW]])");
pageobj.setEditSummary("Saving Twinkle preferences: automatic edit from [[" + Morebits.pageNameNorm + "]] ([[ip:TW|TW]])");
pageobj.setCreateOption("recreate");
pageobj.setCreateOption("recreate");
pageobj.save(Twinkle.config.saveSuccess);
pageobj.save(Twinkle.config.saveSuccess);
خط ۱٬۷۶۱: خط ۱٬۷۶۱:
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.getUrl("WP:BYPASS") + "\" title=\"WP:BYPASS\">WP:BYPASS</a> for instructions).</p>";
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.getUrl("ip:BYPASS") + "\" title=\"ip:BYPASS\">ip: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");