User:Vildricianus/editbar.js

//

// EDITBAR EXPANSION - from Rei-artur@pt.wikipedia

window.AddMyOwnButton=function(tbar, caption, href, imgsrc) { var ba = document.createElement('a'); ba.href = href; var img = document.createElement('img'); img.src = imgsrc; img.alt = caption; ba.appendChild(img); tbar.appendChild(ba); }

window.myOwnEditButtons=function { var tbdiv=document.getElementById('toolbar'); if ( tbdiv ) { tbdiv.appendChild(document.createTextNode(' '));

//   AddMyOwnButton(tbdiv, 'ahd', 'javascript:insertTags(\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

//   AddMyOwnButton(tbdiv, 'ipa', 'javascript:insertTags(\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

//   AddMyOwnButton(tbdiv, 'sampa', 'javascript:insertTags(\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

//===,===   // AddMyOwnButton(tbdiv, 'h3', 'javascript:insertTags(\'===\',\'===\\n\',\'header\');', 'http://upload.wikimedia.org/wikipedia/en/e/e9/Button_headline2.png');

//,   AddMyOwnButton(tbdiv, 'txt2predef', 'javascript:insertTags(\'\',\'\');', 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_topredef.png');

//, also: http://upload.wikimedia.org/wikipedia/commons/b/bf/WP-icon.png AddMyOwnButton(tbdiv, 'pedia', 'javascript:insertTags(\'\',\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/7/7f/Button_link_to_Wikipedia.png');

// , AddMyOwnButton(tbdiv, '', 'javascript:insertTags(\'\',\'\',\'\');', 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_tt.png');

//    // AddMyOwnButton(tbdiv, '  ', 'javascript:insertTags(\' \',\' \',\'\');', 'http://republico.estv.ipv.pt/~nmct/wikipedia/icons/button_small.png');

//    // AddMyOwnButton(tbdiv, '  ', 'javascript:insertTags(\' \',\' \',\'\');', 'http://upload.wikimedia.org/wikipedia/en/c/c9/Button_strike.png');

//    // AddMyOwnButton(tbdiv, '  ', 'javascript:insertTags(\' \',\' \',\'\');', 'http://users.skynet.be/fb242895/Button_includeonly.PNG');

//    // AddMyOwnButton(tbdiv, '  ', 'javascript:insertTags(\' \',\' \',\'\');', 'http://users.skynet.be/fb242895/Button_noinclude.PNG');

//   // AddMyOwnButton(tbdiv, 'ttbc', 'javascript:insertTags(\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

// [[Category:,]] AddMyOwnButton(tbdiv, 'category', 'javascript:insertTags(\'[\[Category:\',\']]\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/1/11/Button_category.png');

// #redirect , AddMyOwnButton(tbdiv, 'redirect', 'javascript:insertTags(\'#\REDIRECT\[\[\',\']]\',\'\');', 'http://upload.wikimedia.org/wikipedia/en/c/c8/Button_redirect.png');

// top/mid/bottom AddMyOwnButton(tbdiv, 'topmidbot', 'javascript:insertTags(\'\\n\\n\\n\',\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

// refs AddMyOwnButton(tbdiv, 'ref', 'javascript:insertTags(\'===References===\\n\\n\\n\',\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

//    AddMyOwnButton(tbdiv, 'pedia', 'javascript:insertTags(\'\\n\',\'\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/b/bf/WP-icon.png');

//   AddMyOwnButton(tbdiv, 'noun', 'javascript:insertTags(\'\{\{en-noun\',\'}\}\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

// Quotes AddMyOwnButton(tbdiv, 'en', 'javascript:insertTags(\'====Quotations====\\n\*\{\{RQ:Authorized Version}}\, \',\'\\n\*: \\n\',\'\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

//    AddMyOwnButton(tbdiv, 'pgnm', 'javascript:insertTags(\'\\\'\\\'\\\'{\{subst:PAGENAME}}\\\'\\\'\\\'\\n\\n\',\'\',\'\');', 'http://users.skynet.be/fb242895/Button_pagename.PNG');

// English entry AddMyOwnButton(tbdiv, 'en', 'javascript:insertTags(\'==English==\\n\\n===\',\'===\\n\{\{en-noun}}\\n\\n# \\n\',\'Part of speech\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

// Dutch entry // AddMyOwnButton(tbdiv, 'en', 'javascript:insertTags(\'==Dutch==\\n\\n===Noun===\\n\\\'\\\'\\\'{\{subst:PAGENAME}}\\\'\\\'\\\'\\n\\n# \',\'\\n\\n\[\[Category:Dutch nouns\]\]\',\'def\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

// German entry // AddMyOwnButton(tbdiv, 'en', 'javascript:insertTags(\'==German==\\n\\n===\',\'===\\n\\\'\\\'\\\'{\{subst:PAGENAME}}\\\'\\\'\\\'\\n\\n# \\n\',\'Part of speech\');', 'http://upload.wikimedia.org/wikipedia/commons/5/59/Button_template.png');

} }

myAddOnload(myOwnEditButtons);

//