Autochecked users, Bureaucrats, Editors, oversight, recentchangescleanup, Reviewers, rollback, Administrators
19,746
edits
(will fix buttons later, sorry) |
No edit summary |
||
Line 4: | Line 4: | ||
*/ | */ | ||
jQuery.getScript('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript', function () { | jQuery.getScript('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript', function () { | ||
buttomimagepath = "http://www.wikiislam.net/wiki/uploads/"; | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-1", | |||
icon: "http://upload.wikimedia.org/wikipedia/en/1/13/Button_enter.png", | |||
label: "Line break", | |||
insertBefore: "<br />", | |||
insertAfter: "", | |||
sampleText: ""}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-2", | |||
icon: "http://upload.wikimedia.org/wikipedia/en/8/80/Button_upper_letter.png", | |||
label: "Superscript", | |||
insertBefore: "<sup>", | |||
insertAfter: "</sup>", | |||
sampleText: "Superscript text"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-3", | |||
icon: "http://upload.wikimedia.org/wikipedia/en/7/70/Button_lower_letter.png", | |||
label: "Subscript", | |||
insertBefore: "<sub>", | |||
insertAfter: "</sub>", | |||
sampleText: "Subscript text"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-4", | |||
icon: "http://upload.wikimedia.org/wikipedia/en/5/58/Button_small.png", | |||
label: "Small", | |||
insertBefore: "<small>", | |||
insertAfter: "</small>", | |||
sampleText: "Small Text"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-5", | |||
icon: "http://upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png", | |||
label: "Insert hidden Comment", | |||
insertBefore: "<!-- ", | |||
insertAfter: " -->", | |||
sampleText: "Comment"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-6", | |||
icon: "http://upload.wikimedia.org/wikipedia/en/1/12/Button_gallery.png", | |||
label: "Insert a picture gallery", | |||
insertBefore: "\n<gallery>\n", | |||
insertAfter: "\n</gallery>", | |||
sampleText: "Image:Example.jpg|Caption1\nImage:Example.jpg|Caption2"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-7", | |||
icon: "http://upload.wikimedia.org/wikipedia/en/f/fd/Button_blockquote.png", | |||
label: "Insert block of quoted text", | |||
insertBefore: "<blockquote>\n", | |||
insertAfter: "\n</blockquote>", | |||
sampleText: "Block quote"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-8", | |||
icon: buttomimagepath + "0/04/Button_array.png", | |||
label: "Insert a table", | |||
insertBefore: '{| class="wikitable"\n|-\n', | |||
insertAfter: "\n|}", | |||
sampleText: "! header 1\n! header 2\n! header 3\n|-\n| row 1, cell 1\n| row 1, cell 2\n| row 1, cell 3\n|-\n| row 2, cell 1\n| row 2, cell 2\n| row 2, cell 3"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-9", | |||
icon: buttomimagepath + "7/79/Button_reflink.png", | |||
label: "Reference", | |||
insertBefore: "<"+ "ref>", | |||
insertAfter: "</ref>", | |||
sampleText: ""}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-10", | |||
icon: buttomimagepath + "a/ae/Button_RefList.png", | |||
label: "RefList Template", | |||
insertBefore: "{"+"{" + "reflist", | |||
insertAfter: "}}", | |||
sampleText: ""}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-11", | |||
icon: buttomimagepath + "6/69/Button_Wikipedia_link.png", | |||
label: "Wikipedia link", | |||
insertBefore: "[["+ "w:", | |||
insertAfter: "]]", | |||
sampleText: "Article|LinkText"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-12", | |||
icon: buttomimagepath + "b/b1/Button_Quran.png", | |||
label: "Quran", | |||
insertBefore: "{"+"{" + "Quran|", | |||
insertAfter: "}}", | |||
sampleText: "Surah|Verse"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-13", | |||
icon: buttomimagepath + "5/50/Button_HB.png", | |||
label: "Sahih Bukhari", | |||
insertBefore: "{"+"{" + "Bukhari|", | |||
insertAfter: "}}", | |||
sampleText: "Volume|Book|Verse"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-14", | |||
icon: buttomimagepath + "d/d6/Button_HM.png", | |||
label: "Sahih Muslim", | |||
insertBefore: "{"+"{" + "Muslim|", | |||
insertAfter: "}}", | |||
sampleText: "Book|Verse"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-15", | |||
icon: buttomimagepath + "1/11/Button_HTab.png", | |||
label: "Tabari", | |||
insertBefore: "{"+"{" + "Tabari|", | |||
insertAfter: "}}", | |||
sampleText: "Volume|Pages"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-16", | |||
icon: buttomimagepath + "2/2d/Button_HAd.png", | |||
label: "Abu Dawud", | |||
insertBefore: "{"+"{" + "Abudawud|", | |||
insertAfter: "}}", | |||
sampleText: "Book|Verse"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-17", | |||
icon: buttomimagepath + "9/94/Button_HMw.png", | |||
label: "Muwatta", | |||
insertBefore: "{"+"{" + "Muwatta|", | |||
insertAfter: "}}", | |||
sampleText: "Book|Section|Verse|"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-18", | |||
icon: buttomimagepath + "f/ff/Button_HIM.png", | |||
label: "Ibn Majah", | |||
insertBefore: "{"+"{" + "Ibn Majah|", | |||
insertAfter: "}}", | |||
sampleText: "Volume|Book|Hadith"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-19", | |||
icon: buttomimagepath + "0/0f/Button_Quote.png", | |||
label: "Quote Box", | |||
insertBefore: "{"+"{" + "Quote|", | |||
insertAfter: "}}", | |||
sampleText: "Source|QuotationText|SecondaryText"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-20", | |||
icon: buttomimagepath + "9/91/Button_cite_web.png", | |||
label: "Cite web", | |||
insertBefore: "{"+"{" + "Cite web|", | |||
insertAfter: "}}", | |||
sampleText: "url= |title= |publisher= |author= |date= |archiveurl= |deadurl=no"}); | |||
krInsertWikiEditorButton({ | |||
id: "mw-customeditbutton-button-21", | |||
icon: buttomimagepath + "0/02/Button_cite_web_quote.png", | |||
label: "Cite web for Quote box", | |||
insertBefore: "{"+"{" + "Cite web quotebox|", | |||
insertAfter: "}}", | |||
sampleText: "url= |title= |publisher= |author= |date= |archiveurl= |deadurl=no"}); | |||
/* | /* | ||
// Buttons are: | |||
Button_HTab.png | Button_HTab.png | ||
Button_reflink.png | Button_reflink.png | ||
Line 20: | Line 192: | ||
Button_cite_web.png | Button_cite_web.png | ||
Button_cite_web_quote.png | Button_cite_web_quote.png | ||
*/ | */ | ||
edits