Difference between revisions of "MediaWiki:Vector.js"
From Korean Wiki Project
DigitalSoju (Talk | contribs) (trying to add more buttons) |
DigitalSoju (Talk | contribs) |
||
| Line 6: | Line 6: | ||
// PULSANTI ADDIZIONALI per skin Vector :-) | // PULSANTI ADDIZIONALI per skin Vector :-) | ||
| − | + | {{AutoreCitato||}}{{Centrato||}}<section begin=1 /><section begin=1 /> | |
| − | // | + | |
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { | if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { | ||
$j(document).ready( function() { | $j(document).ready( function() { | ||
| Line 15: | Line 14: | ||
'tools': { | 'tools': { | ||
'Ac': { | 'Ac': { | ||
| − | label: ' | + | label: 'Insert sky blue font', |
type: 'button', | type: 'button', | ||
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_AC.png', | icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_AC.png', | ||
| Line 21: | Line 20: | ||
type: 'encapsulate', | type: 'encapsulate', | ||
options: { | options: { | ||
| − | pre: " | + | pre: "<font color=DeepSkyBlue>", |
| − | post: " | + | post: "</font>" |
} | } | ||
} | } | ||
Revision as of 14:17, 24 November 2010
/* Any JavaScript here will be loaded for users using the Vector skin */
// <pre>
//SAL
//inc("Utente:IPork/SAL.js");
// PULSANTI ADDIZIONALI per skin Vector :-)
{{AutoreCitato||}}{{Centrato||}}<section begin=1 /><section begin=1 />
if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) {
$j(document).ready( function() {
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Ac': {
label: 'Insert sky blue font',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_AC.png',
action: {
type: 'encapsulate',
options: {
pre: "<font color=DeepSkyBlue>",
post: "</font>"
}
}
}
}
} );
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Center': {
label: 'Centra',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/5/5f/Button_center.png',
action: {
type: 'encapsulate',
options: {
pre: "{{Centrato||",
post: "}}"
}
}
}
}
} );
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Section': {
label: 'Sezione',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/4/44/Button_comillas_latinas.png',
action: {
type: 'encapsulate',
options: {
pre: "<section begin=1 />",
post: "<section begin=1 />"
}
}
}
}
} );
$j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
'section': 'advanced',
'group': 'format',
'tools': {
'Pt': {
label: 'Pt',
type: 'button',
icon: 'http://upload.wikimedia.org/wikipedia/commons/4/4b/Button_class_text.png',
action: {
type: 'encapsulate',
options: {
pre: "{{pt||",
post: "}}"
}
}
}
}
} );
} );
}