Jump to content

MediaWiki:Guidedtour-tour-twa6.js

Nga Wikipedia, enciklopedia e lirë

Shënim: Pas ruajtjes së parapëlqimeve ose kryerjes së ndryshimet, për t'ju shfaqur dallimet duhet të pastroni ruajtësin (cache) e shfletuesit. Pastrimi i ruajtësit të shfletuesve bëhet duke shtypur në të njëjten kohë Ctrl+Shift+Reload për Mozilla/Safari/Konqueror ose ctrl+shift+r për IE ose Ctrl+f5 për Opera: F5.

// The Wikipedia Adventure Mission 6

( 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' : 'Mesazh i ri (simulim automatik si pjesë e [[WP:The Wikipedia Adventure|Aventurës në Wikipedia]])',
			'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: 'Click here to go back and make an edit',
                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: 'Kthehuni dhe bëni një redaktim',
                onclick: function() {
                        window.location.href = window.location.href +
"&veaction=edit";
                }
        } );
}

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

                //1
                title: 'Hyr drejt në të. ',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Le të shkojmë në faqen e diskutimit të artikullit ku GaiaGirl ka lënë një përmbledhje me fjalët e saj për Revistën Shkencë dhe Natyrë.<br><br>',
                onShow: gt.parseDescription,
                overlay: true,
                buttons: [ {
                        name: 'Shko në faqja e diskutimit të Tokës*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth', 'Wikipedia:TWA/Earth/Talk/2' , mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa6&step=2'); }           
                } ],
		        allowAutomaticOkay: false
 
        },  {
                //2
                title: 'Super!  Informacione të reja.',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Le ta shtojmë këtë tekst në artikull.<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#content.mw-body',
                position: 'bottom',
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/6/Start' ) + '?tour=twa6&step=1'          
                } , {
                        name: 'Shko në artikullin e Tokës',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=3'      
                } ],
                allowAutomaticOkay: false,
 
        },  {
                //3
                title: 'Shtyp Redakto.',
                description: '<br>Shtyp REDAKTO TEKSTIN BURIMOR që të mund të shtoni përmbajtjen e përmbledhur.<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:MyTalk/TWA/Earth' ) + '?tour=twa6&step=2'          
                } ],
                shouldSkip: function() {
                        return gt.hasQuery( { action: 'edit' } );
                }
 
        },  {

                //4
                title: 'Shtoje këtë!',
                description: '<br><small>Shkenca tregon se Toka është formuar rreth 4,5 miliardë vjet më parë.Organizmat që jetojnë në Tokë kanë ndryshuar plotësisht ajrin e saj (atmosferën); kjo quhet biosferë. 71% e sipërfaqes së Tokës është e mbuluar me oqeane me ujë të kripur.  Toka është i vetmi vend në Sistemin Diellor, ku dihet për momentin të ekzistoj uji i lëngshëm. Pjesa tjetër prej 29% përbëhet nga tokë shkëmbore në formën e kontinenteve dhe ishujve. Toka ndërvepron me objekte të tjera në Sistemin Diellor, veçanërisht Diellin dhe Hënën. Toka rrotullohet ose shkon rreth Diellit rreth një herë në çdo 365,25 ditë. Një rrotullim quhet një ditë dhe një orbitë rreth Diellit quhet një vit. Kjo është arsyeja pse ka 365 ditë në vit, por një ditë shtohet një herë në 4 vjet.</small><br><br>',
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
	            allowAutomaticOkay: false,
		        buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=3'          
                } , {
		        	    name: 'Added',
                        action: 'next',
                } ],

        },  {
                //5
                title: 'Përmbledhja e redaktimit, dhe Kryej Ndryshimet',
                description: '<br>Shto përmbledhjen e redaktimit, "Shtova informacione më të besueshme, asnjëanëse rreth historisë së tokës nga faqja e diskutimit".<br><br>Pastaj KRYEJ NDRYSHIMET kur të jeni gati.<br><br>',
	            attachTo: '#wpSave',
                position: 'bottomRight',
                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' ) + '?tour=twa6&step=4&action=edit'          
                } ],
                shouldSkip: function() {
                        return gt.isPostEdit();
                },
                buttons: postEditButtons

        },  {
                //6
                title: 'Hej shih...',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Një njoftim për një mesazh të ri sapo erdhi!</br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
	            allowAutomaticOkay: false,
	            buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=5&action=edit'          
                } , {
                        name: 'Kontrollo mesazhet tuaja*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/6' , mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa6&step=7'); }           
                } ],

        },  {
                //7
                title: 'Pyetje e mirë',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Orbita ime e brendshme po ndjen një dridhje.  Mendoj se keni edhe një mesazh tjetër...</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' ) + '?tour=twa6&step=6'          
                } , {
                        name: 'Rifresko faqen e diskutimit*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/7' , mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa6&step=8'); }           
                } ],

},  {
                //8
                title: 'Çfarë është një citim, ju kërkoni?',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div></div>Le të shkojmë në Tokë dhe ta gjejmë atë!<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:MyTalk/TWA' ) + '?tour=twa6&step=7'          
                } , {
                        name: 'Nisu drejt Tokës*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth', 'Wikipedia:TWA/Earth/cleanup' , mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=9'); }           
                } ],

} , {
                //9
                title: 'Çfarë është kjo gjë?',
                description: '<div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Kjo...ETIKETIMI PA REFERENCA...nuk duket edhe aq mirë.  Le të kontrollojmë faqen e diskutimit të shohim se çfarë do të thotë.',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#content.mw-body',
                position: 'bottom',
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa6&step=8'
                } , {
                        name: 'Çoje atë në diskutim*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth', 'Wikipedia:TWA/Earth/Talk/3' , mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa6&step=10'); }           
                } ],
                allowAutomaticOkay: false
				
} , {

                //10
                title: 'Përgjigju mesazhit të Taggy',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Në rregull, qëndro i qetë.... merr frymë thellë, merr frymëëë thellëëë, merr frymëëëëëë thellëëëëëë.<br><br>Çfarë duhet ti tregojmë Taggy-it që ata të dijnë se ju e kuptoni politikat e burimit të informacionit, dhe se ishit rrugës për të shtua atë burim informacioni (posa të mësonit se si)?<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#content.mw-body',
                position: 'bottom',
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=9'          
                } , {
                        name: 'Përgjigju mesazhit të Taggy-it!',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/6/Civil' ) + '?tour=twa6&step=11'
                        } ],
                allowAutomaticOkay: false

        },  {
                //11
                title: 'Sfidoni veten MË POSHTË...',
                description: 'Ndihmë: ju mund të mësoni po aq nga përgjigjja gabim sa edhe nga përgjigjja e saktë.  Dhe ju gjithmonë mund të provoni përsëri!',
                attachTo:'#contentSub',
                position: 'bottom',
                onShow: gt.parseDescription,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa6&step=10'          
                } ],
                overlay: false,
                closeOnClickOutside: false,
                allowAutomaticOkay: false

},  {
                //12
                title: 'Të lumtë',
                description: 'AFËSI E RE U FITUA:  <b>Medalja e Mirësjelljes</b><center>[[File:TWA badge 11.png|250px|link=]]</center><br>Rifresko faqen e diskutimit të Tokës.<br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/6/Civil' ) + '?tour=twa6&step=11'  
                }, {    
                        name: 'Rifresko*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA/Earth', 'Wikipedia:TWA/Earth/Talk/4' , mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa6&step=13'); }           
                } ],
                allowAutomaticOkay: false

}, {

                //13
                title: 'Ok, duhen Citime',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Të citosh një burim do të thotë - të thuash atë se ku e gjetët atë informacion për një artikull.<br><br> Një burim që përdoret për të mbështetur një informacion quhet referencë.<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#content.mw-body',
                position: 'bottom',
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Wikipedia:TWA/6/Start' ) + '?tour=twa6&step=12'  
                }, {    
                        name: 'Ndërfutje magjike*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/11template2' , mw.util.getUrl( 'Wikipedia:TWA/6/Start' ) + '?tour=twa6&step=14'); }
                } ],
                allowAutomaticOkay: false

} , {
                //14
                title: 'Si dhe pse citimet',
                description: '<br>Unë do të ju tregojnë se si të shtoni një referencë në artikull dhe si ta bëjnë këtë duke përdorur një citim nga teksti burimor.<br><br>Një citin paraqitet si një [numër] në tekstin e artikullit, dhe lidhet me referencën në fund.<br><br>Ne e bëjmë atë që lexuesit ta dinë se në cilën pjesë të artikullit një burim mbështetëse.<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
	            allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa6&step=13' 
                } , {        
                        name: 'Le ta bëjmë këtë',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=15'
                        } ],

        },  {
                //15
                title: 'Shtyp Redakto Tesktin Burimor',
                description: '<br>Shtyp REDAKTO TEKSTIN BURIMOR që ju të mund të shtoni një citim.<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( 'Wikipedia:TWA/6/Start' ) + '?tour=twa6&step=14' 
                } ],
                shouldSkip: function() {
                        return gt.hasQuery( { action: 'edit' } );
                }

        },  {
              
                //16
                title: 'Hapat e Citimit',
                description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Së pari kopjo citimin i cili përshkruan burimin.<br><br><b>Gnawledge, O\'penn. "Planeti Tokë në Bilancin e Historisë".  Revista Shkencë dhe Natyrë.  RevistaShdheN.al/Tokanëbilanc. 21 mars, 2013. Marrë më {{currentdate}}.</b><br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=15' 
                } , { 
                	    name: 'Copied',
                        action: 'next',
                        } ],

} , {
                //17
                title: 'Citoje atë',
                description: '<br>Vendose krusorin e mausit, pas pikës të fjalisë që doni të citoni një burim.  MOS e vendos referencën e kopjuar ende.<br><br>Tani , shtype butonin [[File:Toolbar_insert_reference.png]] në shiritin e veglave të redaktimit.  Këtu vendose referencën e kopjuar!<br><br>Pasi ta vendosni referencën e kopjuar, shtyp SHTO.<br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=16&action=edit' 
                } , { 
                	    name: 'Inserted',
                        action: 'next',
                        } ],

} , {
                //18
                title: 'Shto një REFLIST',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Për të shfaqur referencat, shto një REFLIST<br><br>Vendose krusoin e mausit në fund të përmbajtjes në kutinë e redaktimit.<br><br>Shkruaje: <b><nowiki>{{reflist}}</nowiki></b><br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=17&action=edit' 
                } , { 
                	    name: 'Reflist added!',
                        action: 'next',
                        } ],

} , {
                //19
                title: 'Largoje atë etiketën :)',
                description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Ju e zgjidhët problemin, prandaj le të shkojmë ta fshijmë etiketën për jo-referencim.<br><br>Shko, gjeje dhe fshije: <b><nowiki>{{Unreferenced}}</nowiki></b><br><br>',
                onShow: gt.parseDescription,
                overlay: false,
                attachTo: '#wpTextbox1', 
                position: 'bottomRight',
                closeOnClickOutside: false,
                allowAutomaticOkay: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=18&action=edit' 
                } , { 
                	    name: 'Removed!',
                        action: 'next',
                        } ],

} , {
                //20
                title: 'Përmbledhja e redaktimit dhe Kryej Ndryshimet',
                description: '<br>Ler një përmbledhje të redaktimeve, "Shtova një citim për një burim të besueshëm dhe e hoqa etiketën".<br><br>Pastaj KRYEJ NDRYSHIMET kur të jeni gati.<br><br>',
	            attachTo: '#wpSave',
                position: 'bottomRight',
                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' ) + '?tour=twa6&step=19&action=edit' 
                } ],
                shouldSkip: function() {
                        return gt.isPostEdit();
                },
                buttons: postEditButtons

} , {
                //21
                title: 'Punë e mrekullueshme!',
                description: 'AFTËSI TË REJA U FITUAN:  <b>Medalja Citues</b><center>[[File:TWA badge 12.png|250px|link=]]</center><br>Shihe ti atë! Gosh that gets me every time. Po marrë shumë krenari nga kjo referencë—mendoj nga referenca juaj. Si ndjeheni? Shpresoj se mirë. Duhet, sespse ju jeni duke mësuar. Ju po bëheni një redaktorë i madh! Ju më impresiononi mua. Ju keni filluar të zotëroni aftësitë redaktuese... politikat... komunikimin...referencat... lundrimin...<br>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
                buttons: [ {
                        name: '<big>←</big>',
                        action: 'externalLink',
                        url: mw.util.getUrl( 'Special:MyPage/TWA/Earth' ) + '?tour=twa6&step=20&action=edit' 
                } , { 
                        name: 'Çfarë ka më tej*',
                        onclick: function()  {  if(!mw.config.get('wgUserName')){  alert( "Ju lutem kyçu." );   return;   } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/12template2' , mw.util.getUrl( 'Wikipedia:TWA/6/End' ) + '?tour=twa6&step=22'); }
                } ],
                allowAutomaticOkay: false

} , {
                //22
                title: 'Misioni 6 u kompletua!',
                description: '<br>[[File:MacLeod, Kevin - Stringed Disco (short).ogg]]<br><b>Rrugëto në misionin 7, aftësitë tuaja na nevojiten përsëri!</b>',
                onShow: gt.parseDescription,
                overlay: false,
                closeOnClickOutside: false,
	            buttons: [ {
	            	    name: 'Congrats me!',
                        action: 'end'
                } ],
                allowAutomaticOkay: false
		         
}]
 
} );
 
} (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ) ;