MediaWiki:Guidedtour-tour-twa2.js
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 2
( 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: 'Kliko këtu që të ktheheni dhe bëni një redaktim',
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: 'Kthehu',
onclick: function() {
window.location.href = window.location.href +
"&veaction=edit";
}
} );
}
gt.defineTour( {
name: 'twa2',
shouldLog: true,
steps: [ {
//1
title: 'Mision 2 sapo filloj!',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Kënaqësi t\'ju shoh përsëri. Në këtë mision ne do të komunikojmë me redaktorët e tjerë.<br><br>',
onShow: gt.parseDescription,
overlay: true,
closeOnClickOutside: false,
buttons: [ {
name: 'Let\'s dive in',
action: 'next',
} ],
allowAutomaticOkay: false
}, {
//2
title: 'Faqja e diskutimit',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Ashtu si faqja e përdoruesit, secili redaktor e ka faqen e tij të DISKUTIMIT. Përdoruesit e tjerë mund tju lënë mesazhe.<br><br>Hej, shikoje atë ... Dikush ju ka dërguar një mesazh.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/2/Start' ) + '?tour=twa2&step=1'
} , {
name: 'Kontrolloni mesazhin tuaj të ri*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçuni." ); return; } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/1' , mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=3'); }
} ],
allowAutomaticOkay: false
}, {
//3
title: 'Njerëz të vërtetë',
description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Wow, kjo ishte e bukur. Këtu ka njerëz të vërtetë si unë.<br><br>Le t\'i Përgjigjemi mesazhit në faqen e diskutimit.<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/2/Start' ) + '?tour=twa2&step=2'
} , {
name: 'Përgjigju Willit',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/2/Will' ) + '?tour=twa2&step=4'
} ],
allowAutomaticOkay: false
}, {
//4
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,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=3'
} ],
}, {
//5
title: 'Shkruani përgjigjen tuaj',
description: '<br>Shtype REDAKTO TEKSTIN BURIMOR kështu që ju ti lini mesazhin tuaj Willit<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/2/Will' ) + '?tour=twa2&step=4'
} ],
shouldSkip: function() {
return gt.hasQuery( { action: 'edit' } );
}
}, {
//6
title: 'Kopjoni mesazhin tuaj',
description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Kopjoni mesazhin e mëposhtëm dhe vendoseni në dritaren e redaktimit, përfund mesazhit të Willit<br><br><b>:Faleminderit shumë për pritjen tuaj miqësore <nowiki>[[Përdoruesi:WillKomen]]</nowiki>. Mezi po pres për të filluar redaktimin! <nowiki>~~~~</nowiki><b><br>',
onShow: gt.parseDescription,
overlay: false,
attachTo: '#wpTextbox1',
position: 'bottomRight',
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=5'
} , {
name: 'Copied',
action: 'next',
} ],
allowAutomaticOkay: false
}, {
//7
title: 'Tre gjëra të shpejta',
description: '<br><b>Në kryerresht</b> përgjigju me dy pika <code > : </code> për të larguar tekstin një njësi në të djathtë që tregon se ju jeni duke u përgjigjur një mesazhi.<br><br> <b>Nënshkruaj</b> mesazhet me <code><nowiki>~~~~</nowiki></code> për të lënë emrin e përdoruesit në përgjigjen tuaj--ose mund të përdorni butonin e nënshkrimit [[File:Insert-signature.png]]. Ne nënshkruajmë vetëm në Faqet e Diskutimit, jo në faqet e Artikujve.<br><br><b>Njofo</b> Willin se ju u përgjigjët duke e përmendur emin e tij diku dë tekstin tuaj, si <code><nowiki>[[Përdoruesi:WillKomen]]</nowiki></code>. Nëse je në faqen e diskutimit të Willit, kjo nuk është patjetër, pasi sitemi e njofton atë automatikisht.',
attachTo: '#wpTextbox1',
position: 'bottomRight',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=6&action=edit'
} , {
name: 'Got it',
action: 'next'
} ],
allowAutomaticOkay: false,
} , {
//8
title: 'Përmbledhja e Redaktimit dhe Kryej Ndryshimet',
description: '<br>Shto një përmbledhje për redaktimet, diçka si: "Ju faleminderit për mikëpritjen e ngrohtë".<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:MyTalk/TWA' ) + '?tour=twa2&step=7&action=edit'
} ],
shouldSkip: function() {
return gt.isPostEdit();
},
buttons: postEditButtons
} , {
//9
title: 'Kryerreshti, nënshkrimi dhe njoftimi!',
description: 'AFTËSI TË REJA U FITUAN: <b>Medalja Komunikues</b><center>[[File:TWA badge 3.png|250px|link=]]</center><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=8&action=edit'
} , {
name: 'Vazhdo bisedën*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçuni." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/3template2' , mw.util.getUrl( 'Wikipedia:TWA/2/Start' ) + '?tour=twa2&step=10'); }
} ],
allowAutomaticOkay: false
} , {
//10
title: 'Fuqia komunikuese!',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Hej, çka nëse keni shumë biseda në të njëjtën kohë? Si mund të ruani gjurmët e të gjithë atyre?<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=9'
} , {
name: 'Një problem i mirë për tu zgjidhur...',
action: 'next'
} ],
}, {
//11
title: 'Një zgjidhje',
description: '<br>Lista Mbikëqyrëse. Njoftime për ndryshimet e artikujve që ju i ndiqni.<br><br>Për të ndjekur një faqe shtypni në yllin [[File:Vector_skin_-_page_not_in_the_watchlist.png]] në qendër të tij. Kur ylli bëhet blu [[File:Vector_skin_-_page_in_the_watchlist.png]], faqja është shtuar në listën tuaj! (Ju gjithstu mund të pëzgjidhni nga Parapëqimet që automatikisht të shtojë në listë faqet që ju redaktoni).<br><br>Shtype LISTA MBIKËQYRËSE.',
attachTo: '#pt-watchlist',
position: 'bottom',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=10'
} ],
shouldSkip: function() {
return gt.isPage( 'Speciale:Watchlist' );
}
} , {
//12
title: 'Shikoni listën mbikëqyrëse',
description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Një pjesë <i>shumë</i> e përpikët për Wikipedian është se çdo redaktim i vetëm ruhet. Kjo lejon njerëzit të shikojnë punën e njëri-tjetrit, sepse ne jemi më të mirë kur kemi ndihmë.<br><br>',
onShow: gt.parseDescription,
attachTo: '#content.mw-body',
position: 'bottom',
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=11'
} , {
name: 'Our Motto',
action: 'next'
} ],
} , {
//13
title: 'Bëhu i guximshëm',
description: 'Gjithashtu është vërtet e vështirë të bësh rrëmujë këtu, sepse ju gjithmonë mund të ktheheni prapa në një version më të vjetër të faqes.<br><br>Një lloj lehtësie, ashtu?<br><br> Kjo është arsyeja pse motoja jonë në Wikipedia është <b>Bëhu i guximshëm!</b><br><br>',
onShow: gt.parseDescription,
overlay: true,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Speciale:Watchlist' ) + '?tour=twa2&step=12'
} , {
name: 'Përtej listës mbikëqyrëse',
action: 'next'
} ],
} , {
//14
title: 'Kontrolloni kontributin tuaj',
description: '<br>Përveç se të ndiqni ndrzshimet në të gjitha faqet që keni në listën tuaj mbikëqyrëse, ju gjithashtu mund të ruani gjurmët vetëm të redaktimeve tuaja.<br><br>Shtyp KONTRIBUTET.',
onShow: gt.parseDescription,
overlay: false,
attachTo: '#pt-mycontris',
position: 'bottomLeft',
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Speciale:Watchlist' ) + '?tour=twa2&step=13'
} ],
shouldSkip: function() {
return gt.isPage( 'Speciale:Kontributet/' + mw.config.get( 'wgUserName' ).replace(/ /g, '_') );
}
} , {
//15
title: 'E gjithë puna juaj',
description: '<br>Këtu janë kontributet tuaja deri tani. Ato janë të gjitha në faqen tuaj të përdoruesit dhe në faqen e diskutimeve...<br><br>Le të shohim nëse ne mund të bëjmë diçka rreth asaj.<br><br>Oh, prit të sekondë, duket se ju keni një mesazh të ri.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Speciale:Watchlist' ) + '?tour=twa2&step=14'
} , {
name: 'Kontrollo meszhet e reja*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçuni." ); return; } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/2' , mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=16'); }
} ],
allowAutomaticOkay: false
} , {
//16
title: 'Një ftesë',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Super, diçka për të punuar...<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 ('Speciale:Kontributet/' ) + mw.config.get( 'wgUserName' ) + '?tour=twa2&step=15'
} , {
name: 'Jepi një përgjigje GaiaGirl',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/2/Gaia' ) + '?tour=twa2&step=17'
} ],
allowAutomaticOkay: false
}, {
//17
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,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl ( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=16'
} ],
}, {
//18
title: 'Përgjigju',
description: '<br>Shtype REDAKTO TEKSTIN BURIMOR që të mund të lini një përgjigje për GaiaGirl<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/2/Gaia' ) + '?tour=twa2&step=17'
} ],
shouldSkip: function() {
return gt.hasQuery( { action: 'edit' } );
}
}, {
//19
title: 'Shkruani përgjigjen tuaj',
description: '<br>Kopjo tekstin e mëposhtëm si përgjigje, përfundi mesazhit të GaiaGirl.<br><br>:Super <nowiki>[[Përdoruesja:GaiaGirl86]]</nowiki>, është planeti im i preferuar! Si të arrij atje? <nowiki>~~~~</nowiki><br>',
onShow: gt.parseDescription,
overlay: false,
attachTo: '#wpTextbox1',
position: 'bottomRight',
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl ( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=18'
} , {
name: 'Copied',
action: 'next'
} ],
allowAutomaticOkay: false
}, {
//20
title: 'Përmbledhja e redaktimit dhe Kryej Ndryshimet',
description: '<br>Vetëm shto një përmbledhje të redaktimeve. Si thoni për këtë, "Unë do të doja shumë tju ndihmojë".<br><br>Pasaj KRYEJ NDRYSHIMET kur të jeni gati.<br><br>',
onShow: gt.parseDescription,
overlay: false,
attachTo: '#wpSave',
position: 'bottomRight',
autoFocus: 'yes',
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl ( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=19&action=edit'
} ],
shouldSkip: function() {
return gt.isPostEdit();
},
buttons: postEditButtons
} , {
//21
title: 'Tik, tak, tik, tak',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Hej, le të rifreskojmë faqen dhe të shohim nëse GaiaGirl është përgjigjur!',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl ( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=20&action=edit'
} , {
name: 'Rrotullohu rreth botës*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçuni." ); return; } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/3' , mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa2&step=22'); }
} ],
} , {
//22
title: 'Udhëzime?',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Un do ju dërgoj juve atje. Më ndiq mua në TOKË.<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=twa2&step=21'
} , {
name: 'Nisu drejt Tokës',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/2/End' ) + '?tour=twa2&step=23'
} ],
} , {
//23
title: 'Ju keni arritur në fund të misionit 2!!',
description: '<br>[[File:Ringtone (3).ogg]]<br><b>Rrugëtimi për në misionin 3...</b>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: 'Congrats me!',
action: 'end'
} ],
}]
} );
} (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ) ;