MediaWiki:Guidedtour-tour-twa7.js

// The Wikipedia Adventure Mission 7

( function ( window, document, $, mw, gt ) {

//automatic api:edit function to send yourself messages function sendTalkMessage( targetPage, msgPage, linkTo, overwrite, isTalkPost) { if(!mw.config.get('wgUserName')) { alert( "Please login." ); return; }   var api = new mw.Api; api.get( {       'action' : 'query',        'titles' : msgPage+'|'+targetPage,        'prop'   : 'revisions',        'meta'   : 'tokens',        'type'   : 'csrf',        'rvprop' : 'content',        'indexpageids' : 1    } ).done( function (result) {        result = result.query;        var page = result.pages[result.pageids[1]];        var text = page.revisions[0]['*'];        text = text.replaceAll(" ","");        if (result.pageids[0] > 0) {            var targetSrc = result.pages[result.pageids[0]];            var srcText = targetSrc.revisions[0]['*'];            if (!overwrite) {            	// Check for duplicate talk messages with only the first 20 characters in case the messages subst into something different            	if (isTalkPost && srcText.includes(text.substring(0, 20))) {        			// Don't send duplicate badges/talk posts        			window.location.href = linkTo;        			return; } else if (srcText.includes(text)) { // Check for duplicate badges literally window.location.href = linkTo; return; }           	if (isTalkPost) { // Preserve the banner for talk posts text = srcText.replace("  ","") + "\n" + text + "   "; } else { // Otherwise just add for badges text = srcText + "\n" + text; }          }        }        api.post( {            'action' : 'edit',            'title' : targetPage,            'text' : text,            'summary' : 'New Message (simulated automatically as part of The Wikipedia Adventure)',            'token' : result.tokens.csrftoken        } ).done( function  {        	window.location.href = linkTo;        } ); } ); }

var tour = new gt.TourBuilder( {       name: 'twa7', }); var steps = [{ //1               title: 'Let\'s see what\'s new! ',               description: new gt.WikitextDescription(' TWA_guide_right_top.png We\'re starting off right at the Earth article.  '), overlay: true, buttons: [ { name: 'Head to Earth*', onclick: function {sendTalkMessage( 'User:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth/2', 'Wikipedia:TWA/Earth/4', mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=2', true, true); } } ],		       allowAutomaticOkay: false, }, {                //2                title: 'Wow! What vibrant additions!', description: new gt.WikitextDescription(' TWA_guide_left_top.png How on Earth did *that* happen?  '), attachTo: '#content.mw-body', position: 'bottom', overlay: false, closeOnClickOutside: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Wikipedia:TWA/1/Start' ) + '?tour=twa7&step=1' }, {                       name: 'Find out how in the page History', action: 'externalLink', url: mw.util.getUrl( 'Wikipedia:TWA/Earth/History/2' ) + '?tour=twa7&step=3' } ],               allowAutomaticOkay: false, }, {                //3                title: 'History of Earth', description: new gt.WikitextDescription(' TWA_guide_left_top.png This is what collaboration on Earth looks like.  '), overlay: false, attachTo: '#content.mw-body', position: 'bottom', closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=2' }, {                       name: 'Pretty neat, huh?', action: 'externalLink', url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=4' } ],       },  {

//4               title: 'Wiki Wiki!', description: new gt.WikitextDescription('  The name Wikipedia is based on the Hawaiian word Wiki, which means *quick*.  Wikis let people collaborate from all across the globe at the same time, and when people work together amazing things happen at an awesome pace.  '), overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Wikipedia:TWA/Earth/History/2' ) + '?tour=twa7&step=3' }, {                       name: 'But how does it "work"?', action: 'next' } ],

}, {                //5                title: 'Wikipedia Works', description: new gt.WikitextDescription(' How does something so open remain reliable?  Wikipedia works because changes go through a virtual filter of intelligent-computer and human review.  Automated "bots" reject and rank suspicious edits.  Then thousands of people are constantly scouring new changes, and millions of readers keep an eye out for anything that seems off.  Most people want to help, and there are many more who want to do good than bad.  That\'s how it works.'), overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ { name: 'Linus\' Law?', action: 'next' } ],

}, {                //6                title: 'Linus\' Law', description: new gt.WikitextDescription('  Research has shown that Wikipedia is just as accurate as other encyclopedias, but its errors get fixed *faster*.  We are living proof of the coders\' motto that:  "With enough eyeballs, all bugs are shallow".  In other words, all of us make anything possible.  '), overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ { name: 'Take Earth to the next level', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=7' } ],

}, {                //7                title: 'Earth Needs to Sparkle', description: new gt.WikitextDescription('  This collaborative process added so much stellar content to Earth, but Earth is still looking a bit—well, it lacks *pizazz*  '), overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=6' }, {                       name: 'Spruce up Earth', action: 'next' } ],

}, {               //8                title: 'Articles should look great, too.', description: new gt.WikitextDescription('  Let\'s make that happen, starting with sections.  As an article gets longer, we break the text into sections to make it more pleasant and easy to read. A table of contents will magically appear if there are enough sections.  '), overlay: false, closeOnClickOutside: false, back: true, buttons: [ { name: 'Add some section magic!', action: 'next', } ],               allowAutomaticOkay: false }, {

//9               title: 'Click edit', description: new gt.WikitextDescription(' Click EDIT so you can add sections. '), attachTo: '#ca-edit', position: 'bottom', overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [], skip: "vefork", hooks: "ve.activationComplete", }, {                //10                title: 'Add section headings', description: new gt.WikitextDescription(' First, highlight the section title "Shape and structure".  Then Click PARAGRAPH in the toolbar to show the HEADING menu.  You want to use HEADING for the standard header level.  Do the same for EACH of the section titles: 1) Shape and structure 2) Tectonic plates 3) Surface 4) Atmosphere 5) Weather, climate, and water cycle 6) Orbit and rotation 7) References  '),                closeOnClickOutside: false,                allowAutomaticOkay: false,                overlay: false,                attachTo: "#bodyContent",                position: 'leftTop',                buttons: [ {                        name: ' ← ',                        action: 'externalLink',                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=9'                          }, {                	    name: 'Added headings',                        action: 'next', } ],

}, {                //11                title: 'A note for the future', description: new gt.WikitextDescription(' We only capitalize the first word of a section heading, unless it\'s a proper noun.  Also, you can have sections within sections by selecting a sub-heading (so Sub-Heading 1 would go inside heading, Sub-Heading 2 would go inside Sub-Heading 1, and so on)  Now click PUBLISH CHANGES.'), closeOnClickOutside: false, allowAutomaticOkay: false, overlay: false, attachTo: "#bodyContent", position: 'leftTop', back: true, skip: function(transitionEvent) { return transitionEvent.type === gt.TransitionEvent.MW_HOOK && transitionEvent.hookName == "ve.saveDialog.stateChanged"; },               hooks: "ve.saveDialog.stateChanged"

}, {               //12                title: 'Edit summary and Publish', description: new gt.WikitextDescription(' Let them know that you, "Added section headings". Then PUBLISH CHANGES when you\'re ready.'), attachTo: "#footer", position:"bottom", overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: 'Go back', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=11&veaction=edit'

} ],               skip: gt.isPostEdit, }, {               //13                title: 'Keep going', description: new gt.WikitextDescription(' That looks better already just with some simple formatting.  Now let\'s connect Earth to the rest of the universe with some WIKILINKS to other articles, like the ones you used on your userpage bio..  '), overlay: false, closeOnClickOutside: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=11&veaction=edit' }, {               	    name: 'Wikilink it', action: 'next', } ],               allowAutomaticOkay: false }, {               //14                title: 'Click edit', description: new gt.WikitextDescription(' Click EDIT so you can add wikilinks. '), attachTo: '#ca-edit', position: 'bottom', overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, skip: "vefork", hooks: "ve.activationComplete" }, {                //15                title: 'Add wikilinks', description: new gt.WikitextDescription(' Here\'s a list of key words and phrases to wikilink inside the paragraph text of each section.  You can do them all, or just a few...  *Shape and structure: circumference *Tectonic plates: plate tectonics (just the first mention) *Surface: urbanisation *Atmosphere: methane *Weather, climate, and water cycle: convection *Orbit and rotation: Orion Arm  Highlight one at a time in the article, and click the  button on the toolbar and then click DONE.  '), overlay: false, attachTo: "#bodyContent", position: 'leftTop', closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=14' }, {               	    	name: 'Wikilinks added', action: 'next', }               ],

}, {                //16                title: 'Another note for the future', description: new gt.WikitextDescription(' We add wikilinks to relevant and important terms in an article so people can learn more about those terms. You don\'t want to Wikilink *everything*, just the special and directly connected concepts.  Now click PUBLISH CHANGES to continue.'), overlay: false, attachTo: "#bodyContent", position: 'leftTop', closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [], skip: function(transitionEvent) { return transitionEvent.type === gt.TransitionEvent.MW_HOOK && transitionEvent.hookName == "ve.saveDialog.stateChanged"; },               hooks: "ve.saveDialog.stateChanged" }, {               //17                title: 'Edit summary and Publish', description: new gt.WikitextDescription(' Let them know that you, "Added wikilinks to relevant and unique terms". Then PUBLISH CHANGES when you\'re ready.'), attachTo: "#footer", position:"bottom", overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: 'Go back', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=16&veaction=edit' } ],               skip: function(transitionEvent) { // Can't use gt.isPostEdit here since it still things we're postedit from the previous save return transitionEvent.type === gt.TransitionEvent.MW_HOOK && transitionEvent.hookName == "postEdit"; } }, {               //18                title: 'Great job!', description: new gt.WikitextDescription('NEW TOOL EARNED: WikiLinker Badge   People will be busy all day learning about Earth and its related subjects. '), overlay: false, closeOnClickOutside: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=16&veaction=edit' }, {                       name : 'Now Earth needs...*', onclick: function {sendTalkMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/13template2', mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=19', false, false); } } ],               allowAutomaticOkay: false }, {                //19                title: 'Hmm...', description: new gt.WikitextDescription(' You know what this article is missing? A few vivid and relevant images to give readers an immersive and educational bonus as they read the article.  Where could we get some?  '), overlay: false, closeOnClickOutside: false, back: true, buttons: [ { name: 'Free as in freedom', action: 'next', } ],               allowAutomaticOkay: false

}, {                //20                title: 'What we have in Commons', description: new gt.WikitextDescription(' Images are stored on Wikipedia\'s sister site Wikimedia Commons .  You see, Wikipedia is part of the Wikimedia movement, a collection of projects that all focus on free knowledge in different ways. And not just in English, but in hundreds of other languages, too!  The Wikimedia Foundation in San Francisco develops our technology, handles our fundraising, and supports the community with grants and other programs.  '), overlay: true, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ { name: 'Neat!', action: 'next', } ],

}, {                //21                title: 'The treasures of the Commons', description: new gt.WikitextDescription(' Commons has an enormous collection of images, audio files, and video, and it\'s growing every day... over 100 million files!  These images are free for anyone to use, modify, or even sell! Just like Wikipedia\'s content :)  Let\'s check the Earth talk page. Maybe someone has some image suggestions for you. '),               overlay: true,                closeOnClickOutside: false,                back: true,                buttons: [ {                        name: 'Check out Talk*',                        onclick: function  {  sendTalkMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth', 'Wikipedia:TWA/Earth/Talk/5', mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa7&step=22', false, true); }                           } ],                allowAutomaticOkay: false,

}, {                //22                title: 'Adding images', description: new gt.WikitextDescription(' Ok, let\'s go back to Earth and add some of these great images.  I\'ll show you how.  '), overlay: false, attachTo: '#content.mw-body', position: 'bottom', closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=21' }, {                       name: 'Add \'em', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=23' } ],

}, {

//23               title: 'Click edit', description: new gt.WikitextDescription(' Click EDIT so you can add those images. '), attachTo: '#ca-edit', position: 'bottom', overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=22' } ],               skip: "vefork", hooks: "ve.activationComplete" }, {               //24                title: 'How to Image. It\'s easy!', description: new gt.WikitextDescription(' First, COPY the filename: The Blue Marble.jpg  Now click your mouse beneath the first section heading (Shape and structure)  Then click open the INSERT menu of the toolbar and click the the " Images and Media" entry.  Last, PASTE into the filename box, click on the image you want once it loads.  Then click USE THIS IMAGE and finally INSERT to add the image to the article. '), closeOnClickOutside: false, allowAutomaticOkay: false, overlay: false, attachTo: "#bodyContent", position: 'leftTop', buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=23' }, {               	    name: 'Added the first image', action: 'next', } ],

}, {

//25               title: 'More image beauty', description: new gt.WikitextDescription(' Use the rest of the images from GaiaGirl, copying each filename and then inserting it into the article, one at a time, under each section heading of the article (except for References):  Tectonic plates (empty).svg Global View of the Arctic and Antarctic.jpg Top of Atmosphere.jpg HydrologicalCycle1.png North season.jpg  When you\'re done, click PUBLISH CHANGES. '), overlay: false, attachTo: "#bodyContent", position: 'leftTop', closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ ], skip: function(transitionEvent) { return transitionEvent.type === gt.TransitionEvent.MW_HOOK && transitionEvent.hookName == "ve.saveDialog.stateChanged"; },               hooks: "ve.saveDialog.stateChanged" }, {               //26                title: 'Edit summary and Publish', description: new gt.WikitextDescription(' Let them know that you, "Added an image to each section". Then PUBLISH CHANGES when you\'re ready.  '), attachTo: "#footer", position:"bottom", overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: 'Go back', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=24&veaction=edit' } ],               skip: gt.isPostEdit }, {                //27                title: 'Wow', description: new gt.WikitextDescription('NEW TOOL EARNED: Illustrator Badge   Take a look at what you\'ve done. What a beautiful Earth you\'ve created. '), overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=25&action=edit' }, {                       name: 'Soak it in*', onclick: function { sendTalkMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/14template2', mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=28', false, false); } } ],

}, {                //28                title: 'You.', description: new gt.WikitextDescription(' You added a new level to the pyramid of knowledge in the temple of Earth. A redwood tree in the forest of culture and civilization. A ferris-wheel at the carnival of humanity...  You get the idea...!  Hey, and you have a new message!  '), overlay: true, closeOnClickOutside: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=27' }, {                       name: 'Check your messages*', onclick: function {  sendTalkMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/8', mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa7&step=29', false, true); } } ],               allowAutomaticOkay: false,

}, {                //29                title: ':-)',                description: new gt.WikitextDescription('  It feels gooooood to be noticed, acknowledged, and recognized for your contributions. We call that WikiLove, and when you see someone doing something great, you should tell them! It\'s easy if you just click the icon at the top of any user\'s page. I like it here. I hope you do, too. I\'m proud of you. And I think you\'re ready. '),               overlay: false,                attachTo: '#content.mw-body',                position: 'bottom',                closeOnClickOutside: false,                allowAutomaticOkay: false,                buttons: [ {                        name: ' ← ',                        action: 'externalLink',                        url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=28'                          }, {                        name: 'Go Explore*',                        onclick: function  {  sendTalkMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/15template2' , mw.util.getUrl( 'Wikipedia:TWA/7/End' ) + '?tour=twa7&step=30', false, false); }                           } ],

}, {               //30                title: 'The Wikipedia Adventure BEGINS', description: new gt.WikitextDescription(' You can change the world.  Go make a better Earth.  I\'ll see you there!  '), overlay: false, closeOnClickOutside: true, buttons: [ { name: 'CONGRATS ME!!', action: 'end' } ],               allowAutomaticOkay: false }]; var sourceEditorStepOverrides = { 10: {				title: 'Add section headings', description: new gt.WikitextDescription(' First, highlight the section title "Shape and structure".  Then Click ADVANCED in the toolbar to show the HEADING menu.  You want to use Heading LEVEL 2.  Do the same for EACH of the section titles: 1) Shape and structure 2) Tectonic plates 3) Surface 4) Atmosphere 5) Weather, climate, and water cycle 6) Orbit and rotation 7) References  '),                overlay: false,                attachTo: '#wpTextbox1',                 position: 'bottomRight',                closeOnClickOutside: false,                allowAutomaticOkay: false,                buttons: [ {                        name: ' ← ',                        action: 'externalLink',                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=9'                          }, {                	    name: 'Added headings',                        action: 'next', } ],	}, 11: {		       title: 'A note for the future', description: new gt.WikitextDescription(' We only capitalize the first word of a section heading, unless it\'s a proper noun.  Also, you can have sections within sections by selecting a higher level Heading (so Level 3 would go inside Level 2)  '), overlay: false, attachTo: '#wpTextbox1', position: 'bottomRight', closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ { name: 'Got it', action: 'next', } ],	}, 12: {               title: 'Edit summary and Publish', description: new gt.WikitextDescription(' Let them know that you, "Added section headings". Then PUBLISH when you\'re ready.'), attachTo: '#wpSave', position: 'bottomRight', autoFocus: 'yes', overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ ], skip: gt.isPostEdit }, 15: {               title: 'Add wikilinks', description: new gt.WikitextDescription(' Here\'s a list of key words and phrases to wikilink inside the paragraph text of each section.  You can do them all, or just a few...  *Shape and structure: circumference *Tectonic plates: plate tectonics (just the first mention) *Surface: urbanisation *Atmosphere: methane *Weather, climate, and water cycle: convection *Orbit and rotation: Orion Arm  Highlight one at a time in the article, and click the  button on the toolbar and then click INSERT LINK.  '), overlay: false, attachTo: '#wpTextbox1', position: 'bottomRight', closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=14' }, {               	    name: 'Wikilinks added', action: 'next', } ],	}, 16: {		       title: 'Another note for the future', description: new gt.WikitextDescription(' We add wikilinks to relevant and important terms in an article so people can learn more about those terms. You don\'t want to Wikilink *everything*, just the special and directly connected concepts.  '), overlay: false, attachTo: '#wpTextbox1', position: 'bottomRight', closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ { name: 'Got it', action: 'next', } ],	}, 17: {		       title: 'Edit summary and Publish', description: new gt.WikitextDescription(' Let them know that you, "Added wikilinks to relevant and unique terms". Then PUBLISH when you\'re ready.'), attachTo: '#wpSave', position: 'bottomRight', autoFocus: 'yes', overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [], skip: gt.isPostEdit }, 24: {		       title: 'How to Image. It\'s easy!', description: new gt.WikitextDescription(' First, COPY the filename: The Blue Marble.jpg  Now click your mouse beneath the first section heading (Shape and structure)  Then Click the  on the top left of the toolbar.  Last, PASTE into the filename box and INSERT the image.  '), overlay: false, attachTo: '#wpTextbox1', position: 'bottomRight', closeOnClickOutside: false, allowAutomaticOkay: false, buttons: [ { name: ' ← ', action: 'externalLink', url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=23' }, {               	    name: 'Added the first image', action: 'next', } ],	}, 25: {		       title: 'More image beauty', description: new gt.WikitextDescription(' Use the rest of the images from GaiaGirl, copying each filename and then inserting it into the article with the IMAGE button, one at a time, under each section heading of the article (except for References):  Tectonic plates (empty).svg Global View of the Arctic and Antarctic.jpg Top of Atmosphere.jpg HydrologicalCycle1.png North season.jpg  '), overlay: false, attachTo: '#wpTextbox1', position: 'bottomRight', closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [ { name: 'All images added!', action: 'next', } ],	}, 26: {		       title: 'Edit summary and Publish', description: new gt.WikitextDescription(' Let them know that you, "Added an image to each section". Then PUBLISH when you\'re ready.  '), attachTo: '#wpSave', position: 'bottomRight', autoFocus: 'yes', overlay: false, closeOnClickOutside: false, allowAutomaticOkay: false, back: true, buttons: [], skip: gt.isPostEdit } }; var stepBuilders = []; var sStepBuilders = []; function makeSkip(target, query) { return function(event) { if (query(event)) { return target; }	}; } function makeVeSkip(target1, target2) { return function(transitionEvent) { // Can't use gt.isEditingWithVisualEditor here because there are sometimes multiple VE events on the same page without a reload if (transitionEvent.type === gt.TransitionEvent.MW_HOOK && transitionEvent.hookName == "ve.activationComplete") { return target1; } else if (gt.isEditingWithWikitext) { return target2; } 	}; } for (var i = 0; i < steps.length; i++) { var step = steps[i]; step.allowAutomaticNext = false; step.name = (i+1).toString; var stepBuilder; if (i == 0) { stepBuilder = tour.firstStep(step); } else { stepBuilder = tour.step(step); }

stepBuilders[i] = stepBuilder; if (sourceEditorStepOverrides[i]) { var sStep = sourceEditorStepOverrides[i]; sStep.allowAutomaticNext = false; sStep.name = i.toString+"src"; sStepBuilders[i-1] = tour.step(sStep); } } for (var j = 0; j < steps.length; j++) { if (steps[j].hooks) { stepBuilders[j].listenForMwHooks(steps[j].hooks); }	if (steps[j].skip) { if (steps[j].skip == "vefork") { stepBuilders[j].transition(makeVeSkip(stepBuilders[j+1], sStepBuilders[j+1])); } else { stepBuilders[j].transition(makeSkip(stepBuilders[j+1], steps[j].skip)); }	}	if (sourceEditorStepOverrides[j] && sourceEditorStepOverrides[j].skip) { sStepBuilders[j-1].transition(makeSkip(sStepBuilders[j] || stepBuilders[j], sourceEditorStepOverrides[j].skip)); }	if (j > 0) { if (steps[j].back) { stepBuilders[j].back(stepBuilders[j-1]); }		if (sStepBuilders[j-1] && sStepBuilders[j-2] && sourceEditorStepOverrides[j].back) { sStepBuilders[j-1].back(sStepBuilders[j-2]); }	}	if (j < steps.length - 1) { stepBuilders[j].next(stepBuilders[j+1]); if (sStepBuilders[j] && sStepBuilders[j+1]) { sStepBuilders[j].next(sStepBuilders[j+1]); }	} } } (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ) ;