跳转到内容

User:Altt311/generaltools.js

维基百科,自由的百科全书
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
addDropdownMenu("articleMaintenance","頁面維護",[
	{
		id         : "inuse",
		text       : "正在編輯",
		tagOpen    : "{\{Inuse}\}",
		sampleText : "",
		tagClose   : ""
	},
	{ 
		id         : "mergeto",
		text       : "合併本條目到",
		tagOpen    : "{\{mergeto|",
		sampleText : "合併指向",
		tagClose   : "}\}"
	},
	{ 
		id         : "mergefrom",
		text       : "合併到本條目",
		tagOpen    : "{\{mergefrom|",
		sampleText : "被合併條目",
		tagClose   : "}\}"
	},
	{ 
		id         : "split",
		text       : "分拆條目",
		tagOpen    : "{\{Split}\}",
		sampleText : "",
		tagClose   : ""
	},
	{ 
		id         : "translation",
		text       : "正在翻譯",
		tagOpen    : "{\{subst:translating/auto|tfrom=",
		sampleText : "來源條目",
		tagClose   : "|tpercent=翻譯進度百分數}\}"
	}
]);

addEditButton('btnFact',{
	src        : "1/1a/Button_fact.png",
	tagOpen    : '{\{subst:fact/auto|',
	sampleText : '內容',
	tagClose   : '}\}\n',
	summary  : "Fact",
	speedTip   : "請求來源"
});