跳转到内容

User:Towerman/customEdittools.js

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

这是本页的一个历史版本,由Towerman留言 | 贡献2012年6月11日 (一) 00:19编辑。这可能和当前版本存在着巨大的差异。

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
addDropdownMenu("myEd",wgULS('我的工具','我的工具'),[
	{ 
		id         : "wpwh",
		text       : "武汉专题评级",
		tagOpen    : "{\{WPWuhan|class=|importance=" ,
		sampleText : "na",
		tagClose   : "}\}"
	}
<!--    ,
        { 
		id         : "va",
		text       : "条目大小",
		tagOpen    : "{\{va|" ,
		sampleText : "条目",
		tagClose   : "}\}"
	}
 -->
]);
addEditButton("vab",{
		src        : "条目大小",
		tagOpen    : "{\{va|" ,
		sampleText : "条目",
		tagClose   : "}\}",
                speedTip   : '弹出提示',
}); 
    <!-- customizeToolbar( function() {
        this.wikiEditor('addToToolbar', {
            'section': 'user',
            'group': 'insert',
            'tools': {
                'category': {
                    label: '分类',
                    type: 'button',
                    icon: '/media/wikipedia/commons/thumb/0/00/Structure_du_site_ic%C3%B4ne.svg/23px-Structure_du_site_ic%C3%B4ne.svg.png',
                    action: {
                        type: 'encapsulate',
                        options: {
                            pre: "[\[Category:",
                            post: "]]"
                        }
                    }
                }
            }
        } );
    } );
 -->