มีเดียวิกิ:Guidedtour-tour-twa7.js

จากวิกิพีเดีย สารานุกรมเสรี

หมายเหตุ: หลังเผยแพร่ คุณอาจต้องล้างแคชเว็บเบราว์เซอร์ของคุณเพื่อดูการเปลี่ยนแปลง

  • ไฟร์ฟอกซ์ / ซาฟารี: กด Shift ค้างขณะคลิก Reload หรือกด Ctrl-F5 หรือ Ctrl-R (⌘-R บนแมค)
  • กูเกิล โครม: กด Ctrl-Shift-R (⌘-Shift-R บนแมค)
  • อินเทอร์เน็ตเอกซ์พลอเรอร์ และ Edge: กด Ctrl ค้างขณะคลิก Refresh หรือกด Ctrl-F5
  • โอเปร่า: กด Ctrl-F5
// The Wikipedia Adventure Mission 7

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

//automatic api:edit function to send yourself messages 
function sendMessage( targetPage, msgPage, linkTo ) {
	var api = new mw.Api();
	api.get( {
		'action' : 'query',
		'titles' : msgPage,
		'prop'   : 'revisions|info',
		'intoken' : 'edit',
		'rvprop' : 'content',
		'indexpageids' : 1
	} ).done( function (result) {
		result = result.query;
		var page = result.pages[result.pageids[0]];
		var text = page.revisions[0]['*'];
		api.post( {
			'action' : 'edit',
			'title' : targetPage,
			'appendtext' : "\n" + text,
			'summary' : 'สารใหม่ (สร้างอัตโนมัติโดย [[WP:The Wikipedia Adventure|The Wikipedia Adventure]])',
			'token' : page.edittoken
		} ).done( function () {
			window.location.href = linkTo;
		} );
	} );
}

// Fail gracefully post-save but not postedit
var postEditButtons = [];
if ( mw.config.get( 'wgAction' ) === 'view' && !gt.isPostEdit() ) {
        postEditButtons.push( {
                name: 'คลิกที่นี่เพื่อย้อนกลับไปแก้ไข',
                onclick: function() {
                        window.location.href = new mw.Uri().extend( { action: 'edit' } ).toString();
                }
        } );
}

// Fail gracefully post-save but not postedit for visual editor
var postEditButtonsVisual = [];
if ( mw.config.get( 'wgAction' ) === 'view' && !gt.isPostEdit() ) {
        postEditButtonsVisual.push( {
                name: 'ย้อนกลับ',
                shouldLog: true,
                onclick: function() {
                        window.location.href = window.location.href +
"?veaction=edit";
                }
        } );
}


