4번째 줄: |
4번째 줄: |
| var tour = new gt.TourBuilder({ | | var tour = new gt.TourBuilder({ |
| // name of this tour | | // name of this tour |
− | name: edituacouncilnotice | + | name: 'edituacouncilnotice' |
| }); | | }); |
| | | |
− | tour.firststep({ | + | tour.firstStep({ |
| name: 'intro', | | name: 'intro', |
− | title: 'Intro', | + | title: '회의 공고 만들기', |
− | description: 'Project:Guidedtour-tour-edituacouncilnotice/Intro', | + | description: '미디어위키:Guidedtour-tour-edituacouncilnotice.js/intro', |
| overlay: true, | | overlay: true, |
| onShow: gt.getPageAsDescription, | | onShow: gt.getPageAsDescription, |
− | buttons: [{ | + | closeOnClickOutside: false, |
− | action: 'end' | + | }) |
− | }] | + | .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-ce-surface.notranslate.ve-ce-surface-enabled.ve-ce-surface-focused > div.ve-ce-branchNode.ve-ce-documentNode.ve-ce-attachedRootNode.ve-ce-rootNode.mw-content-ltr.mw-parser-output > table.infobox.ve-ce-leafNode.ve-ce-focusableNode.ve-ce-mwTransclusionNode', |
| + | position: 'topRight', |
| + | closeOnClickOutside: false, |
| + | }) |
| + | .next('edit2'); |
| + | |
| + | // 재적 인원 표 채우기 |
| + | // 분류 검토하기 |
| + | |
| } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); | | } ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); |