Diferencia entre revisiones de «Usuario:King of Herdaz/common.js»

adding art infobox button
m (Undo revision 157242 by King of Herdaz (talk))
Etiqueta: Deshacer
(adding art infobox button)
pre: '<' + 'code>',
post: '</' + 'code>'
}
}
}
}
});
 
// Adding an art infobox button to the "main" section
$('#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'main',
group: 'insert',
tools: {
"code": {
label: 'Art infobox',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/7/76/Button_atelier_graphique.PNG',
action: {
type: 'encapsulate',
options: {
pre: '{' + '{art' + '\n' + '|#artist=' + '\n' + '|series=' + '\n' + '|#source=',
post: '\n' + '|type=' + '\n' + '}}'
}
}
8718

ediciones