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

→‎Dropdowns: started the section on making your own
(added the four most useful premade dropdowns)
(→‎Dropdowns: started the section on making your own)
 
==== Reference Templates ====
Contains alla list of commonly used reference templates.
 
{| class="mw-collapsible mw-collapsed" width=100%
</pre>
|}
 
=== Creating Your Own Dropdowns ===
 
{| class="mw-collapsible mw-collapsed" width=100%
|-
|
|-
|
<pre>
//Optional description
$( '#wpTextbox1' ).wikiEditor( 'addToToolbar', {
section: 'advanced',
groups: {
list: {
tools: {
AAAA: {
label: 'BBBB',
type: 'select',
list: {
'WWWW': {
label: 'XXXX',
action: {
type: 'encapsulate',
options: {
pre: 'YYYY',
post: 'ZZZZ'
}
}
</pre>
Insert your additional items here
<pre>
}
}
}
}
}
}
} );
</pre>
|}
 
{| class="mw-collapsible mw-collapsed" width=100%
|-
|
|-
|
<pre>
},
'IIII': {
label: 'JJJJ',
action: {
type: 'encapsulate',
options: {
pre: 'KKKK',
post: 'LLLL'
}
}
</pre>
|}
 
== Booklets ==
 
Autopatrolled, Editors
8,796

edits