MediaWiki:Guidedtour-tour-twa5.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 5
( 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: 'Go back and make an edit',
onclick: function() {
window.location.href = window.location.href +
"&veaction=edit";
}
} );
}
gt.defineTour( {
name: 'twa5',
shouldLog: true,
steps: [ {
//1
title: 'Ne jemi gati! ',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>SocraTease na bëri një gjëegjëzë me një pyetje të çuditshëm: Si mund ta dimë nëse informacioni në Wikipedia është i vërtetë?<br><br>Kjo është një pyetje e veçantë--që ka nevojë për një vend të posaçëm, për të marrë një përgjigje të mençur.<br><br>',
overlay: true,
onShow: gt.parseDescription,
buttons: [ {
name: 'Kontrollo Odën e fillestarëve',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse' ) + '?tour=twa5&step=2'
} ],
allowAutomaticOkay: false
}, {
//2
title: 'Çfarë është kjo "Odë e fillestarëve"?',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Oda e Fillestarëve është një hapësirë shoqërore për pyetje në lidhje me Wikipedian--dhe për të gjetur përgjigje të thjeshta, të qarta nga ndihmues të mençur, mikëpritës--në çdo kohë që ju keni nevojë.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/5/Start' ) + '?tour=twa5&step=1'
} , {
name: 'Pini një çaj',
action:'next',
} ],
allowAutomaticOkay: false,
}, {
//3
title: 'Oda e fillestarëve = Fantastike.',
description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Kërkimi i ndihmës është pjesë e procesit për tu bërë një redaktor i mirë. Ka shumë për të mësuar këtu, dhe shumë njerëz që t\'ju ofrojnë ndihmë.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse' ) + '?tour=twa5&step=2'
} , {
name: 'Share the riddle with Teahouse',
action: 'next',
} ],
}, {
//4
title: 'Pyet menjëherë!',
description: '<br>E vërteta dhe Wikipedia<br><br>"Përshëndetje, Unë jam i ri këtu dhe po përpiqem të mësoj më shumë rreth Wikipedias. Unë po pyesja veten, si e dini se gjithçka në Wikipedia është *e vërtetë*?"<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse' ) + '?tour=twa5&step=3'
} , {
name: 'Postoje atë!',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse/1' ) + '?tour=twa5&step=5'
} ],
}, {
//5
title: 'Të pyesësh është e mrekullueshme',
description: 'AFTËSI TË REJA U FITUAN: <b>Medalja Hulumtues</b><center>[[File:TWA badge 7.png|250px|link=]]</center><br>Hej, keni marrë një njoftim se dikush iu përgjigj në pyetjen tuaj në Odën e Fillestarëve.<br>',
onShow: gt.parseDescription,
attachTo: '#content.mw-body',
position: 'topRight',
autoFocus: 'yes',
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse' ) + '?tour=twa5&step=4'
} , {
name: 'Kontrollo përgjigjen',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse/2' ) + '?tour=twa5&step=6'
} ],
allowAutomaticOkay: false,
}, {
//6
title: 'Kjo është e rëndësishme',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Pra, ne vetëm duhet të shkruajmë atë që ne mund ta verifikojmë në një burim të publikuar. Jo eksperiencat tuaja, hulumtimet orgjinale, ose opinionet personale. Informacione të sapopublikuara.<br><br>',
onShow: gt.parseDescription,
overlay: false,
attachTo: '#content.mw-body',
position: 'bottomRight',
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse' ) + '?tour=twa5&step=5'
} , {
name: 'Gërmo në Verifikueshmërinë*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçu." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/7template2' , mw.util.getUrl( 'Wikipedia:TWA/5/V' ) + '?tour=twa5&step=7'); }
} ],
allowAutomaticOkay: false
}, {
//7
title: 'Sfido veten MË POSHTË...',
description: '',
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/Teahouse/2' ) + '?tour=twa5&step=6'
} ]
} , {
//8
title: 'Ju e keni marrë Verifikueshmërinë',
description: 'AFTËSI TË REJA U SHTUAN: <b>Medalja e Verifikueshmërisë</b><center>[[File:TWA badge 8.png|250px|link=]]</center><br>Le ta vendosim në përdorim këtë njohuri të re!<br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/5/V' ) + '?tour=twa5&step=7'
} , {
name: 'Kontrollo mesazhet e tua*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçu." ); return; } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/TWA', 'Wikipedia:TWA/MyTalk/5' , mw.util.getUrl( 'Special:MyTalk/TWA' ) + '?tour=twa5&step=9'); }
} ],
allowAutomaticOkay: false
} , {
//9
title: 'Duke kërkuar burime',
description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Të shohim se çfarë na ofron GaiaGirl</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/5/Start' ) + '?tour=twa5&step=8'
} , {
name: 'Nisemi për në faqen 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/1' , mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa5&step=10'); }
} ],
allowAutomaticOkay: false
} , {
//10
title: '3 Burime',
description: '<br><div align="left">[[File:TWA_guide_left_top.png|link=]]</div>Duket se Gaia Girl ju dha disa mundësi.<br><br>Verifikueshmëria na tregon se ne duam burime të besueshme të botuara me reputacion për kontrollimin e fakteve dhe saktësi. Burimet në të cilat ne mund të mbështetemi.<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/5/Start' ) + '?tour=twa5&step=9'
} , {
name: 'Cila nga këto është më e mirë??',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçu." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/8template2' , mw.util.getUrl( 'Wikipedia:TWA/5/RS' ) + '?tour=twa5&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,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa5&step=10'
}],
}, {
//12
title: 'Ju po bëheni shumë i besueshëm',
description: 'AFTËSI TË REJA U FITUAN: <b>Medaja Burimor</b><center>[[File:TWA badge 9.png|250px|link=]]</center><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/5/RS' ) + '?tour=twa5&step=11'
} , {
name: 'Jepi përgjigje GaiaGirl*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Please login." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/9template2' , mw.util.getUrl( 'Wikipedia:TWA/5/Start' ) + '?tour=twa5&step=13'); }
} ],
allowAutomaticOkay: false
}, {
//13
title: 'Po tani çka?',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>Tani që ne kemi burimin, çfarë të bëjmë me atë?<br><br>Së pari, të lëm një shënim në faqen e diskutimit të GaiaGirl86, ti tregojmë për mendimet tona.<br><br>Hmm... çfar ti them?<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa5&step=12'
},{
name: 'Përgjigju GaiaGirl',
action: 'externalLink',
url: mw.util.getUrl( 'Wikipedia:TWA/5/Reply' ) + '?tour=twa5&step=14'
} ],
allowAutomaticOkay: false
} , {
//14
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( 'Wikipedia:TWA/5/Start' ) + '?tour=twa5&step=13'
}],
}, {
//15
title: 'Përgjigju Gaia Girl',
description: '<br>Shtyp REDAKTO TEKSTIN BURIMOR që 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/5/Reply' ) + '?tour=twa5&step=14'
}],
shouldSkip: function() {
return gt.hasQuery( { action: 'edit' } );
}
}, {
//16
title: 'Kopjo mesazhin e mëposhtëm dhe vendose në fund',
description: '<br><div align="right">[[File:TWA_guide_right_top.png|link=]]</div>:Revista "Shkencë dhe Natyrë" duket si burim solid dhe i rëndësishëm me një reputacion të mirë. Mendoj se mund të mbështetemi në atë më shumë se të tjerat për këtë artikull. Hulumtim i mirë! <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/Earth' ) + '?tour=twa5&step=15'
} , {
name: 'Copied',
action: 'next',
} ],
} , {
//17
title: 'Përmbledhja e redaktimit dhe Kryej Ndryshimet',
description: '<br>Si thoni për "Mendimi për burimin e besueshëm". Pastaj shtyp 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/Earth' ) + '?tour=twa5&step=16&action=edit'
} ],
shouldSkip: function() {
return gt.isPostEdit();
},
buttons: postEditButtons
} , {
//18
title: 'Bravo!',
description: 'AFTËSI TË REJA U FITUAN: <b>Medalja Këshilltar</b><center>[[File:TWA badge 10.png|250px|link=]]</center><br><br>I took a look at Earth\'s talk page and GaiaGirl added some awesome content. Check it out!',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyTalk/TWA/Earth' ) + '?tour=twa5&step=17&action=edit'
} , {
name: 'Udhëto më thellë*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Ju lutem kyçu." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Wikipedia:TWA/Badge/10template2' , mw.util.getUrl( 'Wikipedia:TWA/5/End' ) + '?tour=twa5&step=19'); }
} ],
allowAutomaticOkay: false
} , {
//19
title: 'Misioni 5 u kompletua!',
description: '<br>[[File:Northern mountains (short).ogg]]<br><b>Rrugëtimi për në misionin e 6...</b>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: 'Congrats me!',
action: 'end'
} ],
allowAutomaticOkay: false
}]
} );
} (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ) ;