跳转到内容

User:Altt311/vptools.js

维基百科,自由的百科全书
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
addDropdownMenu("MoveFromVP","客棧移動源",[
	{ 
		id         : "fromNews",
		text       : "消息",
		tagOpen    : "{\{movedfrom|Wikipedia:互助客栈/消息|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "fromPolicy",
		text       : "方針",
		tagOpen    : "{\{movedfrom|Wikipedia:互助客栈/方针|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "fromAssist",
		text       : "求助",
		tagOpen    : "{\{movedfrom|Wikipedia:互助客栈/求助|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "fromTech",
		text       : "技術",
		tagOpen    : "{\{movedfrom|Wikipedia:互助客栈/技术|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "fromMisc",
		text       : "其他",
		tagOpen    : "{\{movedfrom|Wikipedia:互助客栈/其他|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "fromEnq",
		text       : "詢問處",
		tagOpen    : "{\{movedfrom|Wikipedia:詢問處|sign=~~\~~}\}",
		tagClose   : "\n"
	}
]);

addDropdownMenu("MoveToVP","客棧移動至",[
	{ 
		id         : "toNews",
		text       : "消息",
		tagOpen    : "{\{moveto|Wikipedia:互助客栈/消息|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "toPolicy",
		text       : "方針",
		tagOpen    : "{\{moveto|Wikipedia:互助客栈/方针|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "toAssist",
		text       : "求助",
		tagOpen    : "{\{moveto|Wikipedia:互助客栈/求助|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "toTech",
		text       : "技術",
		tagOpen    : "{\{moveto|Wikipedia:互助客栈/技术|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "toMisc",
		text       : "其他",
		tagOpen    : "{\{moveto|Wikipedia:互助客栈/其他|sign=~~\~~}\}",
		tagClose   : "\n"
	},
	{ 
		id         : "toEnq",
		text       : "詢問處",
		tagOpen    : "{\{moveto|Wikipedia:詢問處|sign=~~\~~}\}",
		tagClose   : "\n"
	}
]);

addEditButton('btnDelTalk',{
	src        : "0/08/Button_badlang.png",
	tagOpen    : '{\{deltalk|Altt311|\~~\~~\~|',
	sampleText : '理由',
	tagClose   : '}\}\n',
	speedTip   : "刪除討論",
	summary  : "deltalk"
});

addEditButton('btnCloseTalk',{
	src        : "0/03/Button_chapitre.png",
	tagOpen    : '{\{closed|已解決|text=',
	sampleText : '討論內容',
	tagClose   : '}\}\n',
	speedTip   : "關閉討論及存檔",
	summary  : "closetalk"
});

addEditButton('btnSaveTo',{
	src        : "d/d8/Button_archivo_borrar.png",
	tagOpen    : '{\{saveto|',
	sampleText : '存檔頁面',
	tagClose   : '}\}\n',
	speedTip   : "指定存檔頁面",
	summary  : "saveto"
});

addDropdownMenu("ArchiveVP","客棧存檔",[
	{ 
		id         : "archiveNews",
		text       : "消息",
		tagOpen    : "{\{subst:移自互助客栈|—\~~\~~|消息}\}",
		sampleText : '討論內容',
		tagClose   : "\n"
	},
	{ 
		id         : "archivePolicy",
		text       : "方針",
		tagOpen    : "{\{subst:移自互助客栈|—\~~\~~|方针}\}",
		sampleText : '討論內容',
		tagClose   : "\n"
	},
	{ 
		id         : "archiveAssist",
		text       : "求助",
		tagOpen    : "{\{subst:移自互助客栈|—\~~\~~|求助}\}",
		sampleText : '討論內容',
		tagClose   : "\n"
	},
	{ 
		id         : "archiveTech",
		text       : "技術",
		tagOpen    : "{\{subst:移自互助客栈|—\~~\~~|技术}\}",
		sampleText : '討論內容',
		tagClose   : "\n"
	},
	{ 
		id         : "archiveOthers",
		text       : "其他",
		tagOpen    : "{\{subst:移自互助客栈|—\~~\~~|其他}\}",
		sampleText : '討論內容',
		tagClose   : "\n"
	}
]);