MediaWiki:Common.js : Différence entre versions
De geoLwiki - Guide géologique du Luxembourg
Ligne 109 : | Ligne 109 : | ||
// extra drop down menu on editing for adding special characters | // extra drop down menu on editing for adding special characters | ||
includePage( 'MediaWiki:Edittools.js' ); | includePage( 'MediaWiki:Edittools.js' ); | ||
+ | |||
+ | |||
+ | /*================================================================*/ | ||
+ | /* wikEd installation le 05/11/08 RC , http://en.wikipedia.org/wiki/User:Cacycle/wikEd_installation============== */ | ||
+ | |||
+ | // install [[User:Cacycle/wikEd]] in-browser text editor | ||
+ | document.write('<script type="text/javascript" src="' | ||
+ | + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' | ||
+ | + '&action=raw&ctype=text/javascript"></' + 'script>'); | ||
+ | |||
+ | /*================================================================*/ |
Version du 5 novembre 2008 à 07:10
/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */ /* Boutons */ if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_enter.png", "speedTip": "Nouveau paragraphe", "tagOpen": "<br />", "tagClose": "", "sampleText": ""}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_liste.png", "speedTip": "Liste", "tagOpen": "* " , "tagClose": "", "sampleText": "élément 1 \n* élément 2"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_enum.png", "speedTip": "Énumération", "tagOpen": "# ", "tagClose": "", "sampleText": "élément 1 \n# élément 2"}; /* mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_tableau.png", "speedTip": "Tableau", "tagOpen": "{| border="1" cellpadding="10" cellspacing="0"\n", "tagClose": "\n|}", "sampleText": "|Orange\n|Apple\n|-\n|Bread\n|Pie\n|-\n|Butter\n|Ice cream"}; */ mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_gallery.png", "speedTip": "Galerie d'images", "tagOpen": "<gallery>", "tagClose": "\n</gallery>", "sampleText": "\nImage:Exemple1.jpg|texte descriptif 1 \nImage:Exemple2.jpg|texte descriptif 2 \nImage:Exemple3.jpg|texte descriptif 3"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_modele.png", "speedTip": "Modèle", "tagOpen": "{{", "tagClose": "}}", "sampleText": "Nom du modèle"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_category.png", "speedTip": "Catégorie", "tagOpen": "[[Catégorie:", "tagClose": "]]", "sampleText": "nom de la catégorie"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_redirect.png", "speedTip": "Redirection", "tagOpen": "#REDIRECT [[", "tagClose": "]]", "sampleText": "Insert text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://geologie.pch.etat.lu/geowiki/skins/common/images/button_comment.png", "speedTip": "Commentaire visible uniquement aux éditeurs", "tagOpen": "<"+"!--", "tagClose": "--"+">", "sampleText": "Insérer commentaire ici"}; } /* Commandes SOUS la fenêtre de l'éditeur installé le 29/10/08 ========================== */ function includePage( name ) { document.write('<script type="text/javascript" src="' + wgScript + '?title=' + name + '&action=raw&ctype=text/javascript"><\/script>' ); } /* End of includePage */ /* Including extra .js pages */ // switches for scripts // TODO: migrate to JSConfig // var load_extratabs = true; var load_edittools = true; // extra drop down menu on editing for adding special characters includePage( 'MediaWiki:Edittools.js' ); /*================================================================*/ /* wikEd installation le 05/11/08 RC , http://en.wikipedia.org/wiki/User:Cacycle/wikEd_installation============== */ // install [[User:Cacycle/wikEd]] in-browser text editor document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' + '&action=raw&ctype=text/javascript"></' + 'script>'); /*================================================================*/