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

//Test
var testsplink=mw.util.addPortletLink(
	'p-navigation',
	'/wiki/Special:BlankPage/Test',
	'測試'
);
if(mw.config.get('wgPageName')=='Special:空白页面/Test'){
	document.getElementById("firstHeading").innerText='測試';
	document.getElementById("mw-content-text").innerText='';
	$('#mw-content-text').append('OK');
}
//document.getElementById("siteNotice").append('哈哈');