MediaWiki:Common.js
Aus VMS1 Tutorial
Hinweis: Leere nach dem Speichern den Browser-Cache, um die Änderungen zu sehen: Mozilla/Firefox: Shift-Strg-R, Internet Explorer: Strg-F5, Opera: F5, Safari: ⌘-R, Konqueror: Strg-R.
/* Jedes JavaScript hier wird für alle Benutzer für jede Seite geladen. */ <|>var|> button = { "imageFile": "../skins/common/images/button_php1.png", //image to be shown on the button (may be a full URL too), 22x22 pixels "speedTip": "PHP Code", //text shown in a tooltip when hovering the mouse over the button "tagOpen": '<source lang="php">', //the text to use to mark the beginning of the block "tagClose": "</source>", //the text to use to mark the end of the block (if any) "sampleText": "<?php " //the sample text to place inside the block }; mwCustomEditButtons.push(button);