gt.defineTour( {
        name: 'twa7',
        shouldLog: true,
        steps: [ {

                //1
                title: 'มาดูกันว่ามีอะไรใหม่! ',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>เราจะเริ่มที่บทความโลก<br><br>',
                overlay: true,
                onShow: gt.parseDescription,
                buttons: [ {
                        name: 'มุ่งหน้าสู่โลก*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "กรุณาล็อกอิน" );   return;   } sendMessage( 'User:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth/2', 'Wikipedia:TWA/Earth/4' , mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=2'); }           
                } ],
		        allowAutomaticOkay: false,
 
        },  {
                //2
                title: 'ว้าว ช่างเป็นการเพิ่มเติมที่น่าสนใจ!',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>มันเกิดขึ้นได้อย่างไร<br><br>',
                onShow: gt.parseDescription,
                attachTo: '#content.mw-body',
                position: 'bottom',
                overlay: false,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/1/Start' ) + '?tour=twa7&step=1'          
                } , {
                        name: 'ดูวิธีในประวัติหน้า',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/Earth/History/2' ) + '?tour=twa7&step=3'
 
                } ],
                allowAutomaticOkay: false,
 
        },  {
                //3
                title: 'ประวัติของโลก',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>นี่คือการร่วมมือกันในบทความโลก<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#content.mw-body',
                position: 'bottom',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=2'          
                } , {
                        name: 'เรียบร้อยดีใช่ไหม หืม',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=4'      
                } ],
               
 
        },  {

                //4
                title: 'วิกิ วิกิ!',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>ชื่อวิกิพีเดีย มาจากภาษาฮาวาย วิกิ แปลว่า รวดเร็ว<br><br> วิกิทำให้ผู้คนจากทั่วโลกสามารถร่วมมือกันได้ในเวลาเดียวกัน และเมื่อผู้คนทำงานร่วมกัน สิ่งมหัศจรรย์ก็เกิดขึ้นได้ในที่ที่ยอดเยี่ยม<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
	            allowAutomaticOkay: false,
		        buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/Earth/History/2' ) + '?tour=twa7&step=3'          
                } , {
                        name: 'แต่มัน"ได้ผล"อย่างไร',
                        action: 'next'      
                } ],



        },  {
                //5
                title: 'วิกิพีเดียได้ผล',
                description: '<br>สิ่งที่เปิดขนาดนี้ยังน่าเชื่อถือได้อย่างไร<br><br>วิกิพีเดียได้ผลเพราะการแก้ไขต่าง ๆ ผ่านการตรวจสอบของคอมพิวเตอร์และมนุษย์<br><br> "บอต" อัตโนมัติเปฏิเสธและจัดลำดับการแก้ไขที่น่าสงสัย และมีคนอีกนับพันที่คอยจับตาการแก้ไขใหม่ และคนอ่านนับล้านที่คอยจับตาทุกสิ่งที่ดูใช้ไม่ได้<br><br> คนส่วนใหญ่อยากช่วย และมีคนอย่างทำสิ่งดีมากกว่าสิ่งแย่มาก จึงทำให้มันได้ผล',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                 buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=4'          
                } , {
                        name: 'กฎของ Linus',
                        action: 'next'      
                } ],

        },  {
                //6
                title: 'กฎของ Linus',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>มีงานวิจัยแสดงว่าวิกิพีเดียมีความถูกต้องเทียบเท่ากับสารานุกรมอื่น แต่ความผิดพลาดของวิกิพีเดียได้รับการแก้ไขเร็วกว่า<br><br>เราเป็นเครื่องยืนยันหลักการของนักเขียนโปรแกรมที่ว่า:<br><br><b>"With enough eyeballs, all bugs are shallow"</b>.<br><br> พูดอีกอย่างหนึ่งคือ <i>เราทุกคน</i> ทำให้ <i>ทุกสิ่ง</i> เป็นไปได้</br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
	            allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=5'          
                } , {
                        name: 'นำโลกสู่อีกระดับ',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=7'      
                } ],	

},  {
                //7
                title: 'โลกยังต้องการการตกแต่งเพิ่มเติม',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>กระบวนการความร่วมมือกันช่วยเพิ่มเนื้อหาและสีสันให้กับโลก แม้ว่าจะดูดีแล้ว แต่ว่าโลกก็ยังต้องเพิ่มเติมอีกหลายอย่าง<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
	            allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=6'          
                } , {
                        name: 'ตกแต่งโลก',
                        action: 'next'
                } ],	


} , {
                //8
                title: 'บทความควรจะดูดี',
                description: '<br><div align="left">[[File:TWA_guide_right_top.png|link=]]</div>มาทำให้เป็นจริงกัน เริ่มด้วยการสร้างส่วน (section)<br><br>เมื่อบทความยาวขึ้น เราจะแบ่งเนื้อหาออกเป็นส่วน ๆ ทำให้อ่านได้ง่ายและดูเรียบร้อย สารบัญจะถูกสร้างอัตโนมัติถ้ามีหัวเรื่องย่อยเพียงพอ<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=7'          
                } , {
                	    name: 'เพื่มหัวเรื่องย่อย!',
                        action: 'next',
                        } ],
                allowAutomaticOkay: false
				
} , {

                //9
                title: 'กดแก้ไข',
                description: '<br>คลิกแก้ไขเพื่อเพิ่มส่วน<br><br>',
                attachTo: '#ca-edit',
                position: 'bottom',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=8'          
                } ],
                shouldSkip: function() {
                        return gt.hasQuery( { action: 'edit' } );
                }

        },  {
                //10
                title: 'เพิ่มพาดหัวส่วน',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>ขั้นแรก เน้นชื่อเรื่องส่วน "รูปทรงและโครงสร้าง"<br><br>แล้วคลิก ขั้นสูง ในแถบเครื่องมือเพื่อแสดงรายการเลือก พาดหัว คุณต้องการใช้หัวเรื่องลำดับที่ 2<br><br>ทำเช่นเดียวกันกับหัวเรื่องอื่น ๆ :<br>1) รูปทรงและโครงสร้าง<br>2) แผ่นเปลือกโลก <br>3) พื้นผิว<br>4) บรรยากาศ<br>5) สภาพอากาศ ภูมิอากาศ และวัฎจักรของน้ำ <br>6) วงโคจรและการหมุน <br>7) อ้างอิง<br><br>',
                overlay: false,
                onShow: gt.parseDescription,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=9'          
                } , {
                	    name: 'เพิ่มหัวเรื่องแล้ว',
                        action: 'next',
                        } ],

 },  {
                //11
                title: 'บันทึกสำหรับอนาคต',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>ในภาษาอังกฤษเราจะใช้อักษรตัวพิมพ์ใหญ่เฉพาะตัวแรกในหัวเรื่องเท่านั้น ยกเว้นหากเป็นคำนามเฉพาะ<br><br>คุณสามารถมีหัวเรื่องย่อยในลำดับรองลงไปโดยกดที่หัวเรื่องหลักลำดับที่ 3 หรือ 4 หรือ 5 ซึ่งจะอยู่ภายใต้หัวเรื่องลำดับน้อยกว่า<br><br>',
                overlay: false,
                onShow: gt.parseDescription,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=10&action=edit'          
                } , {
                	    name: 'เข้าใจแล้ว',
                        action: 'next',
                        } ],

} , {
                //12
                title: 'คำอธิบายอย่างย่อและบันทึก',
                description: '<br>บอกให้คนอื่นรู้ว่าคุณ "เพิ่มพาดหัวส่วน" แล้ว<br><br>เมื่อพร้อมแล้วก็กดบันทึก',
	            attachTo: '#wpSave',
                position: 'bottom',
                autoFocus: 'yes',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=11&action=edit'          
                }],
                shouldSkip: function() {
                        return gt.isPostEdit();
                },
                buttons: postEditButtons

} , {
                //13
                title: 'ต่อไป',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>บทความดูดีขึ้นเยอะ แม้จะมีเพียงการจัดรูปแบบอย่างง่าย<br><br>เรามาเชื่อมโยงโลกกับส่วนอื่น ๆ ของจักรวาลด้วยวิกิลิงก์กันดีกว่า เช่นเดียวกับที่คุณสร้างลิงก์ในหน้าผู้ใช้ของคุณ<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=12&action=edit'          
                }, {
                	    name: 'ทำวิกิลิงก์',
                        action: 'next',
                        } ],
                allowAutomaticOkay: false
				
} , {

                //14
                title: 'กดแก้ไข',
                description: '<br>กดแก้ไขเพื่อเพิ่มวิกิลิงก์<br><br>',
                attachTo: '#ca-edit',
                position: 'bottom',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=13'          
                }],
                shouldSkip: function() {
                        return gt.hasQuery( { action: 'edit' } );
                }

        },  {
                //15
                title: 'เพิ่มวิกิลิงก์',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>นี่เป็นรายการคำและวลีสำคัญที่จะเพิ่มวิกิลิงก์<i>ในข้อความย่อหน้า</i> ของแต่ละส่วน:<br><br>*รูปทรงและโครงสร้าง: <b>circumference</b><br>*แผ่นเปลือกโลก: <b>ธรณีแปรสัณฐาน</b> (เฉพาะการเอ่ยถึงครั้งแรก)<br>*พื้นผิว: <b>การกลายเป็นเมือง</b><br>*บรรยากาศ: <b>มีเทน</b><br>*สภาพอากาศ ภูมิอากาศ และวัฎจักรของน้ำ: <b>การพาความร้อน</b><br>*วงโคจรและการหมุน: <b>แขนนายพราน</b> <br><br>เน้นข้อความทีละครั้งในบทความนี้ แล้วคลิก [[File:Vector_toolbar_insert_link_button.png]] ปุ่มกดบนแถบเครื่องมือและคลิก แทรกลิงก์<br><br>',
                overlay: false,
                onShow: gt.parseDescription,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=14&action=edit'          
                }, {
                	    name: 'เพิ่มวิกิลิงก์',
                        action: 'next',
                        } ],

 },  {
                //16
                title: 'อีกข้อความสำหรับอนาคต',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>เราเพิ่มวิกิลิงก์ให้คำที่เกี่ยวข้องและสำคัญในบทความเพื่อให้ผู้อื่นเรียนรู้เพิ่มเติมเกี่ยวกับคำเหล่านี้ คุณไม่ต้องการวิกิลิงก์ทุกอย่าง เฉพาะมโนทัศน์ที่พิเศษและเชื่อมโยงโดยตรงเท่านั้น<br><br>',
                overlay: false,
                onShow: gt.parseDescription,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=15&action=edit'          
                }, {
                	    name: 'เข้าใจแล้ว',
                        action: 'next',
                        } ],

} , {
                //17
                title: 'คำอธิบายอย่างย่อและบันทึก',
                description: '<br>ให้เขารู้ว่าคุณ "เพิ่มวิกิลิงก์ให้คำที่เกี่ยวข้องและมีเอกลักษณ์แล้ว"<br><br>แล้วบันทึกเมื่อคุณพร้อม',
	            attachTo: '#wpSave',
                position: 'bottom',
                autoFocus: 'yes',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=16&action=edit'          
                }],
                shouldSkip: function() {
                        return gt.isPostEdit();
                },
                buttons: postEditButtons

} , {
                //18
                title: 'ดีมาก!',
                description: 'ได้เครื่องมือใหม่:  <b>ตราผู้ลิงก์วิกิ</b><center>[[File:TWA badge 12.png|250px|link=]]</center><br>คนจะง่วนเรียนรู้เกี่ยวกับโลกและหัวเรื่องที่เกี่ยวข้องทั้งวัน<br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=17&action=edit'          
                } , {
                        name : 'ทีนี้โลกต้อง...*',
                        onclick: function() {sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/13template2' , mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=19'); } 
                } ],
                allowAutomaticOkay: false

} , { 

                //19
                title: 'หืม...',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>คุณรู้ไหมว่าบทความนี้ขาดอะไรไป ภาพที่ชัดเจนและเกี่ยวข้องจะทำให้ผู้อ่านดื่มด่ำกับโบนัสการศึกษาเมื่อเขาอ่านบทความ เราจะหาภาพได้จากที่ใดบ้าง<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=18'          
                } , {
                	    name: 'อิสระ',
                        action: 'next',
                        } ],
                allowAutomaticOkay: false
	

        },  {
                //20
                title: 'สิ่งที่เรามีในคอมมอนส์',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>รูปถูกเก็บบนเว็บไซต์พี่น้องของวิกิพีเดีย<br>วิกิมีเดียคอมมอนส์</b><br><br> เห็นไหม วิกิพีเดียเป็นส่วนหนึ่งของ <b>ขบวนการวิกิพีเดีย</b> ซึ่งเป็นการรวมโครงการ 18 โครงการซึ่งทั้งหมดล้วนมุ่งสนใจความรู้เสรีในด้านต่าง ๆ ไม่เฉพาะในภาษาไทย แต่ยังมีภาษาอื่นอีกหลายร้อยภาษาด้วย!<br><br><b>มูลนิธิวิกิมีเดีย</b> ในซานฟรานซิโกพัฒนาเทคโนโลยีของเรา จัดการการระดมทุนของเรา และสนับสนุนชุมชนด้วยเงินสนับสนุนและโครงการอื่น<br><br>',
                overlay: true,
                onShow: gt.parseDescription,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=19'          
                } , {
                	    name: 'เรียบร้อย!',
                        action: 'next',
                        } ],

 },  {
                //21
                title: 'ขุมทรัพย์คอมมอนส์',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>คอมมอนส์มีการรวมภาพ ไฟล์เสียงและวิดีทัศน์ขนาดมหึมา และมันยังเติบโตทุกวัน... กว่า 16 ล้านไฟล์!<br><br>ทุกคนสามารถใช้ ดัดแปรหรือขายภาพเหล่านี้ได้อย่างเสรี! เหมือนกับเนื้อหาของวิกิพีเดีย :)<br><br> ลองดูหน้าพูดคุยของโลกกัน อาจมีบางคนให้คำแนะนำเรื่องรูปกับคุณ<br><br>',
                overlay: true,
                onShow: gt.parseDescription,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=20'          
                } , {
                        name: 'ดูที่หน้าพูดคุย*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "โปรดล็อกอิน." );   return;   } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth', 'Wikipedia:TWA/Earth/Talk/5' , mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa7&step=22'); }           
                } ],
                allowAutomaticOkay: false,

},  {
                //22
                title: 'การเพิ่มภาพ',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div> โอเค กลับไปที่โลกกันและเพิ่มรูปที่ดีเหล่านี้  ฉันจะแสดงวิธีทำให้<br><br>',
                overlay: false,
                onShow: gt.parseDescription,
                attachTo: '#content.mw-body',
                position: 'bottom',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=21'          
                } , {
                        name: 'เพิ่มภาพ',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=23'      
                } ],             

} , {

                //23
                title: 'กดแก้ไข',
                description: '<br>กดแก้ไขเพื่อเพิ่มรูปภาพ<br><br>',
                attachTo: '#ca-edit',
                position: 'bottom',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=22'          
                } ],
                shouldSkip: function() {
                        return gt.hasQuery( { action: 'edit' } );
                }

} , {
                //24
                title: 'ลองเพิ่มรูปภาพดูสิ มันง่ายมาก ๆ!',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>เริ่มแรก คัดลอกชื่อไฟล์: <b>The Blue Marble.jpg</b><br><br> ทีนี้ คลิกเมาส์ของคุณใต้พาดหัวส่วนแรก (รูปทรงและโครงสร้าง)<br><br> แล้วคลิก [[File:Vector_toolbar_insert_image_button.png]] ด้านบน <i>ซ้าย</i> ของแถบเครื่องมือที่คล้ายต้นไม้ในยามอาทิตย์ตก<br><br> สุดท้ายนี้ วางในกล่องชื่อไฟล์และแทรกรูป<br><br>',
                overlay: false,
                onShow: gt.parseDescription,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=23'          
                } , {
                	    name: 'เพิ่มรูปแรกแล้ว',
                        action: 'next',
                        } ],

} , {

                //25
                title: 'รูปอื่นอีก',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>ใช้ภาพที่เหลือจาก GaiaGirl คัดลอกแต่ละชื่อไฟล์และแทรกลงในบทความด้วยปุ่มภาพ ทำไปทีละภาพ ใต้แต่ละพาดหัวส่วนของบทความ (ยกเว้นอ้างอิง):<br><br>Bachalpseeflowers.jpg<br>Sunset in El Porto, California (8074300769).jpg <br>Polarlicht 2.jpg <br>Red eyed tree frog edit2.jpg <br>Schoolgirls in Bamozai.JPG<br><br>',
                overlay: false,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                onShow: gt.parseDescription,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=24&action=edit'          
                } , {
                	    name: 'เพิ่มรูปทั้งหมดแล้ว!',
                        action: 'next',
                        } ],

} , {
                //26
                title: 'คำอธิบายอย่างย่อและบันทึก',
                description: '<br>ให้เขารู้ว่าคุณ "เพิ่มรูปธรรมชาติของโลก ชีวิตและการสรรค์สร้างแล้ว"<br><br>แล้วบันทึกเมื่อคุณพร้อม<br><br>',
	            attachTo: '#wpSave',
                position: 'bottom',
                autoFocus: 'yes',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=25&action=edit'          
                }],
                shouldSkip: function() {
                        return gt.isPostEdit();
                },
                buttons: postEditButtons

},  {
                //27
                title: 'ว้าว',
                description: 'ได้เครื่องมือใหม่:  <b>ตราผู้เขียนภาพประกอบ</b><center>[[File:TWA badge 12.png|250px|link=]]</center><br>ดูสิ่งที่คุณทำสิ โลกที่คุณสร้างช่างสวยงาม<br>',
                overlay: false,
                onShow: gt.parseDescription,
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=26&action=edit'          
                } , {
                        name: 'ดื่มด่ำกับมัน*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Please login." );   return;   } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/14template2' , mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=28'); } 
                } ],

},  {
                //28
                title: 'คุณ',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>คุณได้เพิ่มระดับใหม่สู่พีระมิดแห่งความรู้ในวิหารแห่งโลก ต้นเรดวูดในป่าแห่งวัฒนธรรมและอารยธรรม ชิงช้าสวรรค์ในเทศกาลรื่นเริงแห่งมนุษยชาติ<br><br>คุณได้ไอเดีย...! เฮ้ และคุณได้สารใหม่!<br><br>',
                overlay: true,
                onShow: gt.parseDescription,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth/2' ) + '?tour=twa7&step=27'          
                } , {
                        name: 'ดูสารของคุณ*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Please login." );   return;   } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/8' , mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa7&step=29'); }           
                } ],
                allowAutomaticOkay: false,

},  {
                //29
                title: ':-)',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div> รู้สึกดีมากกกกกที่เป็นที่สังเกต รู้จัก และยอมรับสำหรับสิ่งที่คุณทำ<br><br>พวกเราเรืยกสิ่งนั้น <b>WikiLove</b> และเมื่อคุณเห็นบางคนทำสิ่งที่ยิ่งใหญ่ คุณควรบอกเขา! ง่าย ๆ เพียงคุณคลิก  HEART ที่ด้านบนหน้าผู้ใช้คนใดก็ได้<br><br> ฉันชอบที่นี่ ฉันหวังว่าคุณรู้สึกเหมือนกัน ฉันภูมิใจในตัวคุณ และฉันว่าคุณพร้อมแล้ว<br><br>',
                overlay: false,
                onShow: gt.parseDescription,
                attachTo: '#content.mw-body',
                position: 'bottom',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/7/Start' ) + '?tour=twa7&step=28'          
                } , {
                        name: 'ไปสำรวจกัน*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Please login." );   return;   } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/15template2' , mw.util.getUrl( 'Wikipedia:TWA/7/End' ) + '?tour=twa7&step=30'); }           
                } ],

} , {
                //30
                title: 'The Wikipedia Adventure เริ่มแล้ว',
                description: '<div align="left">[[File:TWA_guide_left_top.png|link=]]</div>คุณสามารถเปลี่ยนโลกได้ ไปสร้างโลกที่ดีกว่า ฉันจะพบคุณที่นั่น!<div align="right">[[File:TWA_guide_right_top.png|link=]]</div>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: true,
	            buttons: [ {
	        	        name: 'ยินดีกับตัวเองหน่อย!!',
                        action: 'end'
                } ],
                allowAutomaticOkay: false
		       
}]

} );
 
} (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ) ;