User:Fanglongzong/customEdittools.js

维基百科,自由的百科全书

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。

addDropdownMenu("langTags",wgULS('lang-'),[
	{ 
		id         : "en",
		text       : wgULS("lang-en"),
		tagOpen    : "{\{lang-en|",
		sampleText : wgULS("英语","英語"),
		tagClose   : "}\}",
	},
	{ 
		id         : "ja",
		text       : wgULS("lang-ja"),
		tagOpen    : "{\{lang-ja|",
		sampleText : wgULS("日语","日語"),
		tagClose   : "}\}",
	}
]);
 
addDropdownMenu("langTags2",wgULS('lang|'),[
	{ 
		id         : "en2",
		text       : wgULS("lang|en"),
		tagOpen    : "{\{lang|en|",
		sampleText : wgULS("英语","英語"),
		tagClose   : "}\}",
	},
	{ 
		id         : "ja2",
		text       : wgULS("lang|ja"),
		tagOpen    : "{\{lang|ja|",
		sampleText : wgULS("日语","日語"),
		tagClose   : "}\}",
	}
]);
 
	// noteTA
addDropdownMenu("noteTA",wgULS('简繁转换','簡繁轉換'),[
 
	{ 
		id         : "title",
		text       : wgULS("强制纠正标题","強制糾正標題"),
		tagOpen    : "-\{T|",
		sampleText : "强制纠正标题名称",
		tagClose   : "}\-",
	},
	{ 
		id         : "text",
		text       : wgULS("四地转换","四地轉換"),
		tagOpen    : '\n',
		sampleText : '|1=zh-cn:大陆;zh-tw:台灣;zh-hk:香港;zh-sg:新马;\n|2=zh-cn:大陆;zh-tw:台灣;zh-hk:香港;zh-sg:新马;',
		tagClose   : "\n"
	},
	//Music这个公共转换组主要是音乐相关词的转换,比如乐队和樂團;Show则是人名转换。
	{ 
		id         : "noteTA",
		text       : wgULS("Music/Show","Music/Show"),
		tagOpen    : '{\{noteTA\n',
		sampleText : '|G1=Music\n|G2=Show\n',
		tagClose   : "}\}",
	},
	{ 
		id         : "blog",
		text       : wgULS("blog"),
		tagOpen    : '{\{noteTA\n',
		sampleText : '|zh-cn:博客; zh-tw:部落格; zh-hk:網誌; zh-sg:部落;\n',
		tagClose   : "}\}",
	}
]);
 
addDropdownMenu("AddSection",wgULS('添加章节','添加章節'),[
	{
		id         : "elink",
		text       : wgULS("外部链接章节","外部連結章節"),
		tagOpen    : "\n==外部链接==\n* [" ,
		sampleText : "网页地址 网页说明" ,
		tagClose   : "]\n",
	},
	{ 
		id         : "seealso",
		text       : wgULS("参见章节","參見章節"),
		tagOpen    : "\n==参见==\n* [[" ,
		sampleText : "参见地址" ,
		tagClose   : "]]\n",
	}
]);
 
addDropdownMenu("AddTemplate",wgULS('添加模板','添加模板'),[
	{
		id         : "DEFAULTSORT",
		text       : wgULS("DEFAULTSORT"),
		tagOpen    : "{\{DEFAULTSORT:" ,
		sampleText : "分类排序键" ,
		tagClose   : "}\}",
	},
	{
		id         : "bd",
		text       : wgULS("bd"),
		tagOpen    : "{\{bd|" ,
		sampleText : "1891年|12月17日|1962年|2月24日|catIdx=分类索引" ,
		tagClose   : "}\}",
	},
	{
		id         : "生日和年龄",
		text       : wgULS("生日和年龄"),
		tagOpen    : "{\{Birth date and age|" ,
		sampleText : "|1985|7|28" ,
		tagClose   : "}\}",
	},
	{
		id         : "死亡日期和年龄",
		text       : wgULS("死亡日期和年龄"),
		tagOpen    : "{\{Death date and age|" ,
		sampleText : "2000|2|24|1930|4|12" ,
		tagClose   : "}\}",
	},
		{
		id         : "最近逝世",
		text       : wgULS("最近逝世"),
		tagOpen    : "{\{最近逝世|" ,
		sampleText : "YYYY-MM-DD" ,
		tagClose   : "}\}",
	},
	{ 
		id         : "TransHF",
		text       : wgULS("TransH"),
		tagOpen    : '{\{TransH}\}\n',
		sampleText : 'Text',
		tagClose   : "\n{\{TransF}\}"
	},
	{ 
		id         : "Lookfrom",
		text       : wgULS("Lookfrom"),
		tagOpen    : '{\{Lookfrom|',
		sampleText : 'Text',
		tagClose   : "}\}"
	},
	{
		id         : "doubanelink",
		text       : wgULS("豆瓣","豆瓣"),
		tagOpen    : "{\{Douban|" ,
		sampleText : "项目号码" ,
		tagClose   : "}\}",
	},
	{
		id         : "rubyja",
		text       : wgULS("Ruby-ja"),
		tagOpen    : "{\{Ruby-ja|" ,
		sampleText : "漢字|仮名" ,
		tagClose   : "}\}",
	},
	{
		id         : "disambig",
		text       : wgULS("disambig"),
		tagOpen    : "{\{disambig|" ,
		sampleText : "Text" ,
		tagClose   : "|Cat=消歧义}\}",
	},
]);