본문으로 이동
사이드바 토글
검색
개인 도구
계정 만들기
로그인
둘러보기
대문
요즘 있었던 일
최근 바뀜
임의의 문서로
사용자 모임
마당
편집 안내
편집지침
미디어위키 도움말
도구
여기를 가리키는 문서
가리키는 글의 최근 바뀜
사용자 기여
기록 목록
사용자 그룹을 보기
특수 문서 목록
문서 정보
사용자:Ellif/common.js 문서 원본 보기
사용자 문서
토론
English
읽기
원본 보기
역사 보기
더 보기
읽기
원본 보기
역사 보기
←
사용자:Ellif/common.js
문서 편집 권한이 없습니다. 다음 이유를 확인해주세요:
요청한 명령은 다음 권한을 가진 사용자에게 제한됩니다:
사용자
.
여기에는 다른 사용자의 개인 설정이 포함되어 있기 때문에 이 자바스크립트 문서를 편집할 수 없습니다.
문서의 원본을 보거나 복사할 수 있습니다.
var customizeToolbar = function () { /* Your code goes here */ $( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'characters', 'pages': { 'emoticons': { 'layout': 'characters', 'label': 'Emoticons', 'characters': "‘’": { "action": { "type": "encapsulate", "options": { "pre": "‘", "post": "’" } } }, "“”": { "action": { "type": "encapsulate", "options": { "pre": "“", "post": "”" } } }, "’": "’", "·": "·", "〈〉": { "action": { "type": "encapsulate", "options": { "pre": "〈", "post": "〉" } } }, "「」": { "action": { "type": "encapsulate", "options": { "pre": "「", "post": "」" } } }, "『』": { "action": { "type": "encapsulate", "options": { "pre": "『", "post": "』" } } }, "《》": { "action": { "type": "encapsulate", "options": { "pre": "《", "post": "》" } } }, "—": { "titleMsg": "special-characters-title-emdash", "action": { "type": "replace", "options": { "peri": "—", "selectPeri": false } } }, "⸺": { "titleMsg": "special-characters-title-two-emdash", "action": { "type": "replace", "options": { "peri": "⸺", "selectPeri": false } } }, "△": "△", "▲": "▲", "□": "□", "■": "■", "¹": "¹", "²": "²", "³": "³", "←": "←", "→": "→", "↑": "↑", "↓": "↓", "↘": "↘", "↗": "↗", "⇐": "⇐", "⇒": "⇒", "⇘": "⇘", "⇗": "⇗", "☆": "☆", "★": "★", "㈜": "㈜", "틀:del": { "action": { "type": "encapsulate", "options": { "pre": "{{del|", "post": "}}" } } }, "\u003Cdel\u003E": { "action": { "type": "encapsulate", "options": { "pre": "\u003Cdel\u003E", "post": "\u003C/del\u003E" } } }, "틀:s": { "action": { "type": "encapsulate", "options": { "pre": "{{s|", "post": "}}" } } } }; /* Check if view is in edit mode and that the required modules are available. Then, customize the toolbar … */ if ( [ 'edit', 'submit' ].indexOf( mw.config.get( 'wgAction' ) ) !== -1 ) { mw.loader.using( 'user.options' ).then( function () { // This can be the string "0" if the user disabled the preference ([[phab:T54542#555387]]) if ( mw.user.options.get( 'usebetatoolbar' ) == 1 ) { $.when( mw.loader.using( 'ext.wikiEditor' ), $.ready ).then( customizeToolbar ); } } ); }
이 문서에서 사용한 틀:
틀:Del
(
원본 보기
)
틀:S
(
원본 보기
)
사용자:Ellif/common.js
문서로 돌아갑니다.