MediaWiki:Vector.js

出自【暗黑百科】DiabloWiki_凯恩之角

(修订版本间的差异)
跳转到: 导航, 搜索
(以内容“- 此处的JavaScript将加载于使用Vector皮肤的用户: jQuery(function() { if (wgUserVariant.indexOf('cn') != -1 || wgUserVariant.indexOf('sg') != -1 || ...”创建新页面)
(以“- 此处的JavaScript将加载于使用Vector皮肤的用户: ”替换内容)
 
第1行: 第1行:
/* 此处的JavaScript将加载于使用Vector皮肤的用户 */
/* 此处的JavaScript将加载于使用Vector皮肤的用户 */
-
 
-
jQuery(function() {
 
-
    if (wgUserVariant.indexOf('cn') != -1 || wgUserVariant.indexOf('sg') != -1 || wgUserVariant.indexOf('hans') != -1) {
 
-
        jQuery('#p-logo a').empty().css('background-image',
 
-
            'url(http://upload.wikimedia.org/wikipedia/zh/6/62/Wiki_zh-hans.png)'
 
-
        );
 
-
    }
 
-
    if (window.isMSIE55) {
 
-
        doneIEAlphaFix = false;
 
-
        fixalpha('logo');
 
-
    }
 
-
   
 
-
    if (wgPageName == 'Wikipedia:首页' && wgAction == 'view') {
 
-
        jQuery('#firstHeading').hide();
 
-
    }
 
-
   
 
-
    if (wgPageName == 'Wikipedia:首页' || wgPageName == 'Wikipedia_talk:首页') {
 
-
        jQuery('#ca-nstab-project a span').text(wgUVS('首页', '首頁'));
 
-
    }
 
-
});
 
-
 
-
// Check that the toolbar is available
 
-
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
 
-
$j(document).ready( function() {
 
-
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
 
-
'section': 'characters',
 
-
'pages': {
 
-
'chinese': {
 
-
'layout': 'characters',
 
-
'label': '中文标点',
 
-
'characters': [',', '、', '。',  '?',  '!', ';', ':', '·',
 
-
                                                    {
 
-
                                                        'label': "“”",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "“”", 'post': "”" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                    {
 
-
                                                        'label': "‘’",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "‘", 'post': "’" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                    {
 
-
                                                        'label': "「」",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "「", 'post': "」" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                    {
 
-
                                                        'label': "『』",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "『", 'post': "』" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                    {
 
-
                                                        'label': "()",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "(", 'post': ")" }
 
-
                                                                  }
 
-
                                                    },
 
-
'-', '——', '……',
 
-
                                                    {
 
-
                                                        'label': "《》",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "《", 'post': "》" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                  {
 
-
                                                        'label': "〈〉",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "〈", 'post': "〉" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                  {
 
-
                                                        'label': "【】",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "【", 'post': "】" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                  {
 
-
                                                        'label': "〖〗",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "〖", 'post': "〗" }
 
-
                                                                  }
 
-
                                                    },
 
-
                                                  {
 
-
                                                        'label': "〔〕",
 
-
                                                        'action': {
 
-
                                                                'type': 'encapsulate', 'options': { 'pre': "〔", 'post': "〕" }
 
-
                                                                  }
 
-
                                                    },
 
-
'~']
 
-
}
 
-
}
 
-
} );
 
-
} );
 
-
}
 

在2011年5月16日 (一) 08:47的最新修订版本

/* 此处的JavaScript将加载于使用Vector皮肤的用户 */
个人工具
分享到: 更多
名字空间
变换
动作
网站地图
暗黑破坏神 III
暗黑破坏神 II
暗黑破坏神
工具箱
编辑箱
关于暗黑百科