User:Peteparker/monaco.js

/* //////////////////////////////////////////////////////////////////// // THE BELOW CODE ADDS CUSTOM BUTTONS TO THE JAVASCRIPT EDIT TOOLBAR ////////////////////////////////////////////////////////////////////

if (mwCustomEditButtons) { mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images3.wikia.nocookie.net/marveldatabase/images/f/f0/Organization_Button.png", "speedTip": "Organization Template", "tagOpen": "\{\{Marvel Database:Organization Template\r| Image                  = ", "tagClose": "| OfficialName           = \r| Aliases                 = \r\r| Status                  = \r| Identity                = \r| Universe                = \r| BaseOfOperations        = \r\r| OrganizationLeaders     = \r| CurrentMembers          = \r| FormerMembers           = \r| Allies                  = \r| Enemies                 = \r\r| Origin                  = \r| PlaceOfFormation        = \r| PlaceOfDefunction       = \r| Creators                = \r| First                   = \r| Last                    = \r\r| HistoryText             = \r\r| Equipment               = \r| Transportation          = \r| Weapons                 = \r\r| Notes                   = \r| Trivia                  = \r| Links                   = \r\}\}", "sampleText": "Insert text"}; mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/marveldatabase/images/0/08/Sub(s)_Button.png", "speedTip": "Sub(s)", "tagOpen": "", "tagClose": "", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images4.wikia.nocookie.net/marveldatabase/images/4/49/Glossary_Button.png", "speedTip": "Glossary Entry", "tagOpen": "\{\{Marvel Database:Glossary Template\r| Title            = \{\{subst:#explode:\{\{subst:PAGENAME\}\}|:|1\}\}\r| Image             = \r| Definition        = ", "tagClose": "\r| SeeAlso          = \r\}\}", "sampleText": ""};

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/marveldatabase/images/3/3a/Comic_Button.png", "speedTip": "Revised Comic Template", "tagOpen": "\{\{Marvel Database:Comic Template\r| Image              = ", "tagClose": "\r| Month              = \r| Year                = \r\r| Editor-in-Chief     = \r| CoverArtist1        = \r\r| Editor1_1           = \r| Writer1_1           = \r| Penciler1_1         = \r| Inker1_1            = \r| Colourist1_1        = \r| Letterer1_1         = \r\r| Quotation           = \r| Speaker             = \r\r| StoryTitle1         = \r| Synopsis1           = \r\r| Appearing1 = \rFeatured Characters:\r* \rSupporting Characters:\r* \rVillains:\r* \rOther Characters:\r* \rLocations:\r* \rItems:\r* \rVehicles:\r* \r\r| Notes               = \r| Trivia              = \r| Recommended         = \r| Links               = \r\}\}", "sampleText": ""}

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/marveldatabase/images/d/d6/Event_Button.png", "speedTip": "Insert event template", "tagOpen": "\{\{Marvel Database:Event Template\r| EventImage             = ", "tagClose": "| EventName              = \r| Aliases                 = \r| Universe                = \r| Locations               = \r| Heroes                  = \r| Villains                = \r| Others                  = \r| Creators                = \r\r| FullSynopsis            = \r\r| ImagePart1              = \r| NamePart1               = \r| Synopsis1               = \r\r| ImagePart2              = \r| NamePart2               = \r| Synopsis2               = \r\r| ImagePart3              = \r| NamePart3               = \r| Synopsis3               = \r\r| Notes                   = \r| Trivia                  = \r| Links                   = \r\}\}", "sampleText": ""}

mwCustomEditButtons[mwCustomEditButtons.length] = { "imageFile": "http://images.wikia.com/marveldatabase/images/d/dc/Welcome_Button.png", "speedTip": "Welcome", "tagOpen": "\{\{subst:Welcome|", "tagClose": "\}\}", "sampleText": ""}

}