MediaWiki:Vector.js
出自【暗黑百科】DiabloWiki_凯恩之角
(修订版本间的差异)
Spx (讨论 | 贡献)
(以内容“- →此处的JavaScript将加载于使用Vector皮肤的用户: jQuery(function() { if (wgUserVariant.indexOf('cn') != -1 || wgUserVariant.indexOf('sg') != -1 || ...”创建新页面)
下一版本→
(以内容“- →此处的JavaScript将加载于使用Vector皮肤的用户: jQuery(function() { if (wgUserVariant.indexOf('cn') != -1 || wgUserVariant.indexOf('sg') != -1 || ...”创建新页面)
下一版本→
在2011年5月15日 (日) 12:57所做的修订版本
/* 此处的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': "〕" } } }, '~'] } } } ); } ); }