User:P1ayer/customEdittools.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
//if(!mwCustomEditButtons.Signature){mwCustomEditButtons.Signature='—~~\~~';}
//if(/^Wikipedia:頁面存廢討論\//i.test(wgPageName) ||/^Wikipedia:檔案存廢討論\//i.test(wgPageName) ||/^Wikipedia:删除投票和请求\//i.test(wgPageName) || wgPageName == "Wikipedia:頁面恢復請求" ){
//快速刪除
addDropdownMenu("CustomQuickDelete",wgULS('快速刪除','快速刪除'),[
{
id : "cqdG1",
text : wgULS("G1 沒有實際內容","G1 沒有實際內容"),
tagOpen : "{\{d|" ,
sampleText : "G1" ,
tagClose : "}\}"
},
{
id : "cqdG2",
text : wgULS("G2 測試頁面","G2 測試頁面"),
tagOpen : "{\{d|" ,
sampleText : "G2" ,
tagClose : "}\}"
},
{
id : "cqdG3",
text : wgULS("G3 純粹的破壞","G3 純粹的破壞"),
tagOpen : "{\{d|" ,
sampleText : "G3" ,
tagClose : "}\}"
},
{
id : "cqdG4",
text : wgULS("G4 非常短、無定義","G4 非常短、無定義"),
tagOpen : "{\{d|" ,
sampleText : "G4" ,
tagClose : "}\}"
},
{
id : "cqdG5",
text : wgULS("G5 重建內容犯規","G5 重建內容犯規"),
tagOpen : "{\{d|",
sampleText : "G5",
tagClose : "}\}"
},
{
id : "cqdG7",
text : wgULS("G7 兩星期沒翻譯","G7 兩星期沒翻譯"),
tagOpen : "{\{d|",
sampleText : "G7",
tagClose : "}\}"
},
{
id : "cqdG9",
text : wgULS("G9 只包括參考","G9 只包括參考"),
tagOpen : "{\{d|" ,
sampleText : "G9",
tagClose : "}\}"
},
{
id : "cqdG10",
text : wgULS("G10 原作者提刪","G10 原作者提刪"),
tagOpen : "{\{d|",
sampleText : "G10",
tagClose : "}\}"
},
{
id : "cqdG11",
text : wgULS("G11 廣告、自傳","G11 廣告、自傳"),
tagOpen : '{\{d|',
sampleText : 'G11',
tagClose : "}\}"
},
{
id : "cqdG12",
text : wgULS("G12 人身攻擊","G12 人身攻擊"),
tagOpen : "{\{d|",
sampleText : "G12",
tagClose : "}\}"
},
{
id : "cqdG13",
text : wgULS("G13 拙劣的機器翻譯","G13 拙劣的機器翻譯"),
tagOpen : "{\{d|",
sampleText : "G13",
tagClose : "}\}"
},
{
id : "cqdI1",
text : wgULS("I1 重複圖片","I1 重複圖片"),
tagOpen : "{\{d|",
sampleText : "I1",
tagClose : "}\}"
},
{
id : "cqdI5",
text : wgULS("I5 較佳圖片取代 ","I5 較佳圖片取代"),
tagOpen : "{\{d|",
sampleText : "I5",
tagClose : "}\}"
},
{
id : "cqdI6",
text : wgULS("I6 孤立圖像","I6 孤立圖像"),
tagOpen : "{\{d|",
sampleText : "I6",
tagClose : "}\}"
},
{
id : "cqdR1",
text : wgULS("R1 斷連結重定向","R1 斷連結重定向譯"),
tagOpen : "{\{d|",
sampleText : "R1",
tagClose : "}\}"
},
{
id : "cqdR3",
text : wgULS("R3 錯誤重定向","R3 錯誤重定向"),
tagOpen : "{\{d|",
sampleText : "R3",
tagClose : "}\}"
},
{
id : "cqdO1",
text : wgULS("O1 用戶清除用戶頁","O1 用戶清除用戶頁"),
tagOpen : "{\{d|",
sampleText : "O1",
tagClose : "}\}"
},
{
id : "cqdO2",
text : wgULS("O2 孤立的討論頁","O2 孤立的討論頁譯"),
tagOpen : "{\{d|",
sampleText : "O2",
tagClose : "}\}"
},
{
id : "cqdO3",
text : wgULS("O3 匿名用戶討論頁","O3 匿名用戶討論頁"),
tagOpen : "{\{d|",
sampleText : "O3",
tagClose : "}\}"
},
{
id : "cqdO4",
text : wgULS("O4 空的類別","O4 空的類別"),
tagOpen : "{\{d|",
sampleText : "O4",
tagClose : "}\}"
},
{
id : "cqdO6",
text : wgULS("O6 用戶/討論頁","O6 用戶/討論頁"),
tagOpen : "{\{d|",
sampleText : "O6",
tagClose : "}\}"
},
{
id : "cqdG",
text : wgULS("其它","其它"),
tagOpen : "{\{d|",
sampleText : "快速刪除的原因",
tagClose : "}\}"
}
]);
//加框黨用
addDropdownMenu("CustomInsertBox",wgULS("加框標明","加框標明"),[
{
id : "cibUnreferenced",
text : wgULS("没有列出任何参考或来源","沒有列出任何參考或來源"),
tagOpen : "{\{subst:Unreferenced/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibNotability",
text : wgULS("可能不符合通用关注度","可能不符合通用關注度"),
tagOpen : "{\{subst:notability/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibPov",
text : wgULS("可能不中立","可能不中立"),
tagOpen : "{\{subst:POV/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibWikify",
text : wgULS("需要被修正为维基格式","需要被修正為維基格式"),
tagOpen : "{\{subst:Wikify/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibNonFree",
text : wgULS("不当的使用了受版权保护的内容","不當的使用了受版權保護的內容"),
tagOpen : "{\{subst:Non-free/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibGlobalize",
text : wgULS("部分地域的观点或资讯","部分地域的觀點或資訊"),
tagOpen : "{\{globalize|area=}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibDisputed",
text : wgULS("准确性有争议","準確性有爭議"),
tagOpen : "{\{subst:disputed/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibAdvert",
text : wgULS("类似广告","類似廣告"),
tagOpen : "{\{subst:Advert/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibUncategorized",
text : wgULS("缺少页面分类","缺少頁面分類"),
tagOpen : "{\{subst:Uncategorized/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibExpand",
text : wgULS("需要扩充","需要擴充"),
tagOpen : "{\{subst:Expand/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibTrivia",
text : wgULS("避免内容琐碎","避免內容瑣碎"),
tagOpen : "{\{subst:Trivia/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibExpert",
text : wgULS("需要专业人士关注","需要專業人士關注"),
tagOpen : "{\{Expert}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibReqimage",
text : wgULS("需要添加适量的图片","需要添加適量的圖片"),
tagOpen : "{\{Reqimage}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibUnfinished",
text : wgULS("正在连载或未完结的作品","正在連載或未完結的作品"),
tagOpen : "{\{Unfinished}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibFutureGame",
text : wgULS("未來遊戲","未來遊戲"),
tagOpen : "{\{future game}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibCurrent",
text : wgULS("新闻动态","新聞動態"),
tagOpen : "{\{current}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibOrphan",
text : wgULS("孤立页面","孤立頁面"),
tagOpen : "{\{subst:Orphan/auto}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibTWcurrent",
text : wgULS("台灣新聞動態","台灣新聞動態"),
tagOpen : "{\{TWcurrent}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibCNcurrent",
text : wgULS("中國新聞動態","中國新聞動態"),
tagOpen : "{\{CNcurrent}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cibHKcurrent",
text : wgULS("香港新聞動態","香港新聞動態"),
tagOpen : "{\{HKcurrent}\}\n",
sampleText : "",
tagClose : ""
}
]);
//加框黨用2
addDropdownMenu("CustomInsertBox2",wgULS("討論頁加框","討論頁加框"),[
{
id : "cib2Talkheader",
text : wgULS("討論頁抬頭","討論頁抬頭"),
tagOpen : "{\{Talkheader}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cib2Blp",
text : wgULS("生人傳記","生人傳記"),
tagOpen : "{\{Blp}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cib2Indiscussion",
text : wgULS("正在進行討論","正在進行討論"),
tagOpen : "{\{Indiscussion}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cib2NotFansite",
text : wgULS("不是追星或愛好者網站","不是追星或愛好者網站"),
tagOpen : "{\{Not-fansite}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cib2PolicyPol",
text : wgULS("不是論壇、網誌或民主試驗場","不是論壇、網誌或民主試驗場"),
tagOpen : "{\{Policy-pol}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cib2Game",
text : wgULS("不是遊戲攻略","不是遊戲攻略"),
tagOpen : "{\{Game}\}\n",
sampleText : "",
tagClose : ""
},
{
id : "cib2Academicsource",
text : wgULS("被論文引用","被論文引用"),
tagOpen : "{\{Academicsource|\nauthor=|title=\norg=\n|url=\n| date=\n}\}\n",
sampleText : "",
tagClose : ""
}
]);
//}