Manual:Custom edit buttons



You can add custom edit buttons to the edit toolbar above the edit window.

To add custom edit buttons, edit:


 * User:Your username/skinname.js -- the buttons will only show up for yourself. (Important: In Localsettings.php add $wgAllowUserJs = true; )


 * or MediaWiki:Common.js -- they will show to all wiki users.

Example:


 * {|width=20%


 * }


 * imageFile is the full URL address to the edit button image.
 * tagOpen is the opening tag,  in this example:
 * sampleText is the sample text that will appear between the opening and closing tags. The editor should replace this sample text with his or her own text.

Script for downloading icon images from English Wikipedia
Please do not hotlink images from Wikimedia Commons or Wikipedia! Upload them to your web host instead. See the next section to upload images from wikipedia.

To use a script for downloading images from English Wikipedia:

Create a file with the URLs:

$ cat >urls http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png http://upload.wikimedia.org/wikipedia/en/6/60/Button_insert_table.png http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png http://upload.wikimedia.org/wikipedia/commons/7/79/Button_reflink.png

Download images with wget

$ wget -N -i urls