User:Dingar/customEdittools.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
//define buttons 定義按鈕與下拉菜單
//addEditButton('btnInterLink',{
// src : 'c/c0/Button_link.png',
// tagOpen : '[[',
// sampleText : '链接标题',
// tagClose : ']]',
// speedTip : '内部链接'
//});
addDropdownMenu("personalEdit",wgULS('个人专用','个人专用'),[
{
id : "fact",
text : wgULS("来源请求","來源請求"),
tagOpen : "{\{subst:fact/auto|",
sampleText : "",
tagClose : "}\}"
},
{
id : "cleanup",
text : wgULS("需要清理","需要清理"),
tagOpen : "{\{subst:cleanup/auto",
sampleText : "",
tagClose : "}\}"
},
{
id : "tone",
text : wgULS("语气","语气"),
tagOpen : "{\{subst:tone/auto",
sampleText : "",
tagClose : "}\}"
},
{
id : "fy",
text : wgULS("非物质文化遗产","非物质文化遗产"),
tagOpen : "==文化==\n",
sampleText : "的",
tagClose : "被列入[[国家级非物质文化遗产名录]]。"
}
]);
addDropdownMenu("xzqhEdit",wgULS('行政区划','行政区划'),[
{
id : "NavboxChineseCounty",
text : wgULS("乡级行政区导航","乡级行政区导航"),
tagOpen : "{{Navbox Chinese County\n|自治区=内蒙古自治区\n|市=巴彦淖尔市\n|旗=" ,
sampleText : "" ,
tagClose : "\n|镇=\n|乡=\n}}"
},
{
id : "DisambigXiang",
text : wgULS("乡消歧义","乡消歧義"),
tagOpen : "\n'''{{PAGENAME}}'''可以指:\n" ,
sampleText : "* [[{{PAGENAME}} ()]],[[中华人民共和国|中国]]下辖的一个[[乡]]。\n* [[{{PAGENAME}} ()]],中国下辖的一个乡。" ,
tagClose : "\n{\{disambig}\}"
},
{
id : "DisambigZhen",
text : wgULS("镇消歧义","镇消歧義"),
tagOpen : "\n'''{{PAGENAME}}'''可以指:\n" ,
sampleText : "* [[{{PAGENAME}} ()]],[[中华人民共和国|中国]]下辖的一个[[镇]]。\n* [[{{PAGENAME}} ()]],中国下辖的一个镇。" ,
tagClose : "\n{\{disambig}\}"
},
{
id : "TemplateXian",
text : wgULS("中国县级行政区模板","中国县级行政区模板"),
tagOpen : "\{\{Infobox China County\n| county =" ,
sampleText : " {{PAGENAME}}" ,
tagClose : "\n| Photo =\n| Photoname=\n| state =\n| map =\n| map size =\n| mapofstate=\n| Pinyin =\n| Belong =\n| Types=\n| admincode =\n| founded =\n| seat =\n| officerTitle=\n| officer =\n| division =\n| town=\n| township=\n| subdistrict=\n
| dialect=\n| post code=\n| phone code =\n| coordinate =\n| area =\n| area land =\n| area water =\n| census yr =\n| pop =\n| density =\n| GDP = \n| web =\n\}\}"
},
{
id : "TemplateXiang",
text : wgULS("中国乡级行政区模板","中国乡级行政区模板"),
tagOpen : "\{\{中国乡级行政区\n| 行政区全称 =" ,
sampleText : " {{PAGENAME}}" ,
tagClose : "\n| 景观照片文件名 = \n| 景观照片描述 = \n| 汉语拼音 = \n| 通用拼音 = \n| 注音符號 = \n| 其它标音类型1 = \n| 其它标音1 = \n| 其它标音类型2 = \n| 其它标音2 = \n| 其它语言类型1 = \n| 其它语言地名1 = \n| 其它语言类型2 = \n| 其它语言地名2 = \n| 上级行政区 = \n| 行政区类别 = \n| 行政区划代码 = \n| 地理坐标 = \n| 总面积 = \n| 户籍人口 = \n| 户籍人口年份 = \n| 常住人口 = \n| 常住人口年份 = \n| 人口密度 = \n| 行政区划 = \n| 官方网站 = \n| 政府驻地 = \n| 邮政编码 = \n| 毗邻行政区 = \n| 位置图文件名 = \n| 位置图描述 = \n\}\}"
},
{
id : "IntroXiang",
text : wgULS("乡条目首句","乡条目首句"),
tagOpen : "'''" ,
sampleText : "{{PAGENAME}}" ,
tagClose : "'''是[[中华人民共和国|中国]]下辖的一个[[乡]]。"
},
{
id : "IntroZhen",
text : wgULS("镇条目首句","镇条目首句"),
tagOpen : "'''" ,
sampleText : "{{PAGENAME}}" ,
tagClose : "'''是[[中华人民共和国|中国]]下辖的一个[[镇]]。"
}
]);
addDropdownMenu("Template",wgULS('常用模板','常用模板'),[
{
id : "Infobox_People",
text : wgULS("Infobox_People","Infobox_People"),
tagOpen : "" ,
sampleText : "\{\{Infobox People\n| name = \n| image name = \n| width = \n| job = \n| period = \n| birthname =\n| other_names =\n| Sex =\n| date of birth = \n| place of birth = \n| date of death = \n| place of death = \n| nationality =\n| residence =\n| height =\n| weight =\n| party =\n| religion =\n| spouse = \n| relatives = \n| educate = \n| past = \n| work =\n| award =\n\}\}" ,
tagClose : ""
},
{
id : "CAS",
text : wgULS("Infobox_People_CAS","Infobox_People_CAS"),
tagOpen : "" ,
sampleText : "\{\{Infobox_People\n| name = \n| image name = \n| width = \n| job = \n| period =\n| Sex = \n| date of birth = \n| place of birth = \n| date of death = \n| place of death = \n| spouse = \n| relatives = \n| educate = \n| past = \n\{\{Infobox_People_CAS\n|学部=\n|专业=\n|当选年=\n\}\}\n| award =\n\}\}" ,
tagClose : ""
},
{
id : "Artist",
text : wgULS("藝人","艺人"),
tagOpen : "" ,
sampleText : "\{\{藝人\n|姓名 = \n|類型 = \n|圖片 = \n|圖片尺寸 = \n|圖片簡介 = \n|原名 = \n|外文名 = \n|外文 = \n|羅馬拼音 = \n|英文名 = \n|暱稱 = \n|其他藝名 = \n|國籍 = \n|民族 = \n|籍貫 = \n|出生日期 = \n|出生地點 = \n|逝世日期 = \n|逝世地點 = \n|職業 = \n|語言 = \n|三圍 = \n|教育程度 = \n|宗教信仰 =\n|配偶 = \n|兒女 = \n|父母 = \n|音樂類型 = \n|演奏樂器 = \n|出身地 = \n|出道作 = \n|出道日期 = \n|代表作 = \n|活躍年代 = \n|唱片公司 = \n|經紀公司 = \n|網站 = \n|相關團體 = \n|獎項 = \n|IMDb = \n|現任成員 = \n|過往成員 = \n|音樂專輯 = \n|電影 = \n|電視節目 = \n|舞台劇 = \n|書籍 = \n|awards =\n|academyawards =\n|afiawards =\n|arielaward =\n|baftaawards =\n|cesarawards =\n|emmyawards =\n|filmfareawards =\n|geminiawards =\n|goldenglobeawards =\n|goldenraspberryawards =\n|goyaawards =\n|grammyawards =\n|olivierawards =\n|iftaawards =\n|imageaward =\n|nationalfilmawards =\n|screenactorsguildawards =\n|tonyawards =\n}}\n" ,
tagClose : ""
},
{
id : "Navbox",
text : wgULS("Navbox","Navbox"),
tagOpen : "" ,
sampleText : "{{Navbox\n|name = {{PAGENAME}}\n|title = \n|image = \n|above = \n|group1 = \n|list1 = \n|group2 = \n|list2 = \n|group3 = \n|list3 = \n|group4 = \n|list4 = \n|group5 = \n|list5 = \n|group6 = \n|list6 = \n|below = \n}}" ,
tagClose : ""
},
{
id : "Coor",
text : wgULS("Coor title dms","Coor title dms"),
tagOpen : "" ,
sampleText : "{{coor title dms||||N||||E}}" ,
tagClose : ""
}
]);
addDropdownMenu("fjsqEdit",wgULS('福建省情','福建省情'),[
{
id : "qzszRefer",
text : wgULS("泉州市志","泉州市志"),
tagOpen : "<ref>\{\{cite book | last = 泉州市地方志编纂委员会编 | first = | authorlink = | coauthors = | title = 泉州市志| publisher = 中国社会科学出版社 | date = 2000-5 | location = 北京 | pages =" ,
sampleText : "" ,
tagClose : " | url = | doi = | id = | isbn = 7-5004-2700-X \}\}</ref>"
},
{
id : "haxzRefer",
text : wgULS("惠安县志","惠安县志"),
tagOpen : "<ref>\{\{cite book | last = 惠安县地方志编纂委员会编 | first = | authorlink = | coauthors = | title = 惠安县志 | publisher = 方志出版社 | date = 1998-7 | location = 北京 | pages =" ,
sampleText : "" ,
tagClose : " | url = | doi = | id = | isbn = 7-80122-352-7 \}\}</ref>"
},
{
id : "fqszRefer",
text : wgULS("福清市志","福清市志"),
tagOpen : "<ref>{{cite book | last = 福清市编纂委员会编 | first = | authorlink = | coauthors = | title = 福清市志 | publisher = 厦门大学出版社 | date = 1994-4 | location = 厦门 | pages =" ,
sampleText : "" ,
tagClose : " | url = | doi = | id = | isbn = 7-5615-0840-9 }}</ref>"
},
{
id : "clszRefer",
text : wgULS("马尾区志","马尾区志"),
tagOpen : "<ref>{{cite book | last = 福建省福州市马尾区地方志编纂委员会编 | first = | authorlink = | coauthors = | title = 马尾区志 | publisher = 方志出版社 | date = 2002-5 | location = 北京 | pages =" ,
sampleText : "" ,
tagClose : " | url = | doi = | id = | isbn = 7-80122-616-X }}</ref>"
},
{
id : "clszRefer",
text : wgULS("长乐市志","长乐市志"),
tagOpen : "<ref>{{cite book | last = 长乐市地方志编纂委员会编 | first = | authorlink = | coauthors = | title = 长乐市志 | publisher = 福建人民出版社 | date = 2001-11 | location = 福州 | pages =" ,
sampleText : "" ,
tagClose : " | url = | doi = | id = | isbn = 7-211-03978-7 }}</ref>"
},
{
id : "lcxz1988Refer",
text : wgULS("连城县志1988","连城县志1988"),
tagOpen : "<ref>{{cite book | last = 连城县地方志编纂委员会编 | first = | authorlink = | coauthors = | title = 连城县志:1988~2000年 | publisher = 方志出版社 | date = 2005-7 | location = 北京 | pages =" ,
sampleText : "" ,
tagClose : " | url = | doi = | id = | isbn = 7-80192-542-4 }}</ref>"
}
]);