Jump to content

User:Forum User/monobook.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Forum User (talk | contribs) at 21:57, 27 August 2006. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// Script from [[User:MarkS/extraeditbuttons.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function InsertButtonsToToolBar()
{
//Include only button
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "/media/wikipedia/en/c/c9/Button_strike.png",
    "speedTip": "Includeonly",
    "tagOpen": "<includeonly>",
    "tagClose": "</includeonly>",
    "sampleText": "Included text"}
//Not Include Button
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "/media/wikipedia/en/c/c9/Button_strike.png",
    "speedTip": "Noinclude",
    "tagOpen": "<noinclude>",
    "tagClose": "</noinclude>",
    "sampleText": "Not-included text"}
//Category link button
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "/media/wikipedia/commons/5/5a/Button_category_alt.png",
    "speedTip": "Category link",
    "tagOpen": "[[:Category:",
    "tagClose": "]]",
    "sampleText": "Name of category"}
//Template link
mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "/media/wikipedia/commons/5/5a/Button_category_alt.png",
    "speedTip": "Using 'tl'",
    "tagOpen": "{{tl|",
    "tagClose": "}}",
    "sampleText": "Template name"}
}
addOnloadHook( InsertButtonsToToolBar );