Difference between revisions of "MediaWiki:Guidedtour-tour-gettingStarted.js"

From GATE
Line 65: Line 65:
 
.back( 'Step03' );
 
.back( 'Step03' );
  
tour.step( {
 
name: 'Step05',
 
title: 'Homepage box',
 
description: 'In this box you have a preview of some of the projects hosted on GATE: <i>Monumenta</i> and <i>Collections</i> are two sections which contains several projects; the <i>Lexicon of Modernity</i> is an editorial initiative connected to the concepts traceable in the documents published on GATE. You can access and find more information about all of these projects by clicking on the box sections. ',
 
attachTo: '#home-sections',
 
position: 'right',
 
overlay: false
 
 
} )
 
.next( 'Step06' )
 
.back( 'Step04' );
 
 
// aggiungere qui uno o due step per la board
 
// aggiungere qui uno o due step per la board
 
 
 
tour.step( {
 
tour.step( {
name: 'Step06',
+
name: 'Step05',
 
title: 'Homepage board',
 
title: 'Homepage board',
 
description: 'Below the box, you can see what we called the GATE board, a space where some of the GATE contents are promoted. ',
 
description: 'Below the box, you can see what we called the GATE board, a space where some of the GATE contents are promoted. ',
Line 87: Line 76:
  
 
} )
 
} )
.next( 'Step07' )
+
.next( 'Step06' )
.back( 'Step05' );
+
.back( 'Step04' );
 
 
 
tour.step( {
 
tour.step( {
name: 'Step07',
+
name: 'Step06',
 
title: 'Homepage board',
 
title: 'Homepage board',
 
description: 'The board has four box: Featured Page; Focus on; News; Collaborate with us.',
 
description: 'The board has four box: Featured Page; Focus on; News; Collaborate with us.',
Line 99: Line 88:
  
 
} )
 
} )
.next( 'Step08' )
+
.next( 'Step07' )
.back( 'Step06' );
+
.back( 'Step05' );
  
 
// da qui uno riordinare il numero degli step
 
// da qui uno riordinare il numero degli step

Revision as of 10:12, 15 April 2020

/*
 * Guided Tour to test guided tour features.
 */
// Copy the next line into the start of your tour.
( function ( window, document, $, mw, gt ) {

	// Declare a variable for use later
	var pageName = 'Help:Guided tours',
		tour;

	tour = new gt.TourBuilder( {
		/*
		 * This is the name of the tour.  It must be lowercase, without any hyphen (-) or
		 * period (.) characters.
		 *
		 * The page where you save an on-wiki tour must be named
		 * MediaWiki:Guidedtour-tour-{name}.js , in this example MediaWiki:Guidedtour-tour-mytest.js
		 */
		name: 'gettingStarted'
	} );

	// Information defining each tour step

	// This tour shows a central overlay at the start of the tour.
	// Guiders appear in the center if another position is not specified.
	// To specify the first step of the tour, use .firstStep instead of .step
	tour.firstStep( {
		name: 'Step01',
		title: 'GATE getting started tour',
		description: 'Dear user, <br>thanks for visiting us! GATE is a very wide portal where users can do a lot of wonderful stuff. Some of these are pretty easy, others are more complicated. To become familiar with GATE contents and functions, we strongly suggest to any new user to get this tour. It will take just two minutes!',
		overlay: true
	} )
	.next( 'Step02' );

	tour.step( {
		name: 'Step02',
		title: 'Tour tips',
		description: 'Before starting, just few tips about the tour. You can move among the steps using the Previous and Next buttons at the bottom of each card. You can also quit the tour using the X button on the top-right. <br> Now let\'s start the tour!',
		overlay: true

	} )
	.next( 'Step03' )
	.back( 'Step01' );

	tour.step( {
		name: 'Step03',
		title: 'Homepage',
		description: 'This is the GATE homepage. ',
		overlay: true

	} )
	.next( 'Step04' )
	.back( 'Step02' );
	
	tour.step( {
		name: 'Step04',
		title: 'Homepage box',
		description: 'In this box you have a preview of some of the projects hosted on GATE: <i>Monumenta</i> and <i>Collections</i> are two sections which contains several projects; the <i>Lexicon of Modernity</i> is an editorial initiative connected to the concepts traceable in the documents published on GATE. You can access and find more information about all of these projects by clicking on the box sections. ',
		attachTo: '#home-sections',
		position: 'right',
		overlay: false

	} )
	.next( 'Step05' )
	.back( 'Step03' );

// aggiungere qui uno o due step per la board
	
		tour.step( {
		name: 'Step05',
		title: 'Homepage board',
		description: 'Below the box, you can see what we called the GATE board, a space where some of the GATE contents are promoted. ',
		attachTo: '#board-title',
		position: 'left',
		overlay: false

	} )
	.next( 'Step06' )
	.back( 'Step04' );
	
tour.step( {
		name: 'Step06',
		title: 'Homepage board',
		description: 'The board has four box: Featured Page; Focus on; News; Collaborate with us.',
		attachTo: '#board-title',
		position: 'Left',
		overlay: false

	} )
	.next( 'Step07' )
	.back( 'Step05' );

// da qui uno riordinare il numero degli step

tour.step( {
		name: 'Step06',
		title: 'Projects description',
		description: 'Each project has its own homepage and the larger ones, like the <i>Monumenta</i> projects, can have several sub-sections. E.g. the <i>Monumenta Kircheri</i>, dedicated to the jesuit Athanasius Kircher, are divided in three sections: Correspondence, Works and <i>Bibliographia Kircheriana</i>, each one introduced by specific information.',
		overlay: true

	} )
	.next( 'Step07' )
	.back( 'Step05' );

tour.step( {
		name: 'Step07',
		title: 'Top-bar search',
		description: 'From the top-bar, there is also the possibility to launch a query on the whole GATE database by using this search form. Search is performed in the full-text transcriptions of the documents, in their metadata and in the pages about people, subjects etc. created by GATE users.',
		attachTo: '#searchform',
		position: 'bottomLeft',
		overlay: false

	} )
	.next( 'Step08' )
	.back( 'Step06' );
	
tour.step( {
		name: 'Step08',
		title: 'GATE policy',
		description: 'Everyone can use GATE database for his own research and read all the documents and content pages available. Anyway GATE is a collaborative project, which benefits from the contribution of many users. If you want to collaborate with GATE, helping us in the transcription and edition of the documents, you need an account. Use this [[Contanct us|form]] to ask for an account, we will provide all the information to start your collaboration.',
		overlay: true,
		action: 'wikiLink', page: 'Name of page' 
	} )
	.next( 'Step09' )
	.back( 'Step07' );
// aggiungere tast che linka al form, poi un altro box finale

// The following should be the last line of your tour.
} ( window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );