"소도구:visual-editor-for-femiwiki.js" 문서에 대한 정보

기본 정보

표시 제목소도구:visual-editor-for-femiwiki.js
기본 정렬 키visual-editor-for-femiwiki.js
문서 길이 (바이트)6,575
이름공간 ID2300
이름공간소도구
문서 ID38193
문서 내용 언어en - English
문서 내용 모델자바스크립트
로봇에 의한 색인허용됨
문서를 주시하는 사용자 수0
이 문서를 최근에 방문한 주시하는 사용자 수최근의 편집을 주시하는 사용자가 있을 수도 없을 수도 있습니다
이 문서의 넘겨주기 수0
위키베이스 항목 ID없음

문서 보호

편집"gadgets-edit" 권한의 사용자만 허용 (무기한)
이동"gadgets-edit" 권한의 사용자만 허용 (무기한)
이 문서의 보호 기록을 봅니다.

편집 역사

문서 작성자페미위키 깃헙 가젯 봇 (토론 | 기여)
문서 작성 날짜2020년 1월 8일 (수) 17:01
마지막 편집자낙엽1124 (토론 | 기여)
마지막으로 편집한 날짜2022년 12월 25일 (일) 10:29
총 편집 수6
최근 편집 수 (지난 90일 이내)0
최근 기여자 수0

SEO 속성

설명

내용

문서 설명: (description)
This attribute controls the content of the description and og:description elements.
// (function (mw, $) { 'use strict'; /** * =r을 입력하면 출처 문단이 만들어지게 합니다. */ mw.libs.ve.addPlugin(function () { /** * @class AddReferencesListCommand */ var AddReferencesListCommand = function () { AddReferencesListCommand.parent.call( this, 'addReferencesList' // Command name ); }; OO.inheritClass(AddReferencesListCommand, ve.ui.Command); AddReferencesListCommand.prototype.execute = function (surface) { // surface.execute.apply( // surface, // ["format", "convert"].concat(["heading", { level: 2 }]) // ); surface .getModel() .getFragment() .insertContent( [ { type: 'heading', attributes: { level: 2, }, }, ] .concat('출처'.split('')) .concat({ type: '/heading', }) .concat({ type: 'mwReferencesList', attributes: { listGroup: 'mwReference/', refGroup: '', isResponsive: mw.config.get('wgCiteResponsiveReferences'), }, }) .concat({ type: '/mwReferencesList' }) ) .collapseToEnd() .select(); return true; }; // class ends ve.ui.commandRegistry.register(new AddReferencesListCommand()); ve.ui.sequenceRegistry.register( new ve.ui.Sequence( 'addReferencesList', // Sequence name 'addReferencesList', // Command name '=r', 2 ) ); ve.ui.commandHelpRegistry.register('insert', 'addReferencesList', { sequences: ['addReferencesList'], label: '출처 문단 넣기', }); // 문서 옵션의 분류 버튼 클릭시 addCategories 커맨드를 실행하게 합니다 ve.ui.toolFactory.registry.referencesList.static.commandName = 'addReferencesList'; }); /** * =n을 입력하면 부연 설명 문단이 만들어지게 합니다. */ mw.libs.ve.addPlugin(function () { /** * @class AddNotesSectionCommand */ var AddNotesSectionCommand = function () { // Parent constructor AddNotesSectionCommand.parent.call( this, 'addNotesSection' // Command name ); }; OO.inheritClass(AddNotesSectionCommand, ve.ui.Command); AddNotesSectionCommand.prototype.execute = function (surface) { // surface.execute.apply( // surface, // ["format", "convert"].concat(["heading", { level: 2 }]) // ); surface .getModel() .getFragment() .insertContent( [ { type: 'heading', attributes: { level: 2, }, }, ] .concat('부연 설명'.split('')) .concat({ type: '/heading', }) .concat({ type: 'mwTransclusionBlock', attributes: { mw: { parts: [ { template: { target: { href: '틀:부연 설명', wt: '부연 설명', }, params: {}, }, }, ], }, }, }) .concat({ type: '/mwTransclusionBlock' }) ) .collapseToEnd() .select(); return true; }; // class ends ve.ui.commandRegistry.register(new AddNotesSectionCommand()); ve.ui.sequenceRegistry.register( new ve.ui.Sequence( 'addNotesSection', // Sequence name 'addNotesSection', // Command name '=n', 2 ) ); ve.ui.commandHelpRegistry.register('insert', 'addNotesSection', { sequences: ['addNotesSection'], label: '부연 설명 문단 넣기', }); /** * MediaWiki UserInterface references list tool. * * @class * @extends ve.ui.FragmentWindowTool * @constructor * @param {OO.ui.ToolGroup} toolGroup * @param {Object} [config] Configuration options */ var NotesSectionTool = function VeUiMWReferencesListDialogTool() { NotesSectionTool.super.apply(this, arguments); }; OO.inheritClass(NotesSectionTool, ve.ui.FragmentWindowTool); NotesSectionTool.static.name = 'notesSection'; NotesSectionTool.static.group = 'object'; NotesSectionTool.static.icon = 'speechBubbles'; NotesSectionTool.static.title = '부연 설명 목록'; NotesSectionTool.static.modelClasses = [ve.dm.MWReferencesListNode]; NotesSectionTool.static.commandName = 'addNotesSection'; ve.ui.toolFactory.register(NotesSectionTool); }); /** * Alt+Shift+A 입력시 분류가 입력되도록 합니다. */ mw.libs.ve.addPlugin(function () { ve.ui.triggerRegistry.register('meta/categories', { pc: new ve.ui.Trigger('alt+shift+a'), }); ve.ui.commandHelpRegistry.register('other', 'categories', { trigger: 'meta/categories', label: '분류', }); }); /** * 기존에 '* '를 입력한 경우에 덧붙여 - '을 입력한 경우에도 점 목록으로 인식합니다. */ function addDashSequence() { if (window.addDashSequence) { return; } window.addDashSequence = true; ve.ui.sequenceRegistry.register( new ve.ui.Sequence( 'dash', 'bulletWrapOnce', [{ type: 'paragraph' }, '-', ' '], 2 ) ); ve.ui.commandHelpRegistry.register('formatting', 'listBullet', { sequences: ['dash'], }); } mw.libs.ve.addPlugin(addDashSequence); // for VisualEditor mw.loader.using(['ext.visualEditor.core']).done(function () { addDashSequence(); // for Stuructured Discussion }); /** * 아이폰과 안드로이드에서 [[미디어위키:Visualeditor-browserwarning]] 경고가 * 뜨지 않게 합니다. * https://github.com/femiwiki/mediawiki/issues/262 */ mw.libs.ve.addPlugin(function () { try { ve.init.mw.DesktopArticleTarget.static.compatibility.supportedList[ 'iphone' ] = null; ve.init.mw.DesktopArticleTarget.static.compatibility.supportedList[ 'android' ] = null; } catch (e) { console.log('Error', e.stack); } }); })(mediaWiki, jQuery); //
Extension:WikiSEO의 정보입니다.