"미디어위키:Guidedtour-tour-edituacouncilnotice.js"의 두 판 사이의 차이

카이스트 백과사전
둘러보기로 가기 검색하러 가기
잔글
잔글
22번째 줄: 22번째 줄:
 
onShow: gt.getPageAsDescription,
 
onShow: gt.getPageAsDescription,
 
attachTo: '#mw-content-text > div.mw-parser-output > div.mw-inputbox-centered > form > input.mw-ui-input.mw-ui-input-inline.createboxInput',
 
attachTo: '#mw-content-text > div.mw-parser-output > div.mw-inputbox-centered > form > input.mw-ui-input.mw-ui-input-inline.createboxInput',
position: 'bottom'
+
position: 'bottom',
 +
closeOnClickOutside: false,
 
})
 
})
 
.transition( function () {
 
.transition( function () {
if (gt.isEditing()) {
+
if (gt.isEditingWithVisualEditor()) {
 
return 'edit1';
 
return 'edit1';
 +
} else if (gt.isEditingWithWikitext()) {
 +
return 'switchToVisualEditor';
 
}
 
}
 
})
 
})
.back('intro');
+
.back('intro')
 +
.next('edit1');
 +
 +
tour.step({
 +
name: 'switchToVisualEditor',
 +
title: '시각편집기로 전환',
 +
description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/switchToVisualEditor',
 +
onShow: gt.getPageAsDescription,
 +
attachTo: '#content > div > div.oo-ui-toolbar.oo-ui-toolbar-position-top.ve-ui-toolbar.ve-ui-dir-inline-ltr.ve-ui-dir-block-ltr.ve-ui-targetToolbar.ve-ui-positionedTargetToolbar.ve-init-mw-desktopArticleTarget-toolbar.ve-init-mw-desktopArticleTarget-toolbar-open.ve-init-mw-desktopArticleTarget-toolbar-opened.oo-ui-toolbar-narrow > div > div.oo-ui-toolbar-actions > div > div.oo-ui-toolbar-bar > div.oo-ui-toolbar-tools > div.ve-ui-toolbar-group-editMode.oo-ui-widget.oo-ui-widget-enabled.oo-ui-toolGroup.oo-ui-iconElement.oo-ui-indicatorElement.oo-ui-popupToolGroup.oo-ui-listToolGroup.oo-ui-popupToolGroup-active > span > span.oo-ui-iconElement-icon.oo-ui-icon-edit.oo-ui-image-progressive',
 +
position: 'bottomLeft',
 +
})
 +
.next('edit1');
 
 
 
tour.step({
 
tour.step({
40번째 줄: 54번째 줄:
 
})
 
})
 
.next('edit2');
 
.next('edit2');
 +
 +
 
} ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );
 
} ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );

2020년 3월 11일 (수) 12:01 판

// 전체학생대표자회의와 중앙운영위원회의 회의 공고 문서를 작성하기 위한 Guided Tour입니다.
// Ref: https://www.mediawiki.org/wiki/Extension:GuidedTour/Write_an_on-wiki_tour
( function ( window, document, $, mw, gt ) {
	var tour = new gt.TourBuilder({
		// name of this tour
		name: 'edituacouncilnotice'
	});
	
	tour.firstStep({
		name: 'intro',
		title: '회의 공고 만들기',
		description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/intro',
		overlay: true,
		onShow: gt.getPageAsDescription
	})
	.next('creation1');
	
	tour.step({
		name: 'creation1',
		title: '회의 공고 문서 생성하기',
		description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/creation1',
		onShow: gt.getPageAsDescription,
		attachTo: '#mw-content-text > div.mw-parser-output > div.mw-inputbox-centered > form > input.mw-ui-input.mw-ui-input-inline.createboxInput',
		position: 'bottom',
		closeOnClickOutside: false,
	})
	.transition( function () {
		if (gt.isEditingWithVisualEditor()) {
			return 'edit1';
		} else if (gt.isEditingWithWikitext()) {
			return 'switchToVisualEditor';
		}
	})
	.back('intro')
	.next('edit1');
	
	tour.step({
		name: 'switchToVisualEditor',
		title: '시각편집기로 전환',
		description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/switchToVisualEditor',
		onShow: gt.getPageAsDescription,
		attachTo: '#content > div > div.oo-ui-toolbar.oo-ui-toolbar-position-top.ve-ui-toolbar.ve-ui-dir-inline-ltr.ve-ui-dir-block-ltr.ve-ui-targetToolbar.ve-ui-positionedTargetToolbar.ve-init-mw-desktopArticleTarget-toolbar.ve-init-mw-desktopArticleTarget-toolbar-open.ve-init-mw-desktopArticleTarget-toolbar-opened.oo-ui-toolbar-narrow > div > div.oo-ui-toolbar-actions > div > div.oo-ui-toolbar-bar > div.oo-ui-toolbar-tools > div.ve-ui-toolbar-group-editMode.oo-ui-widget.oo-ui-widget-enabled.oo-ui-toolGroup.oo-ui-iconElement.oo-ui-indicatorElement.oo-ui-popupToolGroup.oo-ui-listToolGroup.oo-ui-popupToolGroup-active > span > span.oo-ui-iconElement-icon.oo-ui-icon-edit.oo-ui-image-progressive',
		position: 'bottomLeft',
	})
	.next('edit1');
	
	tour.step({
		name: 'edit1',
		title: '회의 공고 문서 편집하기',
		description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/creation2',
		onShow: gt.getPageAsDescription,
		attachTo: '#bodyContent > div.oo-ui-widget.ve-ui-surface.ve-ui-surface-visual.ve-ui-mwSurface.ve-init-mw-target-surface.ve-ui-surface-dir-ltr > div.ve-ui-overlay-local.ve-ui-overlay > div:nth-child(2) > div.ve-ce-surface-highlights > div.ve-ce-surface-highlights-focused > div > div',
		position: 'left'
	})
	.next('edit2');
	
	
} ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );