|
|
第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': "〕" }
| |
- | }
| |
- | },
| |
- | '~']
| |
- | }
| |
- | }
| |
- | } );
| |
- | } );
| |
- | }
| |