19,809
edits
m (missed the suffixes on these) |
(updating button names, descriptions) |
||
| Line 37: | Line 37: | ||
// so we count them here. | // so we count them here. | ||
var enExtraButtons=mwCustomEditButtons.length; | var enExtraButtons=mwCustomEditButtons.length; | ||
var BDict={ | var BDict={ | ||
'A':['Button_headline2.png',' | 'A':['Button_headline2.png','Third-level headline','\n===','===','Secondary headline'], | ||
'B':['Button_enter.png','Line break','<br />','',''], | 'B':['Button_enter.png','Line break','<br />','',''], | ||
'C':['Button_align_center.png','Center- | 'C':['Button_align_center.png','Center-aligned text','<div style="text-align: center;">\n','\n<\/div>','Centered text'], | ||
'D':['Button_align_left.png','Left- | 'D':['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- | 'D1':['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','Table','\n{| class="wikitable" \n|- \n| 1 || 2\n|- \n| 3 || 4','\n|}\n',''], | 'E':['Button_cmpl_table.png','Smart Table','\n{| class="wikitable" \n|- \n| 1 || 2\n|- \n| 3 || 4','\n|}\n',''], | ||
'F':['Button_font_color.png',' | 'F':['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':['Button_unsigned.png','Unsigned post','{{subst:unsigned|','|date}}','user name or IP'], | ||
'G':['Button_gallery.png',' | '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'], | ||
'H':['Button_comment.png','Comment',"<!--","-->",'Comment'], | 'H':['Button_comment.png','Comment',"<!--","-->",'Comment'], | ||
'I1':[' | 'I1':['Button_superscript.png','Superscript','<sup>','<\/sup>','Superscript text'], | ||
'I2':[' | 'I2':['Button_subscript.png','Subscript','<sub>','<\/sub>','Subscript text'], | ||
'J1':[' | 'J1':['Button_small_text.png','Small text','<small>','<\/small>','Small Text'], | ||
'J2':[' | 'J2':['Button_big_text.png','Big text','<big>','<\/big>','Big text'], | ||
'K':['Button_category.png','Category',"[[Category:","]]",'Category name'], | 'K':['Button_category.png','Category',"[[Category:","]]",'Category name'], | ||
'L':['Button_tab_in.png','Insert tab | 'L':['Button_tab_in.png','Insert tab',':','',':'], | ||
'M':['Button_blockquote.png',' | 'M':['Button_blockquote.png','Quoted text block','<blockquote style="border: 1px solid blue; padding: 2em;">\n','\n<\/blockquote>','Block quote'], | ||
'N':['Button_nbsp.png',' | 'N':['Button_nbsp.png','Insert non-breaking space',' ','',''], | ||
'O':['Button_code.png',' | 'O':['Button_code.png','Code block','<code>','<\/code>','Code'], | ||
'P':['Button_pre.png','Pre formatted | 'P':['Button_pre.png','Pre-formatted text block','<pre>','<\/pre>','Pre-formatted text'], | ||
'P1':['Button_subpage.png',' | 'P1':['Button_subpage.png','Link to sub-page','[[','/Sub_Page]]','Page'], | ||
'Q':['Button_list_tab.png',' | 'Q':['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':['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':['Button_reflink_start.png','Start a reference','<ref name="','','Reference name'], | ||
| Line 67: | Line 66: | ||
'R3':['Button_reflink_end.png','No reference material','','"/>',''], | 'R3':['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':['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','<s>','<\/s>','Struck out text'], | 'S':['Button_strike.png','Strikeout text','<s>','<\/s>','Struck-out text'], | ||
'T':['Button_template.png','Template','{{','}}','Template name'], | 'T':['Button_template.png','Template','{{','}}','Template name'], | ||
'TS':['Button_table_start.png','Start a table','{|','',''], | 'TS':['Button_table_start.png','Start a table','{|','',''], | ||
| Line 74: | Line 73: | ||
'TR':['Button_table_row.png','Start a table row','|-','',''], | 'TR':['Button_table_row.png','Start a table row','|-','',''], | ||
'T1':['Button_teletype.png','Teletype text','<tt>','<\/tt>','Teletype Text'], | 'T1':['Button_teletype.png','Teletype text','<tt>','<\/tt>','Teletype Text'], | ||
'TL':['Button_subst_tmpl.png','Template | 'TL':['Button_subst_tmpl.png','Template (substituted)',"{{subst:"+"tl|",'}}','Template name'], | ||
'U':['Button_underline.png','Underlined',"<u>","<\/u>",'Underlined text'], | 'U':['Button_underline.png','Underlined text',"<u>","<\/u>",'Underlined text'], | ||
'V':['Button_redirect.png','Redirect',"#REDIRECT [[","]]",'Article Name'], | 'V':['Button_redirect.png','Redirect',"#REDIRECT [[","]]",'Article Name'], | ||
'W':['Button_list_num.png',' | 'W':['Button_list_num.png','Numbered list',"\n# ","\n# Element 2\n# Element 3",'Element 1'], | ||
'X':['Button_list_bull.png',' | 'X':['Button_list_bull.png','Bulleted list',"\n* ","\n* Element B\n* Element C",'Element A'], | ||
'Y1':['Button_noinclude.png','No | 'Y1':['Button_noinclude.png','No include',"<noinclude>","<\/noinclude>",'Text'], | ||
'Y2':['Button_includeonly.png','Include only',"<includeonly>","<\/includeonly>",'Text'], | 'Y2':['Button_includeonly.png','Include only',"<includeonly>","<\/includeonly>",'Text'], | ||
'Z':['Button_substitute.png',' | 'Z':['Button_substitute.png','Substituted page link',"{{subst:","}}",'Template'], | ||
'AI':['Button_adv_image.png','Advanced | 'AI':['Button_adv_image.png','Advanced image',"[[Image:","|thumb|right|px|Caption]]",'FileName.jpg'], | ||
'GEO':['Button_geolink.png','Geo location',"","",""], | 'GEO':['Button_geolink.png','Geo location',"","",""], | ||
'TALK':['Button_talk.png','Add talk template',"","",""] | 'TALK':['Button_talk.png','Add talk template',"","",""] | ||
| Line 213: | Line 212: | ||
// table | // table | ||
extendAButton(Isrc+" | extendAButton(Isrc+"Button_cmpl_table.png",XEBPopupTable) | ||
extendAButton(Isrc+"Button_reflink.png",XEBPopupRef) | extendAButton(Isrc+"Button_reflink.png",XEBPopupRef) | ||
extendAButton(Isrc+"Button_geolink.png",XEBPopupGeoLink) | extendAButton(Isrc+"Button_geolink.png",XEBPopupGeoLink) | ||
extendAButton(Isrc+"Button_talk.png",XEBPopupTalk) | extendAButton(Isrc+"Button_talk.png",XEBPopupTalk) | ||
extendAButton(Isrc+"Button_adv_image.png",XEBPopupImage) | extendAButton(Isrc+"Button_adv_image.png",XEBPopupImage) | ||
//extendAButton(Isrc+" | //extendAButton(Isrc+"Button_superscript.png",XEBPopupFormattedText) | ||
// redirect -##IE doesn't like this line. Object doesn't support this property or method | // redirect -##IE doesn't like this line. Object doesn't support this property or method | ||