MediaWiki:Common.js

/******************************************************************************************************************************/

/******************************************************************************************************************************/

/******************************************************************************************************************************/

/*********************************************************************** W I K I E D I T O R B U T T O N S *******************/

/************************************************ WikiEditor Buttons/Customization ********************************************/

/******************************************************************************************************************************/

/****************************************************************************************************************************** * Extra buttons in toolbar * @stats ******************************************************************************************************************************/ mw.loader.using('ext.wikiEditor', function {	$.ajax({ url: 'https://meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/InsertWikiEditorButton.js&action=raw&ctype=text/javascript', dataType: 'script', cache: true }).done(function { // REFERENCE with ID		krInsertWikiEditorButton({			id: "mw-customeditbutton-refidbutton",			icon: "/w/images/9/97/Editor_Button_-_Reference.png",			label: 'Reference with ID',			insertBefore: ' ',			sampleText: ''		}); // BOOK CITATION krInsertWikiEditorButton({			id: "mw-customeditbutton-citebookbutton",			icon: "/w/images/7/73/Editor_Button_-_Reference_Book.png",			label: 'Cite book',			insertBefore: ' ',			sampleText: '...not all parameters required.--see Template:Cite_book for documentation...'		}); // WEB CITATION krInsertWikiEditorButton({			id: "mw-customeditbutton-citewebbutton",			icon: "/w/images/3/38/Editor_Button_-_Reference_Website.png",			label: 'Cite web',			insertBefore: ' ',			sampleText: ''		}); // CORRECT FORMAT GALLERY krInsertWikiEditorButton({			id: "mw-customeditbutton-gallerybutton",			icon: "/w/images/f/f6/Editor_Button_-_Correct_Gallery.png",			label: 'Gallery',			insertBefore: '',			sampleText: 'Test Image.png'		}); // YOUTUBE EMBED krInsertWikiEditorButton({			id: "mw-customeditbutton-youtubebutton",			icon: "/w/images/d/de/Editor_Button_-_YouTube.png",			label: 'YouTube embed',			insertBefore: '',			insertAfter: ' ',			sampleText: '...Put YT video ID here; remove _width="300" height="169"_ to make default size ~ 300x169 is specifically for infoboxes and video galleries...'		}); // DAILYMOTION EMBED krInsertWikiEditorButton({			id: "mw-customeditbutton-dailymotionbutton",			icon: "/w/images/8/8c/Editor_Button_-_Dailymotion.png",			label: 'Dailymotion embed',			insertBefore: '',			insertAfter: ' ',			sampleText: '...Put Dailymotion video ID here; remove _width="300" height="169"_ to make default size ~ 300x169 is specifically for infoboxes and video galleries...'		}); // NICONICO EMBED krInsertWikiEditorButton({			id: "mw-customeditbutton-niconicobutton",			icon: "/w/images/2/24/Editor_Button_-_NicoVideo.png",			label: 'NicoVideo embed',			insertBefore: '',			insertAfter: ' ',			sampleText: '...Put Nico Nico video ID here; remove _width="299" height="165"_ to make default size ~ 299x165 is specifically for infoboxes and video galleries...'		}); // TABBER krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxtabberbutton",			icon: "/w/images/0/08/Editor_Button_-_Tabber.png",			label: 'Tabber',			insertBefore: '\r \r',			insertAfter: '\r \r ',			sampleText: ''		}); // DVD INFO krInsertWikiEditorButton({			id: "mw-customeditbutton-dvdbutton",			icon: "/w/images/4/4f/Editor_Button_-_DVD_Info.png",			label: 'Insert DVD information',			insertBefore: '\'\'\'COMPANY\'\'\' VHS[or]LaserDisc[or]Blu-ray[or]DVD (YEAR) [collection] \r*\'\'\'Region:\'\'\' \r*\'\'\'Discs:\'\'\' \r*\'\'\'SRP:\'\'\' $\r*\'\'\'Audio:\'\'\' \r*\'\'\'Subtitles:\'\'\' \r*\'\'\'Special features:\'\'\' \r*\'\'\'Notes:\'\'\' ',			insertAfter: ,			sampleText: 		}); // STAFF and CAST Information krInsertWikiEditorButton({			id: "mw-customeditbutton-staffcastbutton",			icon: "/w/images/e/eb/Editor_Button_-_Staff_and_Cast.png",			label: 'Insert Staff and Cast information',			insertBefore: '==Staff==\r\r==Cast==\r',			insertAfter: ,			sampleText: 		}); // FILM Tab and Nav krInsertWikiEditorButton({			id: "mw-customeditbutton-filmtabnavbutton",			icon: "/w/images/9/95/Editor_Button_-_Nav.png",			label: 'Tab and navigation (film)',			insertBefore: '\r',			insertAfter: ,			sampleText: 		}); // INFOBOX KAIJU krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxkaijubutton",			icon: "/w/images/b/b8/Editor_Button_-_Infobox_Kaiju.png",			label: 'Kaiju infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX FILM krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxfilmbutton",			icon: "/w/images/6/68/Editor_Button_-_Infobox_Film.png",			label: 'Film infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX VIDEO GAME krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxvideogamebutton",			icon: "/w/images/f/fb/Editor_Button_-_Infobox_Game.png",			label: 'Video game infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX BOOK krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxbookbutton",			icon: "/w/images/7/70/Editor_Button_-_Infobox_Book.png",			label: 'Book infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX SOUNDTRACK krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxsoundtrackbutton",			icon: "/w/images/4/44/Editor_Button_-_Infobox_Soundtrack.png",			label: 'Soundtrack infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX SONG krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxsongbutton",			icon: "/w/images/1/17/Editor_Button_-_Infobox_Song.png",			label: 'Song infobox',			insertBefore: '',			sampleText: '!!!OR!!!\r|video       =...Put YT video ID here; remove _width="300" height="169"_ to make default size ~ 300x169 is specifically for infoboxes and video galleries... \r'		}); // INFOBOX TV SHOW krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxtvshowbutton",			icon: "/w/images/2/22/Editor_Button_-_Infobox_TV.png",			label: 'TV show infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX EPISODE krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxepisodebutton",			icon: "/w/images/f/f1/Editor_Button_-_Infobox_Episode.png",			label: 'Episode infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX VEHICLE krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxvehiclebutton",			icon: "/w/images/d/d4/Editor_Button_-_Infobox_Weapon.png",			label: 'Vehicle infobox',			insertBefore: ,			sampleText: 		}); // INFOBOX PERSON krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxpersonbutton",			icon: "/w/images/9/93/Editor_Button_-_Infobox_Real_Person.png",			label: 'Real person infobox',			insertBefore: ,			insertAfter: ,			sampleText: ''		}); // INFOBOX CHARACTER krInsertWikiEditorButton({			id: "mw-customeditbutton-infoboxcharacterbutton",			icon: "/w/images/f/f6/Editor_Button_-_Infobox_Character.png",			label: 'Character infobox',			insertBefore: ,			sampleText: 		}); }); } ); /**************************************************/

/*************** END WikiEditor ******************/

/************************************************/