User:Chris xue/customEdittools.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
//define buttons 定義按鈕與下拉菜單
addEditButton('btnCheSub',{
src : "a/aa/Button_sub_letter.png",
tagOpen : "<sub><small>",
sampleText : wgULS("下标","下標"),
tagClose : "</small></sub>",
speedTip : wgULS("下标","下標")
});
delete __temp;
addDropdownMenu("articleEdit",wgULS('条目编辑','條目編輯'),[
{
id : "elink",
text : wgULS("外部链接章节","外部連結章節"),
tagOpen : "\n==外部链接==\n* [" ,
sampleText : "网页地址 网页说明" ,
tagClose : "]\n"
},
{
id : "image",
text : wgULS("地区语言圖像","地區語言圖像"),
tagOpen : "{\{Image\n" ,
sampleText : "\t|zh=無轉換圖像名\n\t|zh-hans=简体图像名\n\t|zh-hant= 繁体圖像名\n\t|zh-cn=大陆图像名\n\t|zh-tw=臺灣圖像名\n\t|zh-hk=香港圖像名\n\t|zh=马新图像名\n\t|图像属性\n" ,
tagClose : "}\}"
},
{
id : "seealso",
text : wgULS("参见章节","參見章節"),
tagOpen : "\n==参见==\n* [[" ,
sampleText : "参见地址" ,
tagClose : "]]\n"
},
{
id : "Disambig",
text : wgULS("消歧义","消歧義"),
tagOpen : "\n'''{{PAGENAME}}'''可以指:\n" ,
sampleText : "* [[歧义1]],描述1\n* [[歧义2]],描述2" ,
tagClose : "\n{\{disambig}\}"
},
{
id : "otheruses",
text : wgULS("条目消歧义","條目消歧義"),
tagOpen : "{\{Otheruses|",
sampleText : "条目名称|subject=本页主題描述|other=同名或類似名的其它條目描述",
tagClose : "}\}"
},
{
id : "Current",
text : wgULS("正在发生","正在發生"),
tagOpen : "{\{Current}\}",
sampleText : "",
tagClose : ""
},
{
id : "noconv",
text : wgULS("取消繁简转换","取消繁簡轉換"),
tagOpen : "-\{" ,
sampleText : "不转换内容",
tagClose : "}\-"
},
{
id : "title",
text : wgULS("标题错误","標題錯誤"),
tagOpen : "-\{T|",
sampleText : "正确标题名称",
tagClose : "}\-"
},
{
id : "noteTA",
text : wgULS("标题全文转换","標題全文轉換"),
tagOpen : '{\{noteTA\n',
sampleText : '|G1=公共组名\n|1=zh-cn:大陆;zh-tw:台灣;zh-hk:香港;zh-sg:新马;\n|2=zh-cn:大陆;zh-tw:台灣;zh-hk:香港;zh-sg:新马;\n',
tagClose : "}\}"
},
{
id : "lrm",
text : "LRM符",
tagOpen : "\u200E",
sampleText : "",
tagClose : ""
}
]);
addDropdownMenu("articleMaintenance",wgULS('页面维护','頁面維護'),[
{
id : "stub",
text : "小作品",
tagOpen : "\n{\{" ,
sampleText : "" ,
tagClose : "小作品}\}"
},
{
id : "inuse",
text : wgULS("正在编辑","正在編輯"),
tagOpen : "{\{Inuse}\}",
sampleText : "",
tagClose : ""
},
{
id : "Unreferenced",
text : wgULS("缺少参考文献","缺少參考文獻"),
tagOpen : "{\{subst:Unreferenced/auto}\}",
sampleText : "",
tagClose : ""
},
{
id : "Substub",
text : wgULS("小小条目","小小條目"),
tagOpen : "{\{subst:Substub/auto}\}",
sampleText : "",
tagClose : ''
},
{
id : "vfd",
text : wgULS("标示删除","標示刪除"),
tagOpen : "{\{subst:vfd/auto|",
sampleText : "理由",
tagClose : "}\}"
},
{
id : "sd",
text : wgULS("标示快速删除","標示快速刪除"),
tagOpen : "{\{Delete|",
sampleText : "理由",
tagClose : "}\}"
},
{
id : "Copyvio",
text : wgULS("标示侵权","標示侵權"),
tagOpen : "\n{\{subst:Copyvio/auto|url=",
sampleText : "*http://url1\n*http://url2\n*http://url3",
tagClose : "}\}\n"
},
{
id : "mergeto",
text : wgULS("合并本条目到","合併本條目到"),
tagOpen : "{\{mergeto|",
sampleText : "合并本条目到的条目名称",
tagClose : "}\}"
},
{
id : "mergefrom",
text : wgULS("合并到本条目","合併到本條目"),
tagOpen : "{\{mergefrom|",
sampleText : "需要合并到本条目的条目名称",
tagClose : "}\}"
},
{
id : "split",
text : wgULS("分拆条目","分拆條目"),
tagOpen : "{\{Split}\}",
sampleText : "",
tagClose : ""
},
{
id : "translation",
text : wgULS("正在翻译","正在翻譯"),
tagOpen : "{\{translation|tfrom=",
sampleText : "在此填入来源",
tagClose : "|tpercent=翻譯進度百分數}\}"
}
]);
addDropdownMenu("langTags",wgULS('非中文标明','非中文標明'),[
{
id : "en",
text : wgULS("英语","英語"),
tagOpen : "{\{lang|en|",
sampleText : wgULS("英语","英語"),
tagClose : "}\}"
},
{
id : "de",
text : wgULS("德语","德語"),
tagOpen : "{\{lang|de|",
sampleText : wgULS("德语","德語"),
tagClose : "}\}"
},
{
id : "fr",
text : wgULS("法语","法語"),
tagOpen : "{\{lang|fr|",
sampleText : wgULS("法语","法語"),
tagClose : "}\}"
},
{
id : "ja",
text : wgULS("日语","日語"),
tagOpen : "{\{lang|ja|",
sampleText : wgULS("日语","日語"),
tagClose : "}\}"
},
{
id : "es",
text : wgULS("西班牙语","西班牙語"),
tagOpen : "{\{lang|es|",
sampleText : wgULS("西班牙语","西班牙語"),
tagClose : "}\}"
},
{
id : "ar",
text : wgULS("阿拉伯语","阿拉伯語"),
tagOpen : "{\{lang|ar|",
sampleText : wgULS("阿拉伯语","阿拉伯語"),
tagClose : "|\u200E}\}"
},
{
id : "ru",
text : wgULS("俄语","俄語"),
tagOpen : "{\{lang|ru|",
sampleText : wgULS("俄语","俄語"),
tagClose : "}\}"
},
{
id : "he",
text : wgULS("希伯来语","希伯來語"),
tagOpen : "{\{lang|he|",
sampleText : wgULS("希伯来语","希伯來語"),
tagClose : "|\u200E}\}"
},
{
id : "el",
text : wgULS("希腊语","希臘語"),
tagOpen : "{\{lang|el|",
sampleText : wgULS("希腊语","希臘語"),
tagClose : "}\}"
},
{
id : "pt",
text : wgULS("葡萄牙语","葡萄牙語"),
tagOpen : "{\{lang|pt|",
sampleText : wgULS("葡萄牙语","葡萄牙語"),
tagClose : "}\}"
},
{
id : "langcode",
text : wgULS("其他语言","其他語言"),
tagOpen : "{\{lang|"+wgULS("在此填上语言代码|","在此填上語言代碼|"),
sampleText : wgULS("其他语言","其他語言"),
tagClose : "}\}"
},
{
id : 'nochineseRedirect',
text : '非中文重定向',
tagOpen : '{\{非中文重定向}\}',
sampleText : '',
tagClose : ''
}
]);