MediaWiki:Common.js/edit.js: Difference between revisions

adjusting button image paths to new locations
(updating button names, descriptions)
(adjusting button image paths to new locations)
Line 31: Line 31:
if (typeof usersignature == 'undefined') var usersignature = '-- \~\~\~\~';
if (typeof usersignature == 'undefined') var usersignature = '-- \~\~\~\~';


var Isrc='http://wiki.oni2.net/w/skins/common/images/';
var Isrc='http://wiki.oni2.net/w/images/';


// English Wikipedia creates 11 extra buttons which are stored in mwCustomEditButtons
// English Wikipedia creates 11 extra buttons which are stored in mwCustomEditButtons
Line 39: Line 39:


var BDict={
var BDict={
'A':['Button_headline2.png','Third-level headline','\n===','===','Secondary headline'],
'A':['e/e9/Button_headline2.png','Third-level headline','\n===','===','Secondary headline'],
'B':['Button_enter.png','Line break','<br />','',''],
'B':['1/13/Button_enter.png','Line break','<br />','',''],
'C':['Button_align_center.png','Center-aligned text','<div style="text-align: center;">\n','\n<\/div>','Centered text'],
'C':['f/f7/Button_align_center.png','Center-aligned text','<div style="text-align: center;">\n','\n<\/div>','Centered text'],
'D':['Button_align_left.png','Left-aligned text','<div style="text-align: left; direction: ltr; margin-left: 1em;">\n','\n<\/div>','Left-aligned text'],
'D':['e/ea/Button_align_left.png','Left-aligned text','<div style="text-align: left; direction: ltr; margin-left: 1em;">\n','\n<\/div>','Left-aligned text'],
'D1':['Button_align_right.png','Right-aligned text','<div style="text-align: right; direction: ltr; margin-left: 1em;">\n','\n<\/div>','Right-aligned text'],
'D1':['a/a5/Button_align_right.png','Right-aligned text','<div style="text-align: right; direction: ltr; margin-left: 1em;">\n','\n<\/div>','Right-aligned text'],
'E':['Button_cmpl_table.png','Smart Table','\n{| class="wikitable" \n|- \n| 1 || 2\n|- \n| 3 || 4','\n|}\n',''],
'E':['7/79/Button_cmpl_table.png','Smart Table','\n{| class="wikitable" \n|- \n| 1 || 2\n|- \n| 3 || 4','\n|}\n',''],
'F':['Button_font_color.png','Colored text','<span style="color: ','">Colored text<\/span>','ColorName'],
'F':['1/1e/Button_font_color.png','Colored text','<span style="color: ','">Colored text<\/span>','ColorName'],
'FS':['Button_unsigned.png','Unsigned post','{{subst:unsigned|','|date}}','user name or IP'],
'FS':['6/6d/Button_unsigned.png','Unsigned post','{{subst:unsigned|','|date}}','user name or IP'],
'G':['Button_gallery.png','Image gallery',"\n<gallery>\nImage:","|[[M63]]\nImage:Mona Lisa.jpg|[[Mona Lisa]]\nImage:Truite arc-en-ciel.jpg|Eine [[Forelle ]]\n<\/gallery>",'M63.jpg'],
'G':['1/12/Button_gallery.png','Image gallery',"\n<gallery>\nImage:","|[[M63]]\nImage:Mona Lisa.jpg|[[Mona Lisa]]\nImage:Truite arc-en-ciel.jpg|Eine [[Forelle ]]\n<\/gallery>",'M63.jpg'],
'H':['Button_comment.png','Comment',"<!--","-->",'Comment'],
'H':['7/74/Button_comment.png','Comment',"<!--","-->",'Comment'],
'I1':['Button_superscript.png','Superscript','<sup>','<\/sup>','Superscript text'],
'I1':['d/d6/Button_superscript.png','Superscript','<sup>','<\/sup>','Superscript text'],
'I2':['Button_subscript.png','Subscript','<sub>','<\/sub>','Subscript text'],
'I2':['b/bf/Button_subscript.png','Subscript','<sub>','<\/sub>','Subscript text'],
'J1':['Button_small_text.png','Small text','<small>','<\/small>','Small Text'],
'J1':['d/d5/Button_small_text.png','Small text','<small>','<\/small>','Small Text'],
'J2':['Button_big_text.png','Big text','<big>','<\/big>','Big text'],
'J2':['9/99/Button_big_text.png','Big text','<big>','<\/big>','Big text'],
'K':['Button_category.png','Category',"[[Category:","]]",'Category name'],
'K':['1/11/Button_category.png','Category',"[[Category:","]]",'Category name'],
'L':['Button_tab_in.png','Insert tab',':','',':'],
'L':['e/e2/Button_tab_in.png','Insert tab',':','',':'],
'M':['Button_blockquote.png','Quoted text block','<blockquote style="border: 1px solid blue; padding: 2em;">\n','\n<\/blockquote>','Block quote'],
'M':['f/fd/Button_blockquote.png','Quoted text block','<blockquote style="border: 1px solid blue; padding: 2em;">\n','\n<\/blockquote>','Block quote'],
'N':['Button_nbsp.png','Insert non-breaking space','&nbsp;','',''],
'N':['4/4b/Button_nbsp.png','Insert non-breaking space','&nbsp;','',''],
'O':['Button_code.png','Code block','<code>','<\/code>','Code'],
'O':['2/23/Button_code.png','Code block','<code>','<\/code>','Code'],
'P':['Button_pre.png','Pre-formatted text block','<pre>','<\/pre>','Pre-formatted text'],
'P':['3/3c/Button_pre.png','Pre-formatted text block','<pre>','<\/pre>','Pre-formatted text'],
'P1':['Button_subpage.png','Link to sub-page','[[','/Sub_Page]]','Page'],
'P1':['2/2e/Button_subpage.png','Link to sub-page','[[','/Sub_Page]]','Page'],
'Q':['Button_list_tab.png','Definition (tabbed) list','\n; ','\n: Item 1\n: Item 2','Definition'],
'Q':['1/1f/Button_list_tab.png','Definition (tabbed) list','\n; ','\n: Item 1\n: Item 2','Definition'],
'R':['Button_reflink_start.png','Insert a reference','<ref>','<\/ref>','Insert reference material'],
'R':['e/ef/Button_reflink_start.png','Insert a reference','<ref>','<\/ref>','Insert reference material'],
'R1':['Button_reflink_start.png','Start a reference','<ref name="','','Reference name'],
'R1':['e/ef/Button_reflink_start.png','Start a reference','<ref name="','','Reference name'],
'R2':['Button_reflink_src.png','Insert reference material','">','</ref>','Reference material'],
'R2':['9/90/Button_reflink_src.png','Insert reference material','">','</ref>','Reference material'],
'R3':['Button_reflink_end.png','No reference material','','"/>',''],
'R3':['c/c6/Button_reflink_end.png','No reference material','','"/>',''],
'R4':['Button_reflink_footer.png','Reference footer',"\n==Notes==\n<!--See http://en.wikipedia.org/wiki/Wikipedia:Footnotes for an explanation of how to generate footnotes using the <ref(erences/)> tags-->\n<div class=\'references-small\'>\n<references/>\n</div>",'',''],
'R4':['c/cb/Button_reflink_footer.png','Reference footer',"\n==Notes==\n<!--See http://en.wikipedia.org/wiki/Wikipedia:Footnotes for an explanation of how to generate footnotes using the <ref(erences/)> tags-->\n<div class=\'references-small\'>\n<references/>\n</div>",'',''],
'S':['Button_strike.png','Strikeout text','<s>','<\/s>','Struck-out text'],
'S':['c/c9/Button_strike.png','Strikeout text','<s>','<\/s>','Struck-out text'],
'T':['Button_template.png','Template','{{','}}','Template name'],
'T':['5/59/Button_template.png','Template','{{','}}','Template name'],
'TS':['Button_table_start.png','Start a table','{|','',''],
'TS':['a/a1/Button_table_start.png','Start a table','{|','',''],
'TC':['Button_table_cell.png','Table cell','|','',''],
'TC':['5/59/Button_table_cell.png','Table cell','|','',''],
'TE':['Button_table_end.png','End a table','','|}',''],
'TE':['f/f0/Button_table_end.png','End a table','','|}',''],
'TR':['Button_table_row.png','Start a table row','|-','',''],
'TR':['7/70/Button_table_row.png','Start a table row','|-','',''],
'T1':['Button_teletype.png','Teletype text','<tt>','<\/tt>','Teletype Text'],
'T1':['8/82/Button_teletype.png','Teletype text','<tt>','<\/tt>','Teletype Text'],
'TL':['Button_subst_tmpl.png','Template (substituted)',"{{subst:"+"tl|",'}}','Template name'],
'TL':['d/d3/Button_subst_tmpl.png','Template (substituted)',"{{subst:"+"tl|",'}}','Template name'],
'U':['Button_underline.png','Underlined text',"<u>","<\/u>",'Underlined text'],
'U':['f/fd/Button_underline.png','Underlined text',"<u>","<\/u>",'Underlined text'],
'V':['Button_redirect.png','Redirect',"#REDIRECT [[","]]",'Article Name'],
'V':['c/c8/Button_redirect.png','Redirect',"#REDIRECT [[","]]",'Article Name'],
'W':['Button_list_num.png','Numbered list',"\n# ","\n# Element 2\n# Element 3",'Element 1'],
'W':['5/50/Button_list_num.png','Numbered list',"\n# ","\n# Element 2\n# Element 3",'Element 1'],
'X':['Button_list_bull.png','Bulleted list',"\n* ","\n* Element B\n* Element C",'Element A'],
'X':['f/fa/Button_list_bull.png','Bulleted list',"\n* ","\n* Element B\n* Element C",'Element A'],
'Y1':['Button_noinclude.png','No include',"<noinclude>","<\/noinclude>",'Text'],
'Y1':['d/d5/Button_noinclude.png','No include',"<noinclude>","<\/noinclude>",'Text'],
'Y2':['Button_includeonly.png','Include only',"<includeonly>","<\/includeonly>",'Text'],
'Y2':['6/63/Button_includeonly.png','Include only',"<includeonly>","<\/includeonly>",'Text'],
'Z':['Button_substitute.png','Substituted page link',"{{subst:","}}",'Template'],
'Z':['3/35/Button_substitute.png','Substituted page link',"{{subst:","}}",'Template'],
'AI':['Button_adv_image.png','Advanced image',"[[Image:","|thumb|right|px|Caption]]",'FileName.jpg'],
'AI':['c/cc/Button_adv_image.png','Advanced image',"[[Image:","|thumb|right|px|Caption]]",'FileName.jpg'],
'GEO':['Button_geolink.png','Geo location',"","",""],
'GEO':['8/8d/Button_geolink.png','Geo location',"","",""],
'TALK':['Button_talk.png','Add talk template',"","",""]
'TALK':['Button_talk.png','Add talk template',"","",""]
};
};