MediaWiki:Common.js
Jump to navigation
Jump to search
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. */ if (mw.toolbar) { mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_spacer.png", "speedTip": "", "tagOpen": "", "tagClose": "", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_album.png", "speedTip": "Album insert", "tagOpen": "\{\{album\n| year=", "tagClose": "\n| isOfficial=\n| isLive=\n| isCompilation=\n| isSampler=\n| image=foo.jpg\n}}\n", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_video.png", "speedTip": "Video insert", "tagOpen": "\{\{video\n| year=", "tagClose": "\n| isOfficial=\n| medium=\n| image=\n}}\n", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_photo.png", "speedTip": "Photo insert", "tagOpen": "\{\{concert photo\n| who=", "tagClose": "\n| what=\n| where=\n| when=\n| photographer=\n}}\n", "sampleText": "Gary Green, Ray Shulman, John Weathers, Derek Shulman, Kerry Minnear" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_midi.png", "speedTip": "MIDI file insert", "tagOpen": "\{\{midi\n| song=", "tagClose": "\n| album=\n| contributor=\n}}\n", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_sheetmusic.png", "speedTip": "Sheet music insert", "tagOpen": "\{\{sheetmusic\n| song=", "tagClose": "\n| album=\n| contributor=\n}}\n", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_mp3.png", "speedTip": "MP3 insert", "tagOpen": "\{\{mp3\n| title=", "tagClose": "\n| date=\n| live=\n| contributor=\n}}\n", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_advertisement.png", "speedTip": "Advertisement insert", "tagOpen": "\{\{advertisement\n| item=", "tagClose": "\n| date=\n| source=\n|description=\n}}\n", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_poster.png", "speedTip": "Poster insert", "tagOpen": "\{\{poster\n| item=", "tagClose": "\n| day=\n| year=\n| source=\n|description=\n}}\n", "sampleText": "" }); mw.toolbar.addButton({ "imageFile": "/w/extensions/other/MyEditButtons/images/button_memory.png", "speedTip": "Memory insert", "tagOpen": "\{\{memory}}\n", "tagClose": "", "sampleText": "" }); }