跳转到内容

MediaWiki:Gadget-noteTAvector.js

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

这是本页的一个历史版本,由Shizhao留言 | 贡献2015年9月9日 (三) 17:15编辑。这可能和当前版本存在着巨大的差异。

注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google ChromeFirefoxMicrosoft EdgeSafari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
var portletLink = mw.util.addPortletLink( 'left-navigation', '#',
	'<span style="padding:1px 3px; background: #d3e3f4; color:#000000;">汉</span><span style="padding:1px 3px; background: #e9e9e9; color:#434343;">漢</span>', 'mw-indicator-noteTA-',	'转换组'
);
$( "li#ca-taggeo" ).click( function (e) {
e.preventDefault();	
});
	
( function( $, mw ) { $( function() {
    $( 'body.skin-vector .mw-indicator[id^=mw-indicator-noteTA-]' )
        .addClass( 'vectorTabs' )
        .removeAttr( 'style' )
        .empty()
        .each( function() {
            $( '<a href="#"><span style="padding:1px 3px; background: #d3e3f4; color:#000000;">汉</span><span style="padding:1px 3px; background: #e9e9e9; color:#434343;">漢</span></a>' )
                .click( function( e ) {
                    e.preventDefault();
                } )
                .wrap( '<ul><li><span></span></li></ul>' )
                .parent().parent().parent().appendTo( this );
        } )
        .insertAfter( '#p-variants' );
} ); } )( jQuery, mediaWiki );