Utente:Valerio Bozzolan/Superchilum.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
accorpamento chiamate comunità > discussione
accorpamento chiamate comunità > votazione
Riga 643:
},
votazione: {
label: '',
tools: {
// Pulsante "Favorevole"
// [[commons:File:Symbol support vote.svg]]
favorevole: {
label: '+1', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/22px-Symbol_support_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Favorevole}}", //testo prima
post: "" //testo dopo
}
}
},
// Pulsante "Favorevole se"
// [[commons:File:Symbol conditional support.svg]]
favorevolese: {
label: '+1 se', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Symbol_conditional_support.svg/22px-Symbol_conditional_support.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Favorevole se}}", //testo prima
post: "" //testo dopo
}
}
},
// Pulsante "Neutrale"
// [[commons:File:Symbol neutral vote.svg]]
neutrale: {
label: '0', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_neutral_vote.svg/22px-Symbol_neutral_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Neutrale}}", //testo prima
post: "" //testo dopo
}
}
},
// Pulsante "Contrario"
// [[commons:File:Symbol oppose vote.svg]]
contrario: {
label: '-1', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/22px-Symbol_oppose_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Contrario}}", //testo prima
post: "" //testo dopo
}
}
},
// Pulsante "Incerto"
// [[commons:File:Symbol confused vote.svg]]
incerto: {
label: '?', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Symbol_confused_vote.svg/22px-Symbol_confused_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Incerto}}", //testo prima
post: "" //testo dopo
}
}
}
}
},
altridiscussione: {
Line 794 ⟶ 866:
 
//Pulsanti del menù "Comunità"
 
// Pulsante "Favorevole"
// [[commons:File:Symbol support vote.svg]]
$textbox.wikiEditor( 'addToToolbar', {
section: 'community',
group: 'votazione',
tools: {
favorevole: {
label: '+1', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/9/94/Symbol_support_vote.svg/22px-Symbol_support_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Favorevole}}", //testo prima
post: "" //testo dopo
}
}
}
}
} );
// Pulsante "Favorevole se"
// [[commons:File:Symbol conditional support.svg]]
$textbox.wikiEditor( 'addToToolbar', {
section: 'community',
group: 'votazione',
tools: {
favorevolese: {
label: '+1 se', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/b/b2/Symbol_conditional_support.svg/22px-Symbol_conditional_support.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Favorevole se}}", //testo prima
post: "" //testo dopo
}
}
}
}
} );
// Pulsante "Neutrale"
// [[commons:File:Symbol neutral vote.svg]]
$textbox.wikiEditor( 'addToToolbar', {
section: 'community',
group: 'votazione',
tools: {
neutrale: {
label: '0', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/8/89/Symbol_neutral_vote.svg/22px-Symbol_neutral_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Neutrale}}", //testo prima
post: "" //testo dopo
}
}
}
}
} );
 
// Pulsante "Contrario"
// [[commons:File:Symbol oppose vote.svg]]
$textbox.wikiEditor( 'addToToolbar', {
section: 'community',
group: 'votazione',
tools: {
contrario: {
label: '-1', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/22px-Symbol_oppose_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Contrario}}", //testo prima
post: "" //testo dopo
}
}
}
}
} );
// Pulsante "Incerto"
// [[commons:File:Symbol confused vote.svg]]
$textbox.wikiEditor( 'addToToolbar', {
section: 'community',
group: 'votazione',
tools: {
incerto: {
label: '?', //testo visualizzato al passaggio del mouse
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Symbol_confused_vote.svg/22px-Symbol_confused_vote.svg.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Incerto}}", //testo prima
post: "" //testo dopo
}
}
}
}
} );
 
// Pulsante "Fatto"