MediaWiki:Guidedtour-tour-twa4.js
Aparença
Nota: Després de desar, heu de netejar la memòria cau del navegador per veure els canvis. En la majoria de navegadors amb Windows o Linux, premeu Ctrl+F5 o bé premeu Shift i cliqueu el botó "Actualitza" (Ctrl i "Actualitza" amb Internet Explorer). Vegeu més informació i instruccions per a cada navegador a Viquipèdia:Neteja de la memòria cau.
// 4a etapa del Bus turístic, adaptació de
// The Wikipedia Adventure Mission 4
( 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 = "{{subst:" + msgPage + "}}";
api.post( {
'action' : 'edit',
'title' : targetPage,
'appendtext' : "\n" + text,
'summary' : 'Nou missatge (simulat automàticament des del [[VP:BUS|Bus turístic]])',
'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: 'Cliqueu aquí per anar enrere i fer una edició',
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: 'Vés enrere',
onclick: function() {
window.location.href = window.location.href +
"&veaction=edit";
}
} );
}
gt.defineTour( {
name: 'twa4',
shouldLog: true,
steps: [ {
//1
title: 'Benvinguts de nou! ',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>Ens vam quedar amb un nou missatge de GaiaNoia que havia afegit algun contingut a l\'article. Anem a veure què hi ha de nou.<br><br>',
overlay: true,
onShow: gt.parseDescription,
buttons: [ {
name: 'Tornem a Terra?*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Registreu-vos." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ) + '/Bus/Terra', 'Viquipèdia:Bus_turístic/Earth/2' , mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=2'); }
} ],
allowAutomaticOkay: false
}, {
//2
title: 'Què hi ha de nou?',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>Una forma fàcil per veure què ha canviat des de l\'última visita és comprovar l\'HISTORIAL de l\'article.<br><br>L\'historial és un registre de tota l\'activitat en una pàgina.<br><br> Cada un dels canvis que s\'hi han fet queden registrats aquí. Enginyós, no?<br><br>',
attachTo: '#content.mw-body',
position: 'bottom',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/Start' ) + '?tour=twa4&step=1'
} , {
name: 'Fem de wiki historiadors',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/Earth/History/1' ) + '?tour=twa4&step=3'
} ],
allowAutomaticOkay: false
}, {
//3
title: 'Això resulta familiar!',
description: '<br><div align="right">[[File:Wikipe-tan head.png|80px|link=]]</div>Cada línia és un canvi: quan es va fer, quanta informació es va afegir o treure i el motiu indicat en el resum. Per això són interessants els resums dels canvis!<br><br>',
attachTo: '#content.mw-body',
position: 'bottom',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=2'
} , {
name: 'Entesa l\'eina',
action: 'next'
} ],
}, {
//4
title: 'Comparem amb la versió prèvia',
description: '<br><div align="right">[[File:Wikitanface.png|100px|link=]]</div>Per comparar una versió amb la prèvia, es pot clicar en l\'enllaç prev de la línia corresponent. (En la mostra d\'aquesta pàgina els enllaços prev estan desactivats per motius tècnics).<br><br>',
attachTo: '#content.mw-body',
position: 'bottom',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/Earth/History/1' ) + '?tour=twa4&step=3'
} , {
name: 'Un altre truc',
action: 'next'
} ],
}, {
//5
title: 'Comparem dues versions no consecutives',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>També es poden comparar dues versions no consecutives, que de vegades va molt bé per seguir canvis fets durant un cert temps.<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( 'Viquipèdia:Bus_turístic/Earth/History/1' ) + '?tour=twa4&step=4'
} , {
name: 'Entesos',
action: 'next'
} ],
allowAutomaticOkay: false,
}, {
//6
title: 'Dif?, què és això?',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>Una comparació entre dues versions l\'anomenem DIF, és a dir <i>diferències</i><br><br>',
onShow: gt.parseDescription,
attachTo: '#footer-info-copyright',
position: 'bottom',
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/Earth/History/1' ) + '?tour=twa4&step=5'
} , {
name: 'Vegem el DIF de l\'última edició de GaiaNoia',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/Earth/4/Diff' ) + '?tour=twa4&step=7'
} ],
allowAutomaticOkay: false
} , {
//7
title: 'Mira què ha canviat',
description: '<br>La versió anterior és a l\'esquerra i la nova versió a la dreta. Els canvis estan destacats.<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( 'Viquipèdia:Bus_turístic/Earth/History/1' ) + '?tour=twa4&step=6'
} , {
name: 'Què en penses?',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=8'
} ],
allowAutomaticOkay: false
} , {
//8
title: 'Bé, això és bastant parcial...',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>D\'acord, sembla que GaiaNoia ha afegit alguna informació que pot ser esbiaixada.<br><br>Com prenem decisions sobre com presentar la informació?<br><br>Els editors de la Viquipèdia es basen en un concepte anomenat <b>Punt de Vista Neutral</b>.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/Earth/4/Diff' ) + '?tour=twa4&step=7'
} , {
name: 'Cerquem el punt [neutral]',
action: 'next',
} ],
} , {
//9
title: 'PVN',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>El punt de vista neutral, sovint indicat per les sigles <b>PVN</b>, implica que la Viquipèdia no té opinions pròpies ni es basa en les opinions dels seus editors.<br><br>En canvi, resumim allò que fonts bones ja han publicat sobre el tema i ho fem de forma equilibrada.<br><br>',
onShow: gt.parseDescription,
overlay: true,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=8'
} , {
name: 'Vegem la política.',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/Start' ) + '?tour=twa4&step=10'
} ],
allowAutomaticOkay: false
} , {
//10
title: 'Les polítiques són les pràctiques que practiquem',
description: '<br><div align="right">[[File:Wikipe-tan head.png|80px|link=]]</div>Les polítiques descriuen les pràctiques de la comunitat. Hi ha gairebé una política per a cada situació que un es pugui trobar, però unes poques són realment importants.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=9'
} , {
name: 'La política PVN',
action: 'next',
} ],
}, {
//11
title: 'La política PVN',
description: '<br><b>Els articles no han de prendre partit, sinó que han d\'explicar tots els partits, de manera justa i sense prejudicis. Això s\'aplica tant al que es diu com la forma en què es diu.</b><br><br>Cal interioritzar-ho, que quedi ben gravat.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/Start' ) + '?tour=twa4&step=10'
} , {
name: 'Mirem si s\'ha entès',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/NPOV' ) + '?tour=twa4&step=12'
} ],
allowAutomaticOkay: false
} , {
//12
title: 'Descobriu-ho vosaltres mateixos...',
description: 'Consell: es pot aprendre tant fent-ho bé com malament. Sempre podeu intentar-ho de nou!',
attachTo:'#contentSub',
position: 'bottom',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/Start' ) + '?tour=twa4&step=11'
} ],
} , {
//13
title: 'Fantàstic!',
description: 'NOU ESCALAFÓ: <b>Distinció de Neutralitat</b><center>[[File:TWA badge 5.png|250px|link=]]</center><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/NPOV' ) + '?tour=twa4&step=12'
}, {
name: 'Seguim*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Registreu-vos." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Viquipèdia:Bus_turístic/Badge/5template2' , mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=14'); }
} ],
} , {
//14
title: 'Posem en marxa el PVN',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>Anem a fer una altra ullada a aquests canvis a Terra.<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( 'Viquipèdia:Bus_turístic/4/Start' ) + '?tour=twa4&step=13'
} , {
name: 'Hi vegiu cap problema?',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=15'
} ],
} , {
//15
title: 'Neutralitzant',
description: '<br><b><div align="left">[[File:Wikitanface.png|100px|link=]]</div>La Terra és el millor planeta de tota la galàxia. És un lloc perfecte pels humans per viure-hi.</b><br><br>Aquests afegits intenten explicar alguna cosa rellevant però no està equilibrat. No són neutrals. Sona com l\'opinió del redactor.<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:MyPage/Bus/Terra' ) + '?tour=twa4&step=14'
} , {
name: 'Provem de fer-ho millor',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/Rephrase' ) + '?tour=twa4&step=16'
} ],
} , {
//16
title: 'Descobriu-ho vosaltres mateixos...',
description: 'Consell: es pot aprendre tant fent-ho bé com malament. Sempre podeu intentar-ho de nou!',
attachTo:'#contentSub',
position: 'bottom',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=15'
} ],
}, {
//17
title: 'Canviem el redactat',
description: '<br>Cliqueu MODIFICA EL CODI per refer el text<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( 'Viquipèdia:Bus_turístic/4/Rephrase' ) + '?tour=twa4&step=16'
}],
shouldSkip: function() {
return gt.hasQuery( { action: 'edit' } );
}
}, {
//18
title: 'Correccions i substitució',
description: '<br><div align="right">[[File:Wikipe-tan head.png|80px|link=]]</div>Copieu el text neutral i enganxeu-lo per substituir el text no neutral:<br><br><b>És l\'únic planeta conegut de la galàxia on hi ha vida. La Terra té molts llocs adequats per a la vida humana, encara que algunes àrees són perilloses o inhabitables.</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/Bus/Terra' ) + '?tour=twa4&step=17'
} , {
name: 'Fet',
action: 'next'
} ],
}, {
//19
title: 'Resum i Desa',
description: '<br>Expliquem-los, "Text canviat per més neutral i equilibrat".<br><br>Cliqueu DESA LA PÀGINA quan ho tingueu a punt.',
attachTo: '#wpSave',
position: 'bottomRight',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=18&action=edit'
} ],
shouldSkip: function() {
return gt.isPostEdit();
},
buttons: postEditButtons
}, {
//20
title: 'Col·laboració d\'ajuda!',
description: 'NOU ESCALAFÓ: Distinció de Col·laborador <center>[[File:TWA badge 6.png|250px|link=]]</center><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=19&action=edit'
} , {
name: 'Seguim ajudant*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Registreu-vos." ); return; } sendMessage( 'User:' + mw.config.get( 'wgUserName' ), 'Viquipèdia:Bus_turístic/Badge/6template2' , mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/Start' ) + '?tour=twa4&step=21'); }
} ],
allowAutomaticOkay: false
}, {
//21
title: 'Això ha estat molt bé',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>És important que la Viquipèdia es redacti com una enciclopèdia i no com el blog personal d\'un editor.<br><br>Tots som aquí per compartir informació de forma equilibrada.<br><br>Aquest procés pot ser un repte, però tots tenim el mateix objectiu de compartir informació.<br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=20'
} , {
name: 'Llarga vida al PVN',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/Start' ) + '?tour=twa4&step=22'
} ],
} , {
//22
title: 'Oh, un nou missatge!',
description: '<br><div align="left">[[File:Wikitanface.png|100px|link=]]</div>Comprovem-lo.</br><br>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
allowAutomaticOkay: false,
buttons: [ {
name: '<big>←</big>',
action: 'externalLink',
url: mw.util.getUrl( 'Special:MyPage/Bus/Terra' ) + '?tour=twa4&step=21'
} , {
name: 'Comprovem la teva pàgina de discussió*',
onclick: function() { if(!mw.config.get('wgUserName')){ alert( "Registreu-vos." ); return; } sendMessage( 'User talk:' + mw.config.get( 'wgUserName' ) + '/Bus', 'Viquipèdia:Bus_turístic/MyTalk/4' , mw.util.getUrl( 'Special:MyTalk/Bus' ) + '?tour=twa4&step=23'); }
} ],
} , {
//23
title: 'Una qüestió interessant...',
description: '<div align="right">[[File:Wikipe-tan head.png|80px|link=]]</div>Què significa això?',
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/Bus/Terra' ) + '?tour=twa4&step=22'
} , {
name: 'Desvetllem la Verificabilitat',
action: 'externalLink',
url: mw.util.getUrl( 'Viquipèdia:Bus_turístic/4/End' ) + '?tour=twa4&step=24'
} ],
} , {
//24
title: '4a etapa completada!',
description: '<br>[[File:02 Taiko2.ogg (short).ogg]]<br><b>Viatgem a la 5a etapa...</b>',
onShow: gt.parseDescription,
overlay: false,
closeOnClickOutside: false,
buttons: [ {
name: 'Felicita\'m!',
action: 'end'
} ],
allowAutomaticOkay: false
}]
} );
} (window, document, jQuery, mediaWiki, mediaWiki.guidedTour ) ) ;