"미디어위키:Guidedtour-tour-edituacouncilnotice.js"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
잔글 |
잔글 (gt.getPageAsDescription을 mw.guidedTour.WikitextDescription으로 교체) |
||
12번째 줄: | 12번째 줄: | ||
description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/intro', | description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/intro', | ||
overlay: true, | overlay: true, | ||
− | onShow: | + | onShow: mw.guidedTour.WikitextDescription |
}) | }) | ||
.next('creation1'); | .next('creation1'); | ||
20번째 줄: | 20번째 줄: | ||
title: '회의 공고 문서 생성하기', | title: '회의 공고 문서 생성하기', | ||
description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/creation1', | description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/creation1', | ||
− | onShow: | + | onShow: mw.guidedTour.WikitextDescription, |
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', | ||
39번째 줄: | 39번째 줄: | ||
title: '시각편집기로 전환', | title: '시각편집기로 전환', | ||
description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/switchToVisualEditor', | description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/switchToVisualEditor', | ||
− | onShow: | + | onShow: mw.guidedTour.WikitextDescription, |
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', | 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', | position: 'bottomLeft', | ||
49번째 줄: | 49번째 줄: | ||
title: '회의 공고 문서 편집하기', | title: '회의 공고 문서 편집하기', | ||
description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/creation2', | description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/creation2', | ||
− | onShow: | + | onShow: mw.guidedTour.WikitextDescription, |
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', | 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', | ||
position: 'left' | position: 'left' |
2020년 3월 12일 (목) 15:17 판
// 전체학생대표자회의와 중앙운영위원회의 회의 공고 문서를 작성하기 위한 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: mw.guidedTour.WikitextDescription
})
.next('creation1');
tour.step({
name: 'creation1',
title: '회의 공고 문서 생성하기',
description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/creation1',
onShow: mw.guidedTour.WikitextDescription,
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: mw.guidedTour.WikitextDescription,
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: mw.guidedTour.WikitextDescription,
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',
position: 'left'
})
.next('edit2');
} ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );