User:Der Papst/monobook.js

function InsertButtonsToToolBar { tooly = document.getElementById('toolbar'); if (tooly != null) { StrikeTextButton = "  ";

LeftTexttButton = "\\n','\\n ','Left-aligned text');\">";

CenterTextButton = "',' ','Centered text');\">";

TableButton = "";

EenterButton = "";

UpperTextButton = "<img

src=\"http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png\"

alt=\"Superscript\" title=\"Superscript text\"></a>";

LowerTextlButton = "<a href=\"javascript:insertTags(,,'Subscript');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png\"

alt=\"Subscript\" title=\"Subscript text\"></a>";

SmallTextButton = "<a href=\"javascript:insertTags(' ',' ','Small

text');\"><img src=\"http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png\"

alt=\"Small\" title=\"Small text\"></a>";

CommentButton = "<a href=\"javascript:insertTags('','Comment here');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png\"

alt=\"Comment\" title=\"Insert hidden comment\"></a>";

GalleryButton = "<a

href=\"javascript:insertTags('\\n','Image:FileName.jpg|Caption1\

\Image:FileName2.jpg|Caption2');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png\" alt=\"Gallery\"

title=\"Insert a picture gallery\"></a>";

SecondaryHeadlineButton = "<a href=\"javascript:insertTags('\\n===','===','Secondary

headline');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/e/e9/Button_headline2.png\" alt=\"2nd

header\" title=\"Insert secondary headline\"></a>";

ShiftingButton = "<a href=\"javascript:insertTags(':','',':');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/8/8e/Button_shifting.png\" alt=\"Tab\"

title=\"Insert tab(s)\"></a>";

BlockQuoteButton = "<a href=\"javascript:insertTags('<blockquote style="border: 1px solid

blue; padding: 2em;\">\\n','\\n ','Block quote');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png\" alt=\"Block

quote\" title=\"Insert block of quoted text\"></a>";

FontColorButton = "<a href=\"javascript:insertTags('<span style="color:

ColorName">',' ','Span of text');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/1/1e/Button_font_color.png\" alt=\"Color\"

title=\"Insert colored text\"></a>";

CodeButton = "<a href=\"javascript:insertTags(' ','Code');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/2/23/Button_code.png\" alt=\"Code\"

title=\"Insert code\"></a>";

SubLinkButton = "<a href=\"javascript:insertTags('Page','Sub_page');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/9/93/Button_sub_link.png\" alt=\"sub-page

link\" title=\"Insert link to sub-page\"></a>";

DefinitionListCodeButton = "<a href=\"javascript:insertTags('\\n; ',' : ','Insert

text');\"><img

src=\"http://upload.wikimedia.org/wikipedia/en/d/d3/Button_definition_list.png\"

alt=\"Definition\" title=\"Insert definition list\"></a>";

tooly.innerHTML = tooly.innerHTML + StrikeTextButton + LeftTexttButton + CenterTextButton +

TableButton + EenterButton + UpperTextButton + LowerTextlButton + SmallTextButton +

CommentButton + GalleryButton + SecondaryHeadlineButton + ShiftingButton + BlockQuoteButton

+ FontColorButton + CodeButton + SubLinkButton + DefinitionListCodeButton; } } window.onload = InsertButtonsToToolBar;