Diferencia entre revisiones de «MediaWiki:Guidedtour-tour-inicio.js»
Ir a la navegación
Ir a la búsqueda
Busca en cnbGuatemala con Google
Línea 1: | Línea 1: | ||
− | / | + | // Guided Tour to help users start editing |
− | + | ||
− | + | ( function ( window, document, $, mw, gt ) { | |
− | (function (window, document, $, mw, gt) { | + | gt.defineTour( { |
+ | name: 'GTA1', | ||
+ | steps: [ { | ||
+ | title: 'Upload your image', | ||
+ | description: 'Welcome to the Wiki Loves Monuments 2013 United States Upload Wizard.', | ||
+ | overlay: true, | ||
+ | buttons: [ { | ||
+ | action: 'next' | ||
+ | } ], | ||
+ | |||
+ | // shouldSkip is a general tool to skip a step based on their progress towards some goal. This is used to ensure this step will not be shown once they have started editing. | ||
+ | // shouldSkip always returns true to skip, or false otherwise. | ||
+ | shouldSkip: function() { | ||
+ | return gt.hasQuery( { action: 'edit' } ); | ||
+ | } | ||
+ | }, | ||
+ | { | ||
+ | title: 'Upload your file', | ||
+ | description: 'Follow the instructions on the screen to upload your file. When you are finished uploading, click 'next'.', | ||
+ | attachTo: '#p-participate', | ||
+ | position: 'right', | ||
+ | // Same as above. We plan to make this less repetitive in the future. | ||
+ | // shouldSkip is a general tool to skip a step based on their progress towards some goal. This is used to ensure this step will not be shown once they have started editing. | ||
+ | // shouldSkip always returns true to skip, or false otherwise. | ||
+ | shouldSkip: function() { | ||
+ | return gt.isPage( 'Special:ChangeEmail' ); | ||
+ | } | ||
− | + | }, | |
− | + | { | |
− | + | title: 'Confirm your email', | |
− | + | description: 'Please <a href="https://commons.wikimedia.org/wiki/Special:ChangeEmail">confirm your email</a>. Without it, we cannot contact you if you win. <a href="https://commons.wikimedia.org/wiki/Special:ChangeEmail">Click here to confirm your email.</a>', | |
− | + | attachTo: '#pt-userpage', | |
− | + | position: 'bottom', | |
− | + | closeOnClickOutside: false, | |
− | + | buttons: [ { | |
− | + | action: 'end' | |
+ | } ] | ||
+ | |||
+ | shouldSkip: function() { | ||
+ | return gt.isPage( 'Special:ChangeEmail' ); | ||
+ | } | ||
+ | }, | ||
− | + | } ); | |
− | + | ||
− | + | } (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }(window, document, jQuery, mediaWiki, mediaWiki.guidedTour)); |
Revisión del 17:29 8 ago 2016
// Guided Tour to help users start editing ( function ( window, document, $, mw, gt ) { gt.defineTour( { name: 'GTA1', steps: [ { title: 'Upload your image', description: 'Welcome to the Wiki Loves Monuments 2013 United States Upload Wizard.', overlay: true, buttons: [ { action: 'next' } ], // shouldSkip is a general tool to skip a step based on their progress towards some goal. This is used to ensure this step will not be shown once they have started editing. // shouldSkip always returns true to skip, or false otherwise. shouldSkip: function() { return gt.hasQuery( { action: 'edit' } ); } }, { title: 'Upload your file', description: 'Follow the instructions on the screen to upload your file. When you are finished uploading, click 'next'.', attachTo: '#p-participate', position: 'right', // Same as above. We plan to make this less repetitive in the future. // shouldSkip is a general tool to skip a step based on their progress towards some goal. This is used to ensure this step will not be shown once they have started editing. // shouldSkip always returns true to skip, or false otherwise. shouldSkip: function() { return gt.isPage( 'Special:ChangeEmail' ); } }, { title: 'Confirm your email', description: 'Please <a href="https://commons.wikimedia.org/wiki/Special:ChangeEmail">confirm your email</a>. Without it, we cannot contact you if you win. <a href="https://commons.wikimedia.org/wiki/Special:ChangeEmail">Click here to confirm your email.</a>', attachTo: '#pt-userpage', position: 'bottom', closeOnClickOutside: false, buttons: [ { action: 'end' } ] shouldSkip: function() { return gt.isPage( 'Special:ChangeEmail' ); } }, } ); } (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) );