Difference between revisions of "User:Root/common.js"
From www.PSALTIKI.info
|
|
| (7 intermediate revisions by the same user not shown) |
| Line 1: |
Line 1: |
| − | // OLD WAY - "classic toolbar":
| |
| − | mw.toolbar.addButton({
| |
| − | imageId: 'mw-customeditbutton-myspecialbutton',
| |
| − | imageFile: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png',
| |
| − | speedTip: "Title label",
| |
| − | tagOpen: "Smile (",
| |
| − | tagClose: ")",
| |
| − | sampleText: "sample"
| |
| − | });
| |
| | | | |
| − | // NEW WAY - "WikiEditor":
| |
| − | krInsertWikiEditorButton({
| |
| − | id: 'mw-customeditbutton-myspecialbutton',
| |
| − | icon: '//upload.wikimedia.org/wikipedia/commons/thumb/a/a4/Gnome-face-smile.svg/22px-Gnome-face-smile.svg.png',
| |
| − | label: 'Title label',
| |
| − | insertBefore: 'Smile (',
| |
| − | insertAfter: ')',
| |
| − | sampleText: 'sample'
| |
| − | });
| |
Latest revision as of 21:37, 28 June 2017