Pour pouvoir importer des images sur le serveur et consulter le wiki sans publicité, vous devez vous connecter.
Différences entre les versions de « Utilisateur:Add/monobook.js »
Aller à la navigation
Aller à la recherche
m |
m |
||
Ligne 2 : | Ligne 2 : | ||
<pre> | <pre> | ||
<source lang="javascript"> */ | <source lang="javascript"> */ | ||
/** Extra toolbar options ****************************************************** | |||
* | |||
* Description: UNDOCUMENTED | |||
* Maintainers: [[User:MarkS]]?, [[User:Voice of All]], [[User:R. Koot]] | |||
*/ | |||
//This is a modified copy of a script by User:MarkS for extra features added by User:Voice of All. | |||
// This is based on the original code on Wikipedia:Tools/Editing tools | |||
// To disable this script, add <code>mwCustomEditButtons = [];<code> to [[Special:Mypage/monobook.js]] | |||
if (mwCustomEditButtons) { | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://bodin.samuel.free.fr/extensions/AddButtonExtension/Button_ebauche.jpg", | |||
"speedTip": "2bauche", | |||
"tagOpen": "{{Construction}}", | |||
"tagClose": "", | |||
"sampleText": ""}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://bodin.samuel.free.fr/extensions/AddButtonExtension/Button_center.jpg", | |||
"speedTip": "Centrer", | |||
"tagOpen": "<center>", | |||
"tagClose": "</center>", | |||
"sampleText": "Texte centré"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", | |||
"speedTip": "Sauté une ligne", | |||
"tagOpen": "<br />", | |||
"tagClose": "", | |||
"sampleText": ""}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png", | |||
"speedTip": "Commentaire", | |||
"tagOpen": "<!-- ", | |||
"tagClose": " -->", | |||
"sampleText": "Commentaire"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://bodin.samuel.free.fr/extensions/AddButtonExtension/Button_gallery.jpg", | |||
"speedTip": "Gallery", | |||
"tagOpen": "\n<gallery>\n", | |||
"tagClose": "\n</gallery>", | |||
"sampleText": "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png", | |||
"speedTip": "tableau", | |||
"tagOpen": '{| class="wikitable"\n|-\n', | |||
"tagClose": "\n|}", | |||
"sampleText": "! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://bodin.samuel.free.fr/extensions/AddButtonExtension/Button_category.jpg", | |||
"speedTip": "Catégorie", | |||
"tagOpen": "[[Categorie: ", | |||
"tagClose": " ]]", | |||
"sampleText": ""}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://bodin.samuel.free.fr/extensions/AddButtonExtension/Button_headline.jpg", | |||
"speedTip": "Sous-titre 3", | |||
"tagOpen": "===", | |||
"tagClose": "===", | |||
"sampleText": "Sous-titre"}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png", | |||
"speedTip": "Div", | |||
"tagOpen": '<div style="margin:0; background-color:#; font-size:100%; font-weight:bold; border:1px solid #00000; text-align:left; color:#000; padding:0em 0em;">', | |||
"tagClose": "</div>", | |||
"sampleText": ""}; | |||
} | |||
// Add date and time to your monobook "personal menu" list at the very top of the page. | // Add date and time to your monobook "personal menu" list at the very top of the page. | ||
// Created by [[User:Mathwiz2020]] | // Created by [[User:Mathwiz2020]] | ||
Ligne 681 : | Ligne 758 : | ||
addOnloadHook(OptimizedNavigAdmin); | addOnloadHook(OptimizedNavigAdmin); | ||
/* </source></pre> */ | /* </source></pre> */ |