MediaWiki:Guidedtour-tour-edu.js
Μετά την αποθήκευση πρέπει να καθαρίσετε την κρυφή μνήμη (cache) του browser σας για να δείτε τις αλλαγές: Σε Chrome, Firefox, Safari, Internet Explorer και Edge: Κρατήστε πατημένο το ⇧ Shift και κάντε κλικ στο κουμπί Ανανέωση στην μπάρα εργαλείων.
// Copy the next two lines into your tour.
( function ( window, document, $, mw, gt ) {
// Declare a variable for use later
var pageName = 'Education Program:Αριστοτέλειο Πανεπιστήμιο Θεσσαλονίκης/Μαθηματικό (2014)';
gt.defineTour( {
/*
* 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: 'edu',
/*
* Information defining each tour step, in order.
*/
steps: [ {
/*
* Show overlay at start of tour
*/
// Note that for on-wiki tours, we use title and description with the actual text.
// The title appears in the title bar of the guider.
title: 'Περιήγηση στη σελίδα του Μαθηματικού',
// The description appears in the body
description: 'Αυτή είναι η κεντρική σελίδα δραστηριοτήτων για την εργασία σας στην Βικιπαίδεια. Αυτός ο οδηγός θα σας δείξει τα βασικά στοιχεία της και ενέργειες που πρέπει να κάνετε.',
// This specifies that the guider appears in the center of the screen
overlay: true,
// This means there is just the okay button, which will go to
// the next step unless the user ends the tour.
buttons: [ {
action: 'next'
} ]
}, {
/*
* Callout of left menu
*/
title: 'Εγγραφή',
description: 'Από αυτό το κουμπί μπορείτε να κάνετε εγγραφή εφόσον έχετε το διακριτικό εγγραφής. Εναλλακτικά μπορείτε να πατήσετε στο σύνδεσμο που σας έχει δοθεί αλλού.',
// This positions the guider next to a page element, in this
// case the portal link (which is "Community portal" on English
// Wikipedia, but varies by site).
// The string is a jQuery selector. "#n-portal" means the HTML
// element with this id attribute, and "a" means an a, or link,
// element inside that.
attachTo: '#ca-enroll a',
// This means the guider shows to the right of the Community Portal link
position: 'right',
buttons: [ {
action: 'next'
} ]
}, {
title: 'Κατάλογος λημμάτων',
description: 'Εδώ υπάρχει κατάλογος λημμάτων από όπου μπορείτε να επιλέξετε αυτό που θα αναπτύξετε. Καταχωρήστε τον ελληνικό του τίτλο δίπλα στο όνομα χρήστη σας, στον κατάλογο που θα δούμε μετά.',
attachTo: '#artbar',
position: 'bottomRight',
// This means the description will be parsed as wikitext before being shown.
onShow: gt.parseDescription,
buttons: [ {
action: 'next'
} ]
}, {
title: 'Κατάλογος χρηστών',
description: 'Εδώ υπάρχει κατάλογος χρηστών και λογικά και το δικό σας όνομα χρήστη. Καταχωρήστε τον ελληνικό τίτλο του λήμματος που επιλέξατε δίπλα στο όνομα χρήστη σας.',
attachTo: '#studentstable',
position: 'topRight',
buttons: [ {
action: 'next'
} ]
}, {
/*
* Test out mediawiki description pages
*/
title: 'Καλή επιτυχία!',
// In this case, we are putting a page name here, rather than text directly.
description: 'Ο οδηγός τελείωσε. Αν χρειαστείτε βοήθεια, απευθυνθείτε στους δικτυακούς εθελοντές ή τη σελίδα συζήτησης της άσκησης.',
overlay: true,
buttons: [ {
// This makes a button which acts like a wikilink to 'Help:Guided tours/guider'
name: 'Τέλος',
onclick: function() {
window.location = mw.util.getUrl(pageName);
return false;
}
}, {
// This makes the okay button on this step end the tour.
action: 'end'
} ]
} ]
} );
// The following should be the last line of your tour.
} (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );