Content deleted Content added
Polygnotus (talk | contribs) ←Created page with '//I should be able to combine these //colours are weird in dark mode if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !== -1) { mw.hook('wikiEditor.toolbarReady').add(function($textarea) { $textarea.wikiEditor('addToToolbar', { section: 'advanced', group: 'insert', tools: { buttonId: { label: 'Vandalism warning level 1', type: 'button', icon: '//upload.wikimedia.org/wikipedia/commons/8/...' |
Polygnotus (talk | contribs) No edit summary |
||
Line 1:
//I should be able to combine these
//colours are weird in dark mode
if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !== -1) {
mw.hook('wikiEditor.toolbarReady').add(function($textarea) {
$textarea.wikiEditor('addToToolbar', {
section: 'advanced',
group: 'insert',
tools: {
buttonId: {
label: 'Welcome',
type: 'button',
icon: '//https://upload.wikimedia.org/wikipedia/commons/8/82/NotoSans_-_Raised_Hand_With_Fingers_Splayed_-_1F590.svg',
action: {
type: 'encapsulate',
options: {
pre: '{{subst:' + 'Welcome-newuser|heading=no}} ~~' + '~~',
}
}
}
}
});
});
}
if (['edit', 'submit'].indexOf(mw.config.get('wgAction')) !== -1) {
Line 17 ⟶ 44:
pre: '{{subst:' + 'uw-vand1}} ~~' + '~~',
}
}
}
Line 41 ⟶ 67:
pre: '{{subst:' + 'uw-vand2}} ~~' + '~~',
}
}
}
Line 65 ⟶ 90:
pre: '{{subst:' + 'uw-vand3}} ~~' + '~~',
}
}
}
Line 89 ⟶ 113:
pre: '{{subst:' + 'uw-vand4}} ~~' + '~~',
}
}
}
|