Difference between revisions of "User:King of Herdaz/Toolbar customization"

m
m (reminder to create an artist page button)
==== Artist Page ====
 
 
{| class="mw-collapsible mw-collapsed" width=100%
|-
|
|-
|
<pre>
// Adding artist page button to the "main" section
$('#wpTextbox1').wikiEditor('addToToolbar', {
section: 'main',
group: 'insert',
tools: {
"artist-page": {
label: 'Artist Page',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/7/76/Button_atelier_graphique.PNG',
action: {
type: 'encapsulate',
options: {
pre: '{'+'{artist' + '\n' + '|image=' + '\n' + '|alias=' + '\n' + '|fb=' + '\n' + '|reddit=' + '\n' + '|behance=' + '\n' + '|da=' + '\n' + '|ig=' + '\n' + '|as=' + '\n' + '|tumblr=' + '\n' + '|twitter=' + '\n' + '|site=' + '\n' + '|license=all|some|none|official' + '\n' + '|contact=' + '\n' + '|type=fan|interior|cover|multimedia' + '\n' + '|no-notify=y' + '\n' + '}}' + '\n\n' + '<br style="clear:right;"/>' + '\n' + '== Gallery ==' + '\n' + '<gallery caption="Gallery" mode="packed" heights=200px>' + '\n\n' + '</gallery>' + '\n' + '{{meta/done}}'
}
}
}
}
});
</pre>
|}
 
==== Image template ====
label: 'Art infobox',
type: 'button',
icon: '//upload.wikimedia.org/wikipedia/commons/75/765a/Button_atelier_graphiqueVector_toolbar_insert_picture_gallery_button.PNGpng',
action: {
type: 'encapsulate',
Autopatrolled, Editors
8,829

edits