Difference between revisions of "MediaWiki:Vector.js"
From Korean Wiki Project
DigitalSoju (Talk | contribs) (testing to see if this is the way to edit the toolbar) |
DigitalSoju (Talk | contribs) |
||
Line 105: | Line 105: | ||
"sampleText": "Nome autore"}; | "sampleText": "Nome autore"}; | ||
}; */ | }; */ | ||
− | + | ||
// Template TEMPLATE | // Template TEMPLATE | ||
if (mwCustomEditButtons) { | if (mwCustomEditButtons) { | ||
Line 116: | Line 116: | ||
}; | }; | ||
− | + | ||
// § | // § | ||
if (mwCustomEditButtons) { | if (mwCustomEditButtons) { | ||
Line 139: | Line 139: | ||
}; | }; | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
Revision as of 11:55, 15 June 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: confronta codice sotto con vecchia versione per monobook. La funzione è autonoma, // non richiede il caricamento di altri script! if ( typeof $j != 'undefined' && typeof $j.fn.wikiEditor != 'undefined' ) { $j(document).ready( function() { $j( '#wpTextbox1' ).wikiEditor( 'addToToolbar', { 'section': 'advanced', 'group': 'format', 'tools': { 'Ac': { label: 'AutoreCitato', type: 'button', icon: 'http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_AC.png', action: { type: 'encapsulate', options: { pre: "{{AutoreCitato||", post: "}}" } } } } } ); $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: "}}" } } } } } ); } ); } /* "Accoppo" il vecchio codice // SEZIONE if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/44/Button_comillas_latinas.png", "speedTip": "Section", "tagOpen": '<section begin="1" />', "tagClose": '<section end="1" />', "sampleText": "Sezione"}; }; // AUTORECITATO if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/6/6d/Button_AC.png", "speedTip": "Autore Citato", "tagOpen": '{{AutoreCitato||', "tagClose": '}}', "sampleText": "Nome autore"}; }; */ // Template TEMPLATE if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4b/Button_class_text.png", "speedTip": "pt", "tagOpen": '{{pt|', "tagClose": '}}', "sampleText": "Nome_template"}; }; // § if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/e/e2/Button_%C2%A7.png", "speedTip": "§", "tagOpen": '{{§||', "tagClose": '}}', "sampleText": "citazione"}; }; // Template TEMPLATE if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/4b/Button_class_text.png", "speedTip": "tl", "tagOpen": '{{tl|', "tagClose": '}}', "sampleText": "Nome_template"}; }; //</pre>