MediaWiki:Vector.js

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

在2011年5月15日 (日) 12:57由Spx (讨论 | 贡献)所做的修订版本
(差异) ←上一修订 | 最新修订 (差异) | 下一修订→ (差异)
跳转到: 导航, 搜索

注意:在保存以后,您必须清除浏览器的缓存才能看到所作出的改变。 Mozilla / Firefox / Safari:按住Shift再点击刷新,或按下Ctrl-F5Ctrl-R(在Macintosh上按下Command-R); Konqueror:只需点击刷新或按下F5Opera:在工具→首选项中完整清除它们的缓存,或按下Alt-F5Internet Explorer:按住Ctrl再点击刷新,或按下Ctrl-F5

/* 此处的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': "〕" }
                                                                   }
                                                     }, 
'~']
				}
			}
		} );
	} );
}
个人工具
分享到: 更多
名字空间
变换
动作
网站地图
暗黑破坏神 III
暗黑破坏神 II
暗黑破坏神
工具箱
编辑箱
关于暗黑百科