//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: {
welcomeButton: {
label: 'Welcome',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/6/6f/Handshake_icon_BLACK_and_WHITE.svg',
action: {
type: 'encapsulate',
options: {
pre: '
Hi Polygnotus! I would like to welcome you to the Wikipedia community. I hope you like it here and decide to stay.
As you get started, you may find this short tutorial helpful:
{{Clickable button 2|Help:Introduction|Learn more about editing|class=mw-ui-progressive|style=margin-left: 1.6em;}}
Alternatively, the [[Wikipedia:Contributing to Wikipedia|contributing to Wikipedia]] page covers the same topics.
If you have any questions, we have a friendly space where experienced editors can help you here:
{{Clickable button 2|Wikipedia:Teahouse|Get help at the Teahouse|style=margin-left: 1.6em;}}
If you are not sure where to help out, you can find a task here:
{{Clickable button 2|Wikipedia:Task Center|Volunteer at the Task Center|style=margin-left: 1.6em;}}
Happy editing! <!-- Template:Welcome--> [[User:Polygnotus|Polygnotus]] ([[User talk:Polygnotus|talk]]) 01:45, 25 June 2024 (UTC) ~~' + '~~',
}
}
},
vand1Button: {
label: 'Vandalism warning level 1',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/8/8a/Eo_circle_grey_number-1.svg',
action: {
type: 'encapsulate',
options: {
pre: '[[File:Information.svg|25px|alt=Information icon]] Hello, I'm [[User:Polygnotus|Polygnotus]]. I wanted to let you know that one or more of [[Special:Contributions/Polygnotus|your recent contributions]] have been undone because they did not appear constructive. If you would like to experiment, please use the [[Wikipedia:Sandbox|sandbox]]. If you have any questions, you can ask for assistance at the [[Wikipedia:Teahouse|Teahouse]] or the [[Wikipedia:Help desk|Help desk]]. Thanks.<!-- Template:uw-vandalism1 --> ~~' + '~~',
}
}
},
vand2Button: {
label: 'Vandalism warning level 2',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/c/c7/Eo_circle_yellow_number-2.svg',
action: {
type: 'encapsulate',
options: {
pre: '[[File:Information orange.svg|25px|alt=Information icon]] Please refrain from making unconstructive edits to Wikipedia. Your edits appear to constitute [[Wikipedia:Vandalism|vandalism]] and have been [[Help:Reverting|reverted]]. If you would like to experiment, please use the [[Wikipedia:Sandbox|sandbox]]. Repeated vandalism may result in the [[Wikipedia:Blocking policy|loss of editing privileges]]. Thank you.<!-- Template:uw-vandalism2 --> ~~' + '~~',
}
}
},
vand3Button: {
label: 'Vandalism warning level 3',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/c/c5/Eo_circle_deep-orange_number-3.svg',
action: {
type: 'encapsulate',
options: {
pre: '[[File:Nuvola apps important.svg|25px|alt=Warning icon]] Please stop. If you continue to [[Wikipedia:Vandalism|vandalize]] Wikipedia, you may be [[Wikipedia:Blocking policy|blocked from editing]]. <!-- Template:uw-vandalism3 --> ~~' + '~~',
}
}
},
vand4Button: {
label: 'Vandalism warning level 4',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/c/cd/Eo_circle_red_number-4.svg',
action: {
type: 'encapsulate',
options: {
pre: '[[File:Stop hand nuvola.svg|30px|alt=Stop icon]] You may be '''[[Wikipedia:Blocking policy|blocked from editing]] without further warning''' the next time you [[Wikipedia:Vandalism|vandalize]] Wikipedia. <!-- Template:uw-vandalism4 --> ~~' + '~~',
}
}
}
}
});
});
